uci.uml.ui
Class UMLAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--uci.uml.ui.UMLAction
- Direct Known Subclasses:
- ActionGoToCritique, ActionGoToDetails, ActionGoToEdit
- public class UMLAction
- extends AbstractAction
- See Also:
- Serialized Form
HAS_ICON
public static boolean HAS_ICON
NO_ICON
public static boolean NO_ICON
UMLAction
public UMLAction(String name)
UMLAction
public UMLAction(String name,
boolean hasIcon)
UMLAction
public UMLAction(String name,
boolean global,
boolean hasIcon)
actionPerformed
public void actionPerformed(ActionEvent e)
- Perform the work the action is supposed to do.
- Overrides:
- actionPerformed in class AbstractAction
markNeedsSave
public void markNeedsSave()
updateEnabled
public void updateEnabled(Object target)
updateEnabled
public void updateEnabled()
shouldBeEnabled
public boolean shouldBeEnabled()
- return true if this action should be available to the user. This
method should examine the ProjectBrowser that owns it. Sublass
implementations of this method should always call
super.shouldBeEnabled first.
stripJunk
protected static String stripJunk(String s)