Class ToggleWhitespace

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate, org.eclipse.ui.IViewActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

    public class ToggleWhitespace
    extends AbstractAction
    • Constructor Detail

      • ToggleWhitespace

        public ToggleWhitespace()
    • Method Detail

      • init

        public void init​(org.eclipse.ui.IWorkbenchWindow window1)
        Specified by:
        init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
        Overrides:
        init in class AbstractAction
      • run

        public void run​(org.eclipse.jface.action.IAction action)
        Specified by:
        run in interface org.eclipse.ui.IActionDelegate
        Overrides:
        run in class AbstractAction
      • uninstallGlobalListener

        void uninstallGlobalListener()
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.core.commands.IHandler
        Specified by:
        dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
        Overrides:
        dispose in class AbstractAction
      • applyEditorAnnotations

        private void applyEditorAnnotations​(boolean on)
      • addAnnotations

        private static void addAnnotations​(AbstractEditor aEditor,
                                           org.eclipse.jface.text.source.IAnnotationModelExtension extension)
      • addAnnotations

        private static void addAnnotations​(org.eclipse.jface.text.source.IAnnotationModel annotationModel,
                                           java.lang.String line,
                                           org.eclipse.jface.text.IRegion region,
                                           char c,
                                           org.eclipse.jface.text.source.Annotation annotation,
                                           org.eclipse.core.runtime.IProgressMonitor monitor)
      • addTrailingAnnotation

        private static void addTrailingAnnotation​(org.eclipse.jface.text.source.IAnnotationModel annotationModel,
                                                  java.lang.String line,
                                                  org.eclipse.jface.text.IRegion region)
      • removeAnnotations

        private static void removeAnnotations​(org.eclipse.jface.text.source.IAnnotationModelExtension extension)
      • enableButton

        private void enableButton()
      • disableButton

        private void disableButton()
      • selectionChanged

        public void selectionChanged​(org.eclipse.jface.action.IAction action,
                                     org.eclipse.jface.viewers.ISelection selection)
        Specified by:
        selectionChanged in interface org.eclipse.ui.IActionDelegate
        Overrides:
        selectionChanged in class AbstractAction
      • updateCheckState

        private void updateCheckState()
      • isChecked

        protected static boolean isChecked()
      • getPrefs

        private static org.eclipse.jface.preference.IPreferenceStore getPrefs()
      • setChecked

        protected static void setChecked​(boolean checked)
      • isTrailingOnly

        protected static boolean isTrailingOnly()
      • isTrailingShownDifferently

        protected static boolean isTrailingShownDifferently()