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

Field Summary
static boolean HAS_ICON
           
static boolean NO_ICON
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Constructor Summary
UMLAction(String name)
           
UMLAction(String name, boolean hasIcon)
           
UMLAction(String name, boolean global, boolean hasIcon)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Perform the work the action is supposed to do.
 void markNeedsSave()
           
 boolean shouldBeEnabled()
          return true if this action should be available to the user.
protected static String stripJunk(String s)
           
 void updateEnabled()
           
 void updateEnabled(Object target)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HAS_ICON

public static boolean HAS_ICON

NO_ICON

public static boolean NO_ICON
Constructor Detail

UMLAction

public UMLAction(String name)

UMLAction

public UMLAction(String name,
                 boolean hasIcon)

UMLAction

public UMLAction(String name,
                 boolean global,
                 boolean hasIcon)
Method Detail

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)