|
|||||||||||
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 PluggableMenu
context
- array of objects
as created by PluggableMenu.buildContext(JMenuItem, String)
.
PluggableMenu.getMenuItem(java.lang.Object[])
public Object[] buildContext(JMenuItem parentMenuItem, String menuType)
PluggableMenu
Pluggable.inContext(Object[])
.
buildContext
in interface PluggableMenu
parentMenuItem
- menu itemmenuType
- menu name
PluggableMenu.buildContext(javax.swing.JMenuItem, String)
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 getModuleName()
ArgoModule
getModuleName
in interface ArgoModule
ArgoModule.getModuleName()
public String getModuleDescription()
ArgoModule
getModuleDescription
in interface ArgoModule
ArgoModule.getModuleDescription()
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)
ArgoModule
getModulePopUpActions
in interface ArgoModule
popUpActions
- Vector of actionscontext
- which the actions are valid for
ArgoModule.getModulePopUpActions(
Vector, Object)
public String getModuleKey()
ArgoModule
getModuleKey
in interface ArgoModule
ArgoModule.getModuleKey()
public void actionPerformed(ActionEvent e)
UMLAction
actionPerformed
in interface ActionListener
actionPerformed
in class UMLAction
ActionListener.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 |