Java org.eclipse.jface.action Action fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jface.action Action fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jface.action Action.

The text is from its open source code.

Subclass

org.eclipse.jface.action.Action has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidaddPropertyChangeListener(final IPropertyChangeListener listener)
StringconvertAccelerator(int keyCode)
Converts an accelerator key code to a string representation.
intconvertAccelerator(String acceleratorText)
Parses the given accelerator text, and converts it to an accelerator key code.
intfindKeyCode(String token)
Maps a standard keyboard key name to an SWT key code.
intfindModifier(String token)
Maps standard keyboard modifier key names to the corresponding SWT modifier bit.
StringfindModifierString(int keyCode)
Returns a string representation of an SWT modifier bit (SWT.CTRL, SWT.ALT, SWT.SHIFT, and SWT.COMMAND).
intgetAccelerator()
StringgetActionDefinitionId()
StringgetDescription()
ImageDescriptorgetDisabledImageDescriptor()
ImageDescriptorgetHoverImageDescriptor()
StringgetId()
ImageDescriptorgetImageDescriptor()
IMenuCreatorgetMenuCreator()
intgetStyle()
StringgetText()
StringgetToolTipText()
booleanisChecked()
booleanisEnabled()
StringremoveAcceleratorText(String text)
Convenience method for removing any optional accelerator text from the given string.
StringremoveMnemonics(String text)
Convenience method for removing any mnemonics from the given string.
voidrun()
The default implementation of this IAction method does nothing.
voidrunWithEvent(Event event)
The default implementation of this IAction method ignores the event argument, and simply calls run().
voidsetAccelerator(int keycode)
voidsetActionDefinitionId(String id)
voidsetChecked(boolean checked)
voidsetDescription(String text)
voidsetDisabledImageDescriptor(ImageDescriptor newImage)
voidsetEnabled(boolean enabled)
voidsetHelpListener(HelpListener listener)
voidsetHoverImageDescriptor(ImageDescriptor newImage)
voidsetId(String id)
voidsetImageDescriptor(ImageDescriptor newImage)
voidsetMenuCreator(IMenuCreator creator)
Sets the menu creator for this action.
voidsetText(String text)
voidsetToolTipText(String toolTipText)
Sets the tool tip text for this action.