Package com.oxygenxml.editor.editors
Class EclipseActionWrapper
java.lang.Object
com.oxygenxml.editor.editors.EclipseActionWrapper
- All Implemented Interfaces:
ActionListener
,EventListener
,Action
@API(type=EXTENDABLE,
src=PUBLIC)
public class EclipseActionWrapper
extends Object
implements Action
Provides access to an Eclipse action wrapped in a swing action.
- Since:
- 17
-
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionEclipseActionWrapper
(org.eclipse.jface.action.Action eclipseAction) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
org.eclipse.jface.action.Action
Get the wrapped Eclipse action.boolean
void
void
void
setEnabled
(boolean enabled)
-
Constructor Details
-
EclipseActionWrapper
public EclipseActionWrapper(org.eclipse.jface.action.Action eclipseAction) Constructor.- Parameters:
eclipseAction
- The Eclipse action.
-
-
Method Details
-
getValue
-
putValue
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceAction
- See Also:
-
isEnabled
public boolean isEnabled() -
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceAction
- See Also:
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceAction
- See Also:
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- See Also:
-
getWrappedEclipseAction
public org.eclipse.jface.action.Action getWrappedEclipseAction()Get the wrapped Eclipse action.- Returns:
- the wrapped Eclipse action.
-