org.argouml.uml.diagram.ui
Class ActionDeleteFromDiagram
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.diagram.ui.ActionDeleteFromDiagram
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- public class ActionDeleteFromDiagram
- extends UMLAction
Removes an modelelement from the diagram, but not from the model.
- See Also:
- Serialized Form
LOG
private static final Logger LOG
- logger
singleton
private static ActionDeleteFromDiagram singleton
ActionDeleteFromDiagram
private ActionDeleteFromDiagram()
shouldBeEnabled
public boolean shouldBeEnabled()
- Tells if this action shall be enabled or not.
Remove from diagram is not allowed when the diagram
is a statechart. This because the diagram = the
statemachine according UML. Use a submachinestate
to split a big diagram in parts instead.
And because it leads to unsolvable problems with
concurrency.
- Overrides:
shouldBeEnabled
in class UMLAction
- Returns:
- true if it shall be enabled.
actionPerformed
public void actionPerformed(ActionEvent ae)
- Description copied from class:
UMLAction
- Perform the work the action is supposed to do.
This method needs to be overridden by all actions,
since it only shows a fake progressbar...
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class UMLAction
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
getSingleton
public static ActionDeleteFromDiagram getSingleton()
- Returns:
- Returns the singleton.