org.argouml.uml.ui
Class ActionDeleteSingleModelElement

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

public class ActionDeleteSingleModelElement
extends ActionBaseDelete

This action is to delete a single model element. TODO: The recent refactoring to produce this class has made a possible bug apparent to me. Presumably this deletes the first item in the target manager and that may not be the item shown in the prop panel. Must test.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
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
ActionDeleteSingleModelElement()
           
 
Method Summary
protected  Object[] getTargets()
           
 
Methods inherited from class org.argouml.uml.ui.ActionBaseDelete
actionPerformed, shouldBeEnabled, sureRemove, sureRemoveModelElement
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getValue, isEnabled, oldActionPerformed, putValue, 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
 

Constructor Detail

ActionDeleteSingleModelElement

public ActionDeleteSingleModelElement()
Method Detail

getTargets

protected Object[] getTargets()
Specified by:
getTargets in class ActionBaseDelete
Returns:
the complete array of targets


ArgoUML © 1996-2005ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook