Example usage for Java org.eclipse.jface.action Action fields, constructors, methods, implement or subclass
The text is from its open source code.
Action() Creates a new action with no text and no image. | |
Action(String text) Creates a new action with the given text and no image. | |
Action(String text, ImageDescriptor image) Creates a new action with the given text and image. | |
Action(String text, int style) Creates a new action with the given text and style. |
void | addPropertyChangeListener(final IPropertyChangeListener listener) |
String | convertAccelerator(int keyCode) Converts an accelerator key code to a string representation. |
int | convertAccelerator(String acceleratorText) Parses the given accelerator text, and converts it to an accelerator key code. |
int | findKeyCode(String token) Maps a standard keyboard key name to an SWT key code. |
int | findModifier(String token) Maps standard keyboard modifier key names to the corresponding SWT modifier bit. |
String | findModifierString(int keyCode) Returns a string representation of an SWT modifier bit (SWT.CTRL, SWT.ALT, SWT.SHIFT, and SWT.COMMAND). |
int | getAccelerator() |
String | getActionDefinitionId() |
String | getDescription() |
ImageDescriptor | getDisabledImageDescriptor() |
ImageDescriptor | getHoverImageDescriptor() |
String | getId() |
ImageDescriptor | getImageDescriptor() |
IMenuCreator | getMenuCreator() |
int | getStyle() |
String | getText() |
String | getToolTipText() |
boolean | isChecked() |
boolean | isEnabled() |
String | removeAcceleratorText(String text) Convenience method for removing any optional accelerator text from the given string. |
String | removeMnemonics(String text) Convenience method for removing any mnemonics from the given string. |
void | run() The default implementation of this IAction method does nothing. |
void | runWithEvent(Event event) The default implementation of this IAction method ignores the event argument, and simply calls run() . |
void | setAccelerator(int keycode) |
void | setActionDefinitionId(String id) |
void | setChecked(boolean checked) |
void | setDescription(String text) |
void | setDisabledImageDescriptor(ImageDescriptor newImage) |
void | setEnabled(boolean enabled) |
void | setHelpListener(HelpListener listener) |
void | setHoverImageDescriptor(ImageDescriptor newImage) |
void | setId(String id) |
void | setImageDescriptor(ImageDescriptor newImage) |
void | setMenuCreator(IMenuCreator creator) Sets the menu creator for this action. |
void | setText(String text) |
void | setToolTipText(String toolTipText) Sets the tool tip text for this action. |