|
|||||||||||
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 org.apache.log4j.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 org.apache.log4j.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 PluggableMenu
context
- 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)
PluggableMenu
Pluggable.inContext(Object[])
.
buildContext
in interface PluggableMenu
parentMenuItem
- menu itemmenuType
- menu name
PluggableMenu.buildContext(javax.swing.JMenuItem, String)
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.
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 java.lang.String getModuleName()
ArgoModule
getModuleName
in interface ArgoModule
ArgoModule.getModuleName()
public java.lang.String getModuleDescription()
ArgoModule
getModuleDescription
in interface ArgoModule
ArgoModule.getModuleDescription()
public java.lang.String getModuleVersion()
ArgoModule
getModuleVersion
in interface ArgoModule
ArgoModule.getModuleVersion()
public java.lang.String getModuleAuthor()
ArgoModule
getModuleAuthor
in interface ArgoModule
ArgoModule.getModuleAuthor()
public java.util.Vector getModulePopUpActions(java.util.Vector popUpActions, java.lang.Object context)
ArgoModule
getModulePopUpActions
in interface ArgoModule
popUpActions
- Vector of actionscontext
- which the actions are valid forArgoModule.getModulePopUpActions(
Vector, Object)
public java.lang.String getModuleKey()
ArgoModule
getModuleKey
in interface ArgoModule
ArgoModule.getModuleKey()
public void actionPerformed(java.awt.event.ActionEvent e)
UMLAction
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class UMLAction
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public boolean shouldBeEnabled()
UMLAction
shouldBeEnabled
in class UMLAction
UMLAction.shouldBeEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |