Package com.oxygenxml.editor.editors
Class EclipseActionWrapper
- java.lang.Object
-
- com.oxygenxml.editor.editors.EclipseActionWrapper
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.util.EventListener
,javax.swing.Action
@API(type=EXTENDABLE, src=PUBLIC) public class EclipseActionWrapper extends java.lang.Object implements javax.swing.Action
Provides access to an Eclipse action wrapped in a swing action.- Since:
- 17
-
-
Constructor Summary
Constructors Constructor Description EclipseActionWrapper(org.eclipse.jface.action.Action eclipseAction)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
java.lang.Object
getValue(java.lang.String key)
org.eclipse.jface.action.Action
getWrappedEclipseAction()
Get the wrapped Eclipse action.boolean
isEnabled()
void
putValue(java.lang.String key, java.lang.Object value)
void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
void
setEnabled(boolean enabled)
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue(java.lang.String key)
- Specified by:
getValue
in interfacejavax.swing.Action
- See Also:
Action.getValue(java.lang.String)
-
putValue
public void putValue(java.lang.String key, java.lang.Object value)
- Specified by:
putValue
in interfacejavax.swing.Action
- See Also:
Action.putValue(java.lang.String, java.lang.Object)
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfacejavax.swing.Action
- See Also:
Action.setEnabled(boolean)
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfacejavax.swing.Action
- See Also:
Action.isEnabled()
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener
in interfacejavax.swing.Action
- See Also:
Action.addPropertyChangeListener(java.beans.PropertyChangeListener)
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener
in interfacejavax.swing.Action
- See Also:
Action.removePropertyChangeListener(java.beans.PropertyChangeListener)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
-
getWrappedEclipseAction
public org.eclipse.jface.action.Action getWrappedEclipseAction()
Get the wrapped Eclipse action.- Returns:
- the wrapped Eclipse action.
-
-