|
|||||||||||
| 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:
| 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. |
String |
getInputSourceEncoding()
|
String |
getSrcPath()
|
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 |
| 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 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
project - the projectf - The file to parse.
Exception - ??? TODO: Couldn't we throw a narrower one?public boolean isCreateDiagramsChecked()
public boolean isDiscendDirectoriesRecursively()
public boolean isMinimiseFigsChecked()
public boolean needsSave()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |