|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.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.
| Field Summary | |
|---|---|
protected javax.swing.JRadioButton |
attribute
|
protected javax.swing.JPanel |
configPanel
|
protected javax.swing.JRadioButton |
datatype
|
protected static java.lang.String |
separator
|
protected java.lang.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 |
|---|
cat, MODULEFILENAME, MODULEFILENAME_ALTERNATE |
| Constructor Summary | |
|---|---|
FileImportSupport()
|
|
| Method Summary | |
|---|---|
javax.swing.JComponent |
getChooser(Import imp)
Create chooser for objects we are to import. |
javax.swing.JComponent |
getConfigPanel()
Get the panel that lets the user set reverse engineering parameters. |
ClassdiagramLayouter |
getLayout(UMLDiagram diagram)
Provide layout for modified class diagram. |
java.util.Vector |
getList(Import _import)
This method returns a Vector with objects to import. |
java.lang.String |
getModuleAuthor()
The module author. |
java.util.Vector |
getModulePopUpActions(java.util.Vector popUpActions,
java.lang.Object context)
Calls all modules to let them add to a popup menu. |
java.lang.String |
getModuleVersion()
The module version. |
abstract SuffixFilter[] |
getSuffixFilters()
Provides an array of suffixe filters for the module. |
boolean |
inContext(java.lang.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(java.lang.Object f)
Tells if the file is parseable or not. |
void |
parseFile(Project p,
java.lang.Object o,
DiagramInterface diagram,
Import _import)
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 |
protected javax.swing.JPanel configPanel
protected javax.swing.JRadioButton attribute
protected javax.swing.JRadioButton datatype
protected static final java.lang.String separator
protected java.lang.Object theFile
| Constructor Detail |
public FileImportSupport()
| Method Detail |
public javax.swing.JComponent getConfigPanel()
getConfigPanel in interface PluggableImport
public void parseFile(Project p,
java.lang.Object o,
DiagramInterface diagram,
Import _import)
throws java.lang.Exception
parseFile in interface PluggableImportp - - the current projecto - - object to be parseddiagram - - current class diagram when Import was invoked_import - - current import session. Use this object to get
common settings.
java.lang.Exception - Parser exception.public javax.swing.JComponent getChooser(Import imp)
getChooser in interface PluggableImportimp - - current import session
public java.util.Vector getList(Import _import)
Processing each file in turn is equivalent to a breadth first search through the directory structure.
getList in interface PluggableImport_import - object called by this method.
public boolean isParseable(java.lang.Object f)
isParseable in interface PluggableImportf - file to be tested.
public ClassdiagramLayouter getLayout(UMLDiagram diagram)
getLayout in interface PluggableImportdiagram - to layout.
public boolean inContext(java.lang.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.
public boolean initializeModule()
ArgoModule
initializeModule in interface ArgoModulepublic boolean shutdownModule()
ArgoModule
shutdownModule in interface ArgoModulepublic void setModuleEnabled(boolean tf)
ArgoModule
setModuleEnabled in interface ArgoModuletf - true to enable module, false to disablepublic boolean isModuleEnabled()
ArgoModule
isModuleEnabled in interface ArgoModulepublic java.lang.String getModuleVersion()
ArgoModule
getModuleVersion in interface ArgoModulepublic java.lang.String getModuleAuthor()
ArgoModule
getModuleAuthor in interface ArgoModule
public java.util.Vector getModulePopUpActions(java.util.Vector popUpActions,
java.lang.Object context)
ArgoModule
getModulePopUpActions in interface ArgoModulepopUpActions - Vector of actionscontext - which the actions are valid forpublic abstract SuffixFilter[] getSuffixFilters()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
| ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |