|
|||||||||||
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 PluggableImport
PluggableImport.getConfigPanel()
public void parseFile(Project p, Object o, DiagramInterface diagram, Import theImport) throws Exception
parseFile
in interface PluggableImport
p
- 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 PluggableImport
imp
- 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 PluggableImport
theImport
- object called by this method.
PluggableImport.getList(org.argouml.uml.reveng.Import)
public boolean isParseable(Object f)
isParseable
in interface PluggableImport
f
- file to be tested.
public ClassdiagramLayouter getLayout(UMLDiagram diagram)
getLayout
in interface PluggableImport
diagram
- to layout.
PluggableImport.getLayout(org.argouml.uml.diagram.ui.UMLDiagram)
public boolean inContext(Object[] context)
Pluggable
inContext
in interface Pluggable
context
- 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 ArgoModule
ArgoModule.initializeModule()
public boolean shutdownModule()
ArgoModule
shutdownModule
in interface ArgoModule
ArgoModule.shutdownModule()
public void setModuleEnabled(boolean tf)
ArgoModule
setModuleEnabled
in interface ArgoModule
tf
- true to enable module, false to disableArgoModule.setModuleEnabled(boolean)
public boolean isModuleEnabled()
ArgoModule
isModuleEnabled
in interface ArgoModule
ArgoModule.isModuleEnabled()
public String getModuleVersion()
ArgoModule
getModuleVersion
in interface ArgoModule
ArgoModule.getModuleVersion()
public String getModuleAuthor()
ArgoModule
getModuleAuthor
in interface ArgoModule
ArgoModule.getModuleAuthor()
public Vector getModulePopUpActions(Vector popUpActions, Object context)
getModulePopUpActions
in interface ArgoModule
popUpActions
- 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 |