Package org.eclipse.jface.action
Class AbstractAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
- All Implemented Interfaces:
- IAction
- Direct Known Subclasses:
- Action
 Some common functionality to share between implementations of
 IAction. This functionality deals with the property change
 event mechanism.
 
Clients may neither instantiate nor extend this class.
- Since:
- 3.2
- 
Field SummaryFields inherited from interface org.eclipse.jface.action.IActionAS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a property change listener to this action.protected final voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) Notifies any property change listeners that a property has changed.protected final voidNotifies any property change listeners that a property has changed.voidRemoves the given listener from this action.Methods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IActiongetAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
- 
Constructor Details- 
AbstractActionpublic AbstractAction()
 
- 
- 
Method Details- 
addPropertyChangeListenerDescription copied from interface:IActionAdds a property change listener to this action. Has no effect if an identical listener is already registered.- Specified by:
- addPropertyChangeListenerin interface- IAction
- Parameters:
- listener- a property change listener
 
- 
firePropertyChangeNotifies any property change listeners that a property has changed. Only listeners registered at the time this method is called are notified.- Parameters:
- event- the property change event
- See Also:
 
- 
firePropertyChangeNotifies any property change listeners that a property has changed. Only listeners registered at the time this method is called are notified. This method avoids creating an event object if there are no listeners registered, but callsfirePropertyChange(PropertyChangeEvent)if there are.- Parameters:
- propertyName- the name of the property that has changed
- oldValue- the old value of the property, or- nullif none
- newValue- the new value of the property, or- nullif none
- See Also:
 
- 
removePropertyChangeListenerDescription copied from interface:IActionRemoves the given listener from this action. Has no effect if an identical listener is not registered.- Specified by:
- removePropertyChangeListenerin interface- IAction
- Parameters:
- listener- a property change listener
 
 
-