org.argouml.uml.ui
Class ActionDeleteModelElements

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.ActionDeleteModelElements
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class ActionDeleteModelElements
extends ActionBaseDelete

Action for removing (moving to trash) objects from the model. Objects can be: - Modelelements - Diagrams (argodiagram and it's children) The root model and the last diagram in the project can not be removed. The reason for this is to prevent problems updating the detailspane and the navpane. Besides that, it is not possible to make a new root model.

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
ActionDeleteModelElements()
           
 
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

ActionDeleteModelElements

public ActionDeleteModelElements()
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