|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.uml.reveng.Import
This is the main class for all import classes.
It provides JPanels for tailoring the import run in the FileChooser.
The Import run is started by calling doFile(Project, File)
Supports recursive search in folder for all .java classes.
There are now 3 levels of detail for import:
Nested Class Summary | |
(package private) class |
Import.ImportRun
This class parses each file in turn and allows the GUI to refresh itself by performing the run() once for each file. |
(package private) class |
Import.ImportStatusScreen
A window that shows the progress bar and a cancel button. |
Field Summary | |
private DiagramInterface |
_diagram
Create a interface to the current diagram |
private java.util.Hashtable |
attributes
|
private org.apache.log4j.Logger |
cat
logger |
private javax.swing.JRadioButton |
classAndFeatures
|
private javax.swing.JRadioButton |
classOnly
|
private javax.swing.JComponent |
configPanel
|
private javax.swing.JCheckBox |
create_diagrams
|
private javax.swing.JCheckBox |
descend
|
private javax.swing.JDialog |
dialog
|
private javax.swing.JRadioButton |
fullImport
|
private int |
importLevel
|
private Import.ImportStatusScreen |
iss
|
private javax.swing.JCheckBox |
layout_diagrams
|
private javax.swing.JCheckBox |
minimise_figs
|
private PluggableImport |
module
current language module |
private java.util.Hashtable |
modules
key = module name, value = PluggableImport instance |
private java.util.Vector |
secondPassFiles
The files that needs a second RE pass. |
private java.lang.String |
src_path
Imported directory |
Constructor Summary | |
Import()
Creates dialog window with chooser and configuration panel. |
Method Summary | |
void |
disposeDialog()
Close dialog window. |
void |
doFile()
This method is called by ActionImportFromSources to start the import run. |
java.lang.Object |
getAttribute(java.lang.String key)
|
javax.swing.JComponent |
getConfigPanel(Import importInstance)
Get the panel that lets the user set reverse engineering parameters. |
private DiagramInterface |
getCurrentDiagram()
Set target diagram. |
java.lang.String |
getSrcPath()
|
void |
getUserClasspath()
|
boolean |
isCreateDiagramsChecked()
Check, if "Create diagrams from imported code" is selected. |
boolean |
isDiscendDirectoriesRecursively()
Check, if "Discend directories recursively" is selected. |
boolean |
isMinimiseFigsChecked()
Check, if "Minimise Class icons in diagrams" is selected. |
boolean |
needsSave()
If we have modified any diagrams, the project was modified and should be saved. |
void |
parseFile(Project project,
java.lang.Object f)
Parse 1 Java file, using JavaImport. |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
|
void |
setSrcPath(java.lang.String path)
Set path for processed directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.log4j.Logger cat
private java.lang.String src_path
private DiagramInterface _diagram
private PluggableImport module
private java.util.Hashtable modules
private javax.swing.JComponent configPanel
private javax.swing.JCheckBox descend
private java.util.Vector secondPassFiles
private javax.swing.JCheckBox create_diagrams
private javax.swing.JCheckBox minimise_figs
private javax.swing.JCheckBox layout_diagrams
private javax.swing.JRadioButton classOnly
private javax.swing.JRadioButton classAndFeatures
private javax.swing.JRadioButton fullImport
private int importLevel
private javax.swing.JDialog dialog
private Import.ImportStatusScreen iss
private java.util.Hashtable attributes
Constructor Detail |
public Import()
Method Detail |
public java.lang.Object getAttribute(java.lang.String key)
public void setAttribute(java.lang.String key, java.lang.Object value)
public void disposeDialog()
public javax.swing.JComponent getConfigPanel(Import importInstance)
public void getUserClasspath()
public void doFile()
The method that for all parsing actions. It calls the actual parser methods depending on the type of the file.
public void setSrcPath(java.lang.String path)
public java.lang.String getSrcPath()
public void parseFile(Project project, java.lang.Object f) throws java.lang.Exception
f
- The file to parse.
java.lang.Exception
- ??? TODO: Couldn't we throw a narrower one?public boolean isCreateDiagramsChecked()
public boolean isDiscendDirectoriesRecursively()
public boolean isMinimiseFigsChecked()
public boolean needsSave()
private DiagramInterface getCurrentDiagram()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |