|
|||||||||||
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. |
(package private) class |
Import.ProblemsDialog
A window that shows the problems occured during import |
Field Summary | |
private Hashtable |
attributes
|
private JRadioButton |
classAndFeatures
|
private JRadioButton |
classOnly
|
private JComponent |
configPanel
|
private JCheckBox |
createDiagrams
|
private JCheckBox |
descend
|
private DiagramInterface |
diagramInterface
Create a interface to the current diagram |
private JDialog |
dialog
|
private JRadioButton |
fullImport
|
private int |
importLevel
|
private JTextField |
inputSourceEncoding
|
private Import.ImportStatusScreen |
iss
|
private JCheckBox |
layoutDiagrams
|
private static Logger |
LOG
logger |
private JCheckBox |
minimiseFigs
|
private PluggableImport |
module
current language module |
private Hashtable |
modules
key = module name, value = PluggableImport instance |
private StringBuffer |
problems
|
private Vector |
secondPassFiles
The files that needs a second RE pass. |
private String |
srcPath
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. |
Object |
getAttribute(String key)
|
JComponent |
getConfigPanel(Import importInstance)
Get the panel that lets the user set reverse engineering parameters. |
private DiagramInterface |
getCurrentDiagram()
Set target diagram. |
String |
getInputSourceEncoding()
|
String |
getSrcPath()
|
void |
getUserClasspath()
Invoke the dialog to get the class path. |
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,
Object f)
Parse 1 Java file, using JavaImport. |
void |
setAttribute(String key,
Object value)
|
void |
setSrcPath(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 static final Logger LOG
private String srcPath
private DiagramInterface diagramInterface
private PluggableImport module
private Hashtable modules
private JComponent configPanel
private JCheckBox descend
private Vector secondPassFiles
private JCheckBox createDiagrams
private JCheckBox minimiseFigs
private JCheckBox layoutDiagrams
private JRadioButton classOnly
private JRadioButton classAndFeatures
private JRadioButton fullImport
private int importLevel
private JTextField inputSourceEncoding
private JDialog dialog
private Import.ImportStatusScreen iss
private StringBuffer problems
private Hashtable attributes
Constructor Detail |
public Import()
Method Detail |
public Object getAttribute(String key)
key
- the key of the attribute
public void setAttribute(String key, Object value)
key
- the key of the attributevalue
- the value of the attributepublic String getInputSourceEncoding()
public void disposeDialog()
public JComponent getConfigPanel(Import importInstance)
importInstance
- the instance of the import
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(String path)
path
- the given pathpublic String getSrcPath()
public void parseFile(Project project, Object f) throws Exception
f
- The file to parse.project
- the project
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 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |