|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractAction | +--org.argouml.uml.ui.UMLAction | +--org.argouml.uml.ui.UMLChangeAction | +--org.argouml.uml.ui.ActionRemoveFromModel
Action for removing (moving to trash) objects from the model. Objects can be: - Modelelements (NSUML) - 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.
Field Summary | |
---|---|
protected static Logger |
cat
Deprecated. by Linus Tolke as of 0.15.4. Use your own logger in your class. This will be removed. |
static ActionRemoveFromModel |
SINGLETON
Deprecated. by Linus Tolke as of 0.15.4. Create your own action every time. This will be removed. |
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 | |
---|---|
|
ActionRemoveFromModel()
|
protected |
ActionRemoveFromModel(boolean global)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
Moves the selected target to the trash bin. |
protected java.lang.Object[] |
getTargets()
|
boolean |
shouldBeEnabled()
Only disabled when nothing is selected. |
static boolean |
sureRemove(java.lang.Object target)
A utility method that asks the user if he is sure to remove the selected target. |
static boolean |
sureRemoveModelElement(java.lang.Object me)
An utility method that asks the user if he is sure to remove a selected modelement. |
Methods inherited from class org.argouml.uml.ui.UMLAction |
---|
getMnemonic, getShortcut, getValue, isEnabled, markNeedsSave, putValue, stripJunk, 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 |
Field Detail |
public static ActionRemoveFromModel SINGLETON
protected static Logger cat
Constructor Detail |
public ActionRemoveFromModel()
protected ActionRemoveFromModel(boolean global)
Method Detail |
public boolean shouldBeEnabled()
shouldBeEnabled
in class UMLAction
UMLAction.shouldBeEnabled()
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class UMLChangeAction
ActionListener.actionPerformed(ActionEvent)
public static boolean sureRemove(java.lang.Object target)
target
-
public static boolean sureRemoveModelElement(java.lang.Object me)
me
-
sureRemove(Object)
protected java.lang.Object[] getTargets()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |