org.argouml.uml.ui
Class ActionDeleteModelElements

java.lang.Object
  extended by UndoableAction
      extended by org.argouml.uml.ui.ActionDeleteModelElements

public class ActionDeleteModelElements
extends UndoableAction

Action for removing objects from the model. Objects can be Modelelements, Diagrams (argodiagram and it's children), Figs without owner,...


Constructor Summary
ActionDeleteModelElements()
          Constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
static ActionDeleteModelElements getTargetFollower()
           
 boolean shouldBeEnabled()
           
static boolean sureRemove(java.lang.Object target)
          A utility method that asks the user if he is sure to remove the selected target.
protected static boolean sureRemoveModelElement(java.lang.Object me)
          An utility method that asks the user if he is sure to remove a selected model element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionDeleteModelElements

public ActionDeleteModelElements()
Constructor.

Method Detail

getTargetFollower

public static ActionDeleteModelElements getTargetFollower()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)

sureRemove

public static boolean sureRemove(java.lang.Object target)
A utility method that asks the user if he is sure to remove the selected target.

Parameters:
target - the object that will be removed
Returns:
boolean

sureRemoveModelElement

protected static boolean sureRemoveModelElement(java.lang.Object me)
An utility method that asks the user if he is sure to remove a selected model element.

Parameters:
me - the modelelement that may be removed
Returns:
boolean

shouldBeEnabled

public boolean shouldBeEnabled()
Returns:
true if the tool should be enabled


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook