org.argouml.uml.ui
Class ActionCollaborationDiagram
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.argouml.uml.ui.UMLAction
|
+--org.argouml.uml.ui.UMLChangeAction
|
+--org.argouml.uml.ui.ActionAddDiagram
|
+--org.argouml.uml.ui.ActionCollaborationDiagram
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class ActionCollaborationDiagram
- extends ActionAddDiagram
Action to trigger creation of new collaboration diagram.
- See Also:
- Serialized Form
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 |
Method Summary |
UMLDiagram |
createDiagram(ru.novosoft.uml.foundation.core.MNamespace ns)
Creates the diagram. |
boolean |
isValidNamespace(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns true as the given namespace a valid namespace is to add the
diagram to. |
boolean |
shouldBeEnabled()
Just calls isValidNamespace(...) on the nav pane target. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SINGLETON
public static ActionCollaborationDiagram SINGLETON
createDiagram
public UMLDiagram createDiagram(ru.novosoft.uml.foundation.core.MNamespace ns)
- Description copied from class:
ActionAddDiagram
- Creates the diagram. Classes derived from this class should implement any
specific behaviour to create the diagram.
- Overrides:
createDiagram
in class ActionAddDiagram
- See Also:
org.argouml.uml.ui.ActionAddDiagram#createDiagram(MNamespace,Object)
isValidNamespace
public boolean isValidNamespace(ru.novosoft.uml.foundation.core.MNamespace ns)
- Description copied from class:
ActionAddDiagram
- Returns true as the given namespace a valid namespace is to add the
diagram to.
- Overrides:
isValidNamespace
in class ActionAddDiagram
- See Also:
CollaborationsHelper.isAddingCollaborationAllowed(Object)
,
ActionAddDiagram.isValidNamespace(MNamespace)
shouldBeEnabled
public boolean shouldBeEnabled()
- Just calls isValidNamespace(...) on the nav pane target.
- Overrides:
shouldBeEnabled
in class UMLAction
- See Also:
UMLAction.shouldBeEnabled()