X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.document.ui%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fui%2FCSSCompletionAssistProcessor.java;h=0507fa5ef32af3874f25a019f56129bcaf5ff1fb;hp=fe909fabda887e9e7e15f13b9fe0773efe210e66;hb=c8e675ae59eebb045a095a07e54462d0fe87f5cb;hpb=8783f9ee2b67f83160d88f43a7aef02a6b25f955 diff --git a/bundles/org.simantics.document.ui/src/org/simantics/document/ui/CSSCompletionAssistProcessor.java b/bundles/org.simantics.document.ui/src/org/simantics/document/ui/CSSCompletionAssistProcessor.java index fe909fabd..0507fa5ef 100644 --- a/bundles/org.simantics.document.ui/src/org/simantics/document/ui/CSSCompletionAssistProcessor.java +++ b/bundles/org.simantics.document.ui/src/org/simantics/document/ui/CSSCompletionAssistProcessor.java @@ -11,7 +11,7 @@ import org.eclipse.jface.text.contentassist.IContextInformationValidator; public class CSSCompletionAssistProcessor implements IContentAssistProcessor { - private String lastError = ""; + private String lastError = ""; //$NON-NLS-1$ private CSSTextEditorEnvironment environment; public CSSCompletionAssistProcessor(CSSTextEditorEnvironment environment) { @@ -26,7 +26,7 @@ public class CSSCompletionAssistProcessor implements IContentAssistProcessor { tmpOffset = selection.getOffset() + selection.getLength(); final int offset = tmpOffset; IDocument document = viewer.getDocument(); - String tmpPrefix = ""; + String tmpPrefix = ""; //$NON-NLS-1$ try { tmpPrefix = getPrefix(document, offset); } catch (BadLocationException e) { @@ -38,7 +38,7 @@ public class CSSCompletionAssistProcessor implements IContentAssistProcessor { private static String getPrefix(IDocument doc, int offset) throws BadLocationException { if (doc == null || offset >= doc.getLength()) - return ""; + return ""; //$NON-NLS-1$ int length= 0; while (--offset >= 0 && Character.isJavaIdentifierPart(doc.getChar(offset)) || doc.getChar(offset) == '.')