-package org.simantics.scl.ui.editor;\r
-\r
-import org.eclipse.jface.text.DocumentCommand;\r
-import org.eclipse.jface.text.IAutoEditStrategy;\r
-import org.eclipse.jface.text.IDocument;\r
-\r
-public class ReplaceTabsBySpaces implements IAutoEditStrategy {\r
-\r
- public void customizeDocumentCommand(IDocument d, DocumentCommand c) {\r
- if (c.length == 0 && c.text != null && c.text.indexOf('\t') >= 0) {\r
- c.text = c.text.replace("\t", " ");\r
- } \r
- }\r
- \r
-}\r
+package org.simantics.scl.ui.editor;
+
+import org.eclipse.jface.text.DocumentCommand;
+import org.eclipse.jface.text.IAutoEditStrategy;
+import org.eclipse.jface.text.IDocument;
+
+public class ReplaceTabsBySpaces implements IAutoEditStrategy {
+
+ public void customizeDocumentCommand(IDocument d, DocumentCommand c) {
+ if (c.length == 0 && c.text != null && c.text.indexOf('\t') >= 0) {
+ c.text = c.text.replace("\t", " ");
+ }
+ }
+
+}