X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.ui%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fui%2Feditor%2FReplaceTabsBySpaces.java;h=a01295dcbfdce20003b302662a77425ebe67434f;hb=a516cf32592cf470cfc3f6ff96ee8b5168bd7a43;hp=0bc58e5756b0e2084792bdeaffa02668ed6b7f83;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/ReplaceTabsBySpaces.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/ReplaceTabsBySpaces.java old mode 100755 new mode 100644 index 0bc58e575..a01295dcb --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/ReplaceTabsBySpaces.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/ReplaceTabsBySpaces.java @@ -1,15 +1,15 @@ -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", " "); - } - } - -} +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", " "); + } + } + +}