|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.argouml.uml.ui.UMLAction
|
+--org.argouml.ui.ActionExportXMI
Exports the xmi of a project to a file choosen by the user.
| Field Summary | |
|---|---|
private static Logger |
cat
logger |
private static ActionExportXMI |
instance
|
| Fields inherited from class org.argouml.uml.ui.UMLAction |
|---|
HAS_ICON, NO_ICON |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface org.argouml.application.api.PluggableMenu |
|---|
KEY_ARRANGE, KEY_CREATE_DIAGRAMS, KEY_FILE_IMPORT, KEY_GENERATE, KEY_HELP, KEY_TOOLS, KEY_VIEW |
| 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 |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
private |
ActionExportXMI()
Constructor. |
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Perform the work the action is supposed to do. |
java.lang.Object[] |
buildContext(javax.swing.JMenuItem parentMenuItem,
java.lang.String menuType)
Helper to create a context recognized by Pluggable.inContext(Object[]). |
static ActionExportXMI |
getInstance()
Singleton instance method |
javax.swing.JMenuItem |
getMenuItem(java.lang.Object[] context)
Return the JMenuItem controlled by the plugin under the specific context. |
java.lang.String |
getModuleAuthor()
The module author. |
java.lang.String |
getModuleDescription()
Textual description of the module. |
java.lang.String |
getModuleKey()
The module identifying key |
java.lang.String |
getModuleName()
Display name of the module. |
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. |
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 |
void |
setModuleEnabled(boolean tf)
Called to enable or disable a module programmatically. |
boolean |
shouldBeEnabled()
Return true if this action should be available to the user. |
boolean |
shutdownModule()
Method called when Argo is unloading a module. |
| Methods inherited from class org.argouml.uml.ui.UMLAction |
|---|
getMnemonic, getShortcut, getValue, isEnabled, markNeedsSave, putValue, stripJunk, updateEnabled, updateEnabled |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static Logger cat
private static ActionExportXMI instance
| Constructor Detail |
private ActionExportXMI()
| Method Detail |
public static ActionExportXMI getInstance()
public javax.swing.JMenuItem getMenuItem(java.lang.Object[] context)
PluggableMenu
getMenuItem in interface PluggableMenucontext - array of objects
as created by PluggableMenu.buildContext(JMenuItem, String).
PluggableMenu.getMenuItem(java.lang.Object[])
public java.lang.Object[] buildContext(javax.swing.JMenuItem parentMenuItem,
java.lang.String menuType)
PluggableMenuPluggable.inContext(Object[]).
buildContext in interface PluggableMenuparentMenuItem - menu itemmenuType - menu name
PluggableMenu.buildContext(javax.swing.JMenuItem, String)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.
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 java.lang.String getModuleName()
ArgoModule
getModuleName in interface ArgoModuleArgoModule.getModuleName()public java.lang.String getModuleDescription()
ArgoModule
getModuleDescription in interface ArgoModuleArgoModule.getModuleDescription()public java.lang.String getModuleVersion()
ArgoModule
getModuleVersion in interface ArgoModuleArgoModule.getModuleVersion()public java.lang.String getModuleAuthor()
ArgoModule
getModuleAuthor in interface ArgoModuleArgoModule.getModuleAuthor()
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 forArgoModule.getModulePopUpActions(
Vector, Object)public java.lang.String getModuleKey()
ArgoModule
getModuleKey in interface ArgoModuleArgoModule.getModuleKey()public void actionPerformed(java.awt.event.ActionEvent e)
UMLAction
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class UMLActionActionListener.actionPerformed(java.awt.event.ActionEvent)public boolean shouldBeEnabled()
UMLAction
shouldBeEnabled in class UMLActionUMLAction.shouldBeEnabled()
|
||||||||||||
| 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 |