de.uni_paderborn.fujaba.uml.actions
Class ImportClassReferences

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byde.uni_paderborn.fujaba.uml.actions.ImportClassReferences
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ImportClassReferences
extends javax.swing.AbstractAction

Invokes the Import Editor

Version:
$Revision: 1.15 $
Author:
$Author: lowende $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private static org.apache.log4j.Logger log
          log4j logging
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ImportClassReferences()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          No comment provided by developer, please add a comment to improve documentation.
 void addToTreeAndPackages(java.lang.String name, boolean isClass)
          Access method for an one to n association.
private  java.lang.String convertToNormalName(java.lang.String name)
          This method converts a name to a normal name.
 UMLPackage findPlace(UMLPackage rootPackage, java.lang.String name)
          findPlace finds the place in the tree rooted on root for name.
private  void importDirectory(int index, java.io.File file)
          No comment provided by developer, please add a comment to improve documentation.
private  void importFile(java.io.File file)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final transient org.apache.log4j.Logger log
log4j logging

Constructor Detail

ImportClassReferences

public ImportClassReferences()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
event - No description provided

convertToNormalName

private java.lang.String convertToNormalName(java.lang.String name)
This method converts a name to a normal name. It replaces all / with . and kills .class.

Parameters:
name - No description provided
Returns:
No description provided

findPlace

public UMLPackage findPlace(UMLPackage rootPackage,
                            java.lang.String name)
findPlace finds the place in the tree rooted on root for name. If it must create new packages it will create them in the tree and in the UMLPackage.

Parameters:
name - No description provided
rootPackage - No description provided
Returns:
No description provided

addToTreeAndPackages

public void addToTreeAndPackages(java.lang.String name,
                                 boolean isClass)
Access method for an one to n association.

Parameters:
name - The object added.
isClass - The object added.

importFile

private void importFile(java.io.File file)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
file - No description provided

importDirectory

private void importDirectory(int index,
                             java.io.File file)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
index - No description provided
file - No description provided