]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.ui/src/org/simantics/document/ui/CSSCompletionAssistProcessor.java
Externalize strings in org.simantics.document.ui
[simantics/platform.git] / bundles / org.simantics.document.ui / src / org / simantics / document / ui / CSSCompletionAssistProcessor.java
index fe909fabda887e9e7e15f13b9fe0773efe210e66..0507fa5ef32af3874f25a019f56129bcaf5ff1fb 100644 (file)
@@ -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) == '.')