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 TypeMethodDescriptionvoidvoidorg.eclipse.jface.action.ActionGet the wrapped Eclipse action.booleanvoidvoidvoidsetEnabled(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:
setEnabledin interfaceAction- See Also:
-
isEnabled
public boolean isEnabled() -
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceAction- See Also:
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceAction- See Also:
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- See Also:
-
getWrappedEclipseAction
public org.eclipse.jface.action.Action getWrappedEclipseAction()Get the wrapped Eclipse action.- Returns:
- the wrapped Eclipse action.
-