|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.uml.reveng.FileImportSupport
This is the base class for import from files. It provides JFileChooser for file selection and other methods common to file import. It assumes that similar classes will be written for other input sources.
| Nested Class Summary | |
private class |
FileImportSupport.ImportFileChooser
|
| Field Summary | |
private JRadioButton |
attribute
|
private JPanel |
configPanel
|
private JRadioButton |
datatype
|
private static String |
SEPARATOR
|
private Object |
theFile
Object(s) selected in chooser. |
| Fields inherited from interface org.argouml.application.api.Pluggable |
PLUGIN_PREFIX, PLUGIN_TITLE, PLUGIN_VENDOR |
| Fields inherited from interface org.argouml.application.api.ArgoModule |
MODULEFILENAME, MODULEFILENAME_ALTERNATE |
| Constructor Summary | |
FileImportSupport()
|
|
| Method Summary | |
protected JRadioButton |
getAttribute()
|
JComponent |
getChooser(Import imp)
Create chooser for objects we are to import. |
JComponent |
getConfigPanel()
Get the panel that lets the user set reverse engineering parameters. |
protected JRadioButton |
getDatatype()
|
ClassdiagramLayouter |
getLayout(UMLDiagram diagram)
Provide layout for modified class diagram. |
Vector |
getList(Import theImport)
This method returns a Vector with objects to import. |
String |
getModuleAuthor()
The module author. |
Vector |
getModulePopUpActions(Vector popUpActions,
Object context)
Calls all modules to let them add to a popup menu. |
String |
getModuleVersion()
The module version. |
abstract SuffixFilter[] |
getSuffixFilters()
Provides an array of suffixe filters for the module. |
boolean |
inContext(Object[] context)
A function which allows a plug-in to decide if it is available under a specific context. |
boolean |
initializeModule()
Method called when Argo is loading a module. |
boolean |
isModuleEnabled()
Allows determination if a module is enabled or disabled. |
boolean |
isParseable(Object f)
Tells if the file is parseable or not. |
void |
parseFile(Project p,
Object o,
DiagramInterface diagram,
Import theImport)
This method parses 1 file. |
void |
setModuleEnabled(boolean tf)
Called to enable or disable a module programmatically. |
boolean |
shutdownModule()
Method called when Argo is unloading a module. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.argouml.application.api.ArgoModule |
getModuleDescription, getModuleKey, getModuleName |
| Field Detail |
private JPanel configPanel
private JRadioButton attribute
private JRadioButton datatype
private static final String SEPARATOR
private Object theFile
| Constructor Detail |
public FileImportSupport()
| Method Detail |
public JComponent getConfigPanel()
getConfigPanel in interface PluggableImportPluggableImport.getConfigPanel()
public void parseFile(Project p,
Object o,
DiagramInterface diagram,
Import theImport)
throws Exception
parseFile in interface PluggableImportp - the projecto - the objectdiagram - the diagram interfacetheImport - the import
Exception - Parser exception.PluggableImport.parseFile(
org.argouml.kernel.Project, java.lang.Object,
org.argouml.uml.reveng.DiagramInterface,
org.argouml.uml.reveng.Import)public JComponent getChooser(Import imp)
getChooser in interface PluggableImportimp - The current import session.
PluggableImport.getChooser(org.argouml.uml.reveng.Import)public Vector getList(Import theImport)
Processing each file in turn is equivalent to a breadth first search through the directory structure.
getList in interface PluggableImporttheImport - object called by this method.
PluggableImport.getList(org.argouml.uml.reveng.Import)public boolean isParseable(Object f)
isParseable in interface PluggableImportf - file to be tested.
public ClassdiagramLayouter getLayout(UMLDiagram diagram)
getLayout in interface PluggableImportdiagram - to layout.
PluggableImport.getLayout(org.argouml.uml.diagram.ui.UMLDiagram)public boolean inContext(Object[] context)
Pluggable
inContext in interface Pluggablecontext - An identification of the context.
The interpretation of criteria is specific to
the plug-in type, but must be consistent
across that type. The plug-in must want
to be exposed to all contexts.
Pluggable.inContext(java.lang.Object[])public boolean initializeModule()
ArgoModule
initializeModule in interface ArgoModuleArgoModule.initializeModule()public boolean shutdownModule()
ArgoModule
shutdownModule in interface ArgoModuleArgoModule.shutdownModule()public void setModuleEnabled(boolean tf)
ArgoModule
setModuleEnabled in interface ArgoModuletf - true to enable module, false to disableArgoModule.setModuleEnabled(boolean)public boolean isModuleEnabled()
ArgoModule
isModuleEnabled in interface ArgoModuleArgoModule.isModuleEnabled()public String getModuleVersion()
ArgoModule
getModuleVersion in interface ArgoModuleArgoModule.getModuleVersion()public String getModuleAuthor()
ArgoModule
getModuleAuthor in interface ArgoModuleArgoModule.getModuleAuthor()
public Vector getModulePopUpActions(Vector popUpActions,
Object context)
getModulePopUpActions in interface ArgoModulepopUpActions - Vector of actionscontext - which the actions are valid for
ArgoModule.getModulePopUpActions(
java.util.Vector, java.lang.Object)public abstract SuffixFilter[] getSuffixFilters()
protected JRadioButton getAttribute()
protected JRadioButton getDatatype()
|
|||||||||||
| 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 |