public abstract class AbstractAction extends EventManager implements IAction
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.
AS_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 and Description |
|---|
AbstractAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(IPropertyChangeListener listener)
Adds a property change listener to this action.
|
protected void |
firePropertyChange(PropertyChangeEvent event)
Notifies any property change listeners that a property has changed.
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Notifies any property change listeners that a property has changed.
|
void |
removePropertyChangeListener(IPropertyChangeListener listener)
Removes the given listener from this action.
|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccelerator, 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, setToolTipTextpublic void addPropertyChangeListener(IPropertyChangeListener listener)
IActionaddPropertyChangeListener in interface IActionlistener - a property change listenerprotected final void firePropertyChange(PropertyChangeEvent event)
event - the property change eventIPropertyChangeListener.propertyChange(org.eclipse.jface.util.PropertyChangeEvent)protected final void firePropertyChange(String propertyName, Object oldValue, Object newValue)
firePropertyChange(PropertyChangeEvent) if there are.propertyName - the name of the property that has changedoldValue - the old value of the property, or null if nonenewValue - the new value of the property, or null if noneIPropertyChangeListener.propertyChange(org.eclipse.jface.util.PropertyChangeEvent)public void removePropertyChangeListener(IPropertyChangeListener listener)
IActionremovePropertyChangeListener in interface IActionlistener - a property change listenerGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.