org.argouml.uml.diagram.ui
Class ActionAddAllClassesFromModel
java.lang.Object
javax.swing.AbstractAction
org.tigris.gef.undo.UndoableAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.diagram.ui.ActionAddAllClassesFromModel
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- public class ActionAddAllClassesFromModel
- extends UMLAction
ActionAddAllClassesFromModel enables pasting of an existing node into a
Diagram.
- See Also:
- Serialized Form
|
Method Summary |
void |
actionPerformed(ActionEvent ae)
actionPerformed
Finds all of the classes within the same namespace as the
UMLClassDiagram that was given to me in my constructor and adds
them to the UMLClassDiagram. |
boolean |
shouldBeEnabled()
shouldBeEnabled
Returns true if this popup menu item should be enabled, false
if it should be grayed out. |
tabName
private String tabName
object
private Object object
ActionAddAllClassesFromModel
public ActionAddAllClassesFromModel(String name,
Object o)
- Constructor
- Parameters:
name - the name of the actiono - the Diagram
shouldBeEnabled
public boolean shouldBeEnabled()
- shouldBeEnabled
Returns true if this popup menu item should be enabled, false
if it should be grayed out.
- Overrides:
shouldBeEnabled in class UMLAction
- Returns:
- true if the action should be available.
- See Also:
UMLAction.shouldBeEnabled()
actionPerformed
public void actionPerformed(ActionEvent ae)
- actionPerformed
Finds all of the classes within the same namespace as the
UMLClassDiagram that was given to me in my constructor and adds
them to the UMLClassDiagram.
- Parameters:
ae - - the ActionEvent