]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/completion/SCLCompletionAssistProcessor.java
Externalize strings in org.simantics.scl.ui
[simantics/platform.git] / bundles / org.simantics.scl.ui / src / org / simantics / scl / ui / editor / completion / SCLCompletionAssistProcessor.java
index f779435ead4ae4a6f35d6dbdbe92f408641641cc..c02946c7bf7e829eaa6d05db6a3ab31ab8676246 100644 (file)
@@ -12,7 +12,7 @@ import org.eclipse.jface.text.contentassist.IContextInformationValidator;
 public class SCLCompletionAssistProcessor implements IContentAssistProcessor {
     
 //    private String lastPrefix = null;
-    private String lastError = "";
+    private String lastError = ""; //$NON-NLS-1$
     private SCLTextEditorEnvironment sclTextEditorEnvironment;
     
     public SCLCompletionAssistProcessor(SCLTextEditorEnvironment sclTextEditorEnvironment) {
@@ -27,7 +27,7 @@ public class SCLCompletionAssistProcessor 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) {
@@ -40,7 +40,7 @@ public class SCLCompletionAssistProcessor implements IContentAssistProcessor {
     private static String getPrefix(IDocument doc, int offset) throws BadLocationException {
         int docLen = doc.getLength();
         if (doc == null || offset > docLen || docLen == 0)
-            return "";
+            return ""; //$NON-NLS-1$
 
         int length= 0;
         while (--offset >= 0 && Character.isJavaIdentifierPart(doc.getChar(offset)) || doc.getChar(offset) == '.')