|
|||||||||||
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()
|
java.util.Vector |
getModulePopUpActions(java.util.Vector popUpActions,
java.lang.Object context)
|
java.lang.String |
getModuleVersion()
|
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()
|
boolean |
isModuleEnabled()
|
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)
|
boolean |
shutdownModule()
|
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 PluggableImport
p
- - 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 PluggableImport
imp
- - current import session
public java.util.Vector getList(Import _import)
This method returns a Vector with objects to import.
Processing each file in turn is equivalent to a breadth first search through the directory structure.
getList
in interface PluggableImport
_import
- - current import session
public boolean isParseable(java.lang.Object f)
isParseable
in interface PluggableImport
f
- file to be tested.
public ClassdiagramLayouter getLayout(UMLDiagram diagram)
getLayout
in interface PluggableImport
public boolean inContext(java.lang.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.
public boolean initializeModule()
initializeModule
in interface ArgoModule
public boolean shutdownModule()
shutdownModule
in interface ArgoModule
public void setModuleEnabled(boolean tf)
setModuleEnabled
in interface ArgoModule
public boolean isModuleEnabled()
isModuleEnabled
in interface ArgoModule
public java.lang.String getModuleVersion()
getModuleVersion
in interface ArgoModule
public java.lang.String getModuleAuthor()
getModuleAuthor
in interface ArgoModule
public java.util.Vector getModulePopUpActions(java.util.Vector popUpActions, java.lang.Object context)
getModulePopUpActions
in interface ArgoModule
public abstract SuffixFilter[] getSuffixFilters()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20030919) | ArgoUML Project Home | ArgoUML Cookbook |