Class ToggleActionContribution

    • Constructor Detail

      • ToggleActionContribution

        public ToggleActionContribution()
    • Method Detail

      • disposeAction

        protected final void disposeAction​(org.eclipse.jface.action.IAction action)
        Description copied from class: OutlineActionContribution
        Disposes of the contributed action.

        Default implementation does nothing. Subclasses may override.

        Overrides:
        disposeAction in class OutlineActionContribution
        Parameters:
        action - the action to dispose (never null)
      • getPreference

        protected abstract IBooleanPreference getPreference()
        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.
        Returns:
        the linked preference, or null
      • configureAction

        protected abstract void configureAction​(org.eclipse.jface.action.IAction action)
        Hook to configure the contributed action (set its id, text, image, etc.) This method is called once, when this contribution is initializing.
        Parameters:
        action - the action to configure (never null)