Class LinkWithEditorActionContribution

All Implemented Interfaces:
IOutlineContribution

public class LinkWithEditorActionContribution extends ToggleActionContribution
Contributes link-with-editor action, if the outline page supports linking with editor.
  • Field Details

  • Constructor Details

    • LinkWithEditorActionContribution

      public LinkWithEditorActionContribution()
  • Method Details

    • getPreference

      protected IBooleanPreference getPreference()
      Description copied from class: ToggleActionContribution
      Returns a boolean-valued preference that is to be toggled by the contributed action. May return null, in which case this contribution will be effectively disabled. This method is called once, when this contribution is initializing.
      Specified by:
      getPreference in class ToggleActionContribution
      Returns:
      the linked preference, or null
    • configureAction

      protected void configureAction(org.eclipse.jface.action.IAction action)
      Description copied from class: ToggleActionContribution
      Hook to configure the contributed action (set its id, text, image, etc.) This method is called once, when this contribution is initializing.
      Specified by:
      configureAction in class ToggleActionContribution
      Parameters:
      action - the action to configure (never null)