|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.ui.ActionExportXMI
Exports the xmi of a project to a file choosen by the user.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.AbstractAction |
|
| Field Summary | |
private static ActionExportXMI |
instance
|
private static Logger |
LOG
logger |
| 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(ActionEvent e)
Perform the work the action is supposed to do. |
Object[] |
buildContext(JMenuItem parentMenuItem,
String menuType)
Helper to create a context recognized by Pluggable.inContext(Object[]). |
static ActionExportXMI |
getInstance()
Singleton instance method |
JMenuItem |
getMenuItem(Object[] context)
Return the JMenuItem controlled by the plugin under the specific context. |
String |
getModuleAuthor()
The module author. |
String |
getModuleDescription()
Textual description of the module. |
String |
getModuleKey()
The module identifying key. |
String |
getModuleName()
Display name of the module. |
Vector |
getModulePopUpActions(Vector popUpActions,
Object context)
Calls all modules to let them add to a popup menu. |
String |
getModuleVersion()
The module version. |
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. |
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 org.argouml.uml.ui.UMLAction |
getMnemonic, getValue, isEnabled, putValue, shouldBeEnabled, 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 final Logger LOG
private static ActionExportXMI instance
| Constructor Detail |
private ActionExportXMI()
| Method Detail |
public static ActionExportXMI getInstance()
public JMenuItem getMenuItem(Object[] context)
PluggableMenu
getMenuItem in interface PluggableMenucontext - array of objects
as created by PluggableMenu.buildContext(JMenuItem, String).
PluggableMenu.getMenuItem(java.lang.Object[])
public Object[] buildContext(JMenuItem parentMenuItem,
String menuType)
PluggableMenuPluggable.inContext(Object[]).
buildContext in interface PluggableMenuparentMenuItem - menu itemmenuType - menu name
PluggableMenu.buildContext(javax.swing.JMenuItem, String)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 getModuleName()
ArgoModule
getModuleName in interface ArgoModuleArgoModule.getModuleName()public String getModuleDescription()
ArgoModule
getModuleDescription in interface ArgoModuleArgoModule.getModuleDescription()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)
ArgoModule
getModulePopUpActions in interface ArgoModulepopUpActions - Vector of actionscontext - which the actions are valid for
ArgoModule.getModulePopUpActions(
Vector, Object)public String getModuleKey()
ArgoModule
getModuleKey in interface ArgoModuleArgoModule.getModuleKey()public void actionPerformed(ActionEvent e)
UMLAction
actionPerformed in interface ActionListeneractionPerformed in class UMLActionActionListener.actionPerformed(java.awt.event.ActionEvent)
|
|||||||||||
| 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 |