Class TextEditorPropertyAction

All Implemented Interfaces:
EventListener, IAction, IPropertyChangeListener
Direct Known Subclasses:
ShowWhitespaceAction

public class TextEditorPropertyAction extends Action implements IPropertyChangeListener
  • Constructor Details

  • Method Details

    • getViewers

      public MergeSourceViewer[] getViewers()
    • propertyChange

      public void propertyChange(PropertyChangeEvent event)
      Description copied from interface: IPropertyChangeListener
      Notification that a property has changed.

      This method gets called when the observed object fires a property change event.

      Specified by:
      propertyChange in interface IPropertyChangeListener
      Parameters:
      event - the property change event object describing which property changed and how
    • synchronizeWithPreference

      protected void synchronizeWithPreference()
    • getPreferenceKey

      public String getPreferenceKey()
    • run

      public void run()
      Description copied from class: Action
      The default implementation of this IAction method does nothing. Subclasses should override this method if they do not need information from the triggering event, or override runWithEvent(Event) if they do.
      Specified by:
      run in interface IAction
      Overrides:
      run in class Action
      See Also:
    • dispose

      public void dispose()
    • toggleState

      protected boolean toggleState(boolean checked)
      Parameters:
      checked - new state
      Returns:
      true if state has been changed, toggle has been successful