Class Spaces

  • 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 Spaces
    extends AbstractTextAction
    • Constructor Detail

      • Spaces

        public Spaces()
    • Method Detail

      • doTextOperation

        protected void doTextOperation​(org.eclipse.jface.text.IDocument doc,
                                       java.lang.String actionID,
                                       TextReplaceResultSet resultSet)
                                throws org.eclipse.jface.text.BadLocationException
        Should be invoked always after estimateActionRange() to ensure that operaton is possible
        Specified by:
        doTextOperation in class AbstractTextAction
        Parameters:
        doc - cannot be null
        actionID -
        resultSet - cannot be null
        Throws:
        org.eclipse.jface.text.BadLocationException
      • getLineDelimiter

        protected java.lang.String getLineDelimiter()
      • getPlatformPreferences

        private static org.osgi.service.prefs.Preferences getPlatformPreferences​(org.eclipse.core.resources.IProject project)
      • getLineDelimiter

        private static java.lang.String getLineDelimiter​(org.osgi.service.prefs.Preferences node)
      • isSaveAndTrimEnabled

        public boolean isSaveAndTrimEnabled()
      • isSaveAndAddLineEnabled

        private boolean isSaveAndAddLineEnabled​(CombinedPreferences prefs)
      • isSaveAndFixLineDelimitersEnabled

        private boolean isSaveAndFixLineDelimitersEnabled​(CombinedPreferences prefs)
      • isSaveAndConvertEnabled

        public boolean isSaveAndConvertEnabled()
      • isRemoveTrailingSpaceEnabled

        protected boolean isRemoveTrailingSpaceEnabled​(CombinedPreferences prefs)
      • isFixLineDelimitersEnabled

        protected boolean isFixLineDelimitersEnabled​(CombinedPreferences prefs)
      • isReplaceAllTabsEnabled

        protected boolean isReplaceAllTabsEnabled​(CombinedPreferences prefs)
      • isReplaceAllSpacesEnabled

        protected boolean isReplaceAllSpacesEnabled​(CombinedPreferences prefs)
      • isDefaultTabToSpaces

        public boolean isDefaultTabToSpaces()
      • getTabWidth

        public int getTabWidth​(org.eclipse.core.resources.IFile file,
                               CombinedPreferences prefs)