public class RcpActionAdapter extends org.eclipse.jface.action.Action implements PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.widgets.Display |
display
The display
|
Constructor and Description |
---|
RcpActionAdapter(Action action)
Creates an ActionAdapter
|
RcpActionAdapter(Action action,
int style)
Creates an ActionAdapter
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getText() |
String |
getToolTipText() |
boolean |
isEnabled() |
void |
propertyChange(PropertyChangeEvent evt) |
void |
run() |
void |
setEnabled(boolean enabled) |
void |
setText(String text) |
void |
setToolTipText(String toolTipText) |
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public RcpActionAdapter(Action action)
action
- the Swing action to wrappublic RcpActionAdapter(Action action, int style)
action
- the Swing action to wrapstyle
- the JFace action styleAction.Action(String, int)
public String getDescription()
getDescription
in interface org.eclipse.jface.action.IAction
getDescription
in class org.eclipse.jface.action.Action
public String getText()
getText
in interface org.eclipse.jface.action.IAction
getText
in class org.eclipse.jface.action.Action
public String getToolTipText()
getToolTipText
in interface org.eclipse.jface.action.IAction
getToolTipText
in class org.eclipse.jface.action.Action
public boolean isEnabled()
isEnabled
in interface org.eclipse.jface.action.IAction
isEnabled
in class org.eclipse.jface.action.Action
public void setEnabled(boolean enabled)
setEnabled
in interface org.eclipse.jface.action.IAction
setEnabled
in class org.eclipse.jface.action.Action
public void setText(String text)
setText
in interface org.eclipse.jface.action.IAction
setText
in class org.eclipse.jface.action.Action
public void setToolTipText(String toolTipText)
setToolTipText
in interface org.eclipse.jface.action.IAction
setToolTipText
in class org.eclipse.jface.action.Action
public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a