org.argouml.uml.ui
Class ActionDeleteModelElements
java.lang.Object
javax.swing.AbstractAction
org.tigris.gef.undo.UndoableAction
org.argouml.uml.ui.ActionDeleteModelElements
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- public class ActionDeleteModelElements
- extends org.tigris.gef.undo.UndoableAction
Action for removing objects from the model.
Objects can be Modelelements, Diagrams (argodiagram and it's children),
Figs without owner,...
- See Also:
- Serialized Form
ActionDeleteModelElements
public ActionDeleteModelElements()
- Constructor.
actionPerformed
public void actionPerformed(ActionEvent ae)
sureRemove
public static boolean sureRemove(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(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