Class 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
    • 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

      Constructors 
      Constructor Description
      EclipseActionWrapper​(org.eclipse.jface.action.Action eclipseAction)
      Constructor.
    • Constructor Detail

      • EclipseActionWrapper

        public EclipseActionWrapper​(org.eclipse.jface.action.Action eclipseAction)
        Constructor.
        Parameters:
        eclipseAction - The Eclipse action.
    • Method Detail

      • getValue

        public java.lang.Object getValue​(java.lang.String key)
        Specified by:
        getValue in interface javax.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 interface javax.swing.Action
        See Also:
        Action.putValue(java.lang.String, java.lang.Object)
      • setEnabled

        public void setEnabled​(boolean enabled)
        Specified by:
        setEnabled in interface javax.swing.Action
        See Also:
        Action.setEnabled(boolean)
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface javax.swing.Action
        See Also:
        Action.isEnabled()
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Specified by:
        addPropertyChangeListener in interface javax.swing.Action
        See Also:
        Action.addPropertyChangeListener(java.beans.PropertyChangeListener)
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Specified by:
        removePropertyChangeListener in interface javax.swing.Action
        See Also:
        Action.removePropertyChangeListener(java.beans.PropertyChangeListener)
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.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.