org.argouml.ui.cmd
Class ActionExit

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.undo.UndoableAction
          extended byorg.argouml.uml.ui.UMLAction
              extended byorg.argouml.ui.cmd.ActionExit
All Implemented Interfaces:
Action, ActionListener, Cloneable, CommandLineInterface, EventListener, Serializable

public class ActionExit
extends UMLAction
implements CommandLineInterface

Action to exit ArgoUML. If the project is dirty, then ask the user if he wants to save first.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private static boolean active
          Remember if this form is already active, so that it does not popup twice.
private static long serialVersionUID
          The UID.
 
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 javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionExit()
          The constructor.
 
Method Summary
 void actionPerformed(ActionEvent ae)
          See ProjectBrowser.askConfirmationAndSave() for a very similar procedure!
 boolean doCommand(String argument)
          Execute this action from the command line.
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getValue, isEnabled, oldActionPerformed, 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

active

private static boolean active
Remember if this form is already active, so that it does not popup twice.


serialVersionUID

private static final long serialVersionUID
The UID.

See Also:
Constant Field Values
Constructor Detail

ActionExit

public ActionExit()
The constructor.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)
See ProjectBrowser.askConfirmationAndSave() for a very similar procedure!

Specified by:
actionPerformed in interface ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

doCommand

public boolean doCommand(String argument)
Execute this action from the command line.

Specified by:
doCommand in interface CommandLineInterface
Parameters:
argument - is not used.
Returns:
true if it is OK.
See Also:
CommandLineInterface.doCommand(java.lang.String)


ArgoUML © 1996-2005ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook