]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLConsole.java
Externalize strings in org.simantics.scl.ui
[simantics/platform.git] / bundles / org.simantics.scl.ui / src / org / simantics / scl / ui / console / SCLConsole.java
index 7221158c1bacfbfa8d91e27791ab84a49c8ee388..9df117f7e1288ef63869002bfde0952f8a42249e 100644 (file)
@@ -42,7 +42,7 @@ public class SCLConsole extends AbstractCommandConsole {
      */
     public static final int EXCLUDE_CONTRIBUTED_LISTENERS = 1 << 10;
 
-       public static final String JOB_NAME = "org.simantics.scl.console.job";
+       public static final String JOB_NAME = "org.simantics.scl.console.job"; //$NON-NLS-1$
        public static final long TERMINATE_GRACE_PERIOD = 1000L;
        
        private THashSet<Job> currentJobs = new THashSet<Job>();
@@ -53,15 +53,15 @@ public class SCLConsole extends AbstractCommandConsole {
        SCLReportingHandler handler = new AbstractSCLReportingHandler() {
         @Override
         public void print(String text) {
-            appendOutput(text + "\n", null, null);
+            appendOutput(text + "\n", null, null); //$NON-NLS-1$
         }
         @Override
         public void printError(String error) {
-            appendOutput(error + "\n", redColor, null);
+            appendOutput(error + "\n", redColor, null); //$NON-NLS-1$
         }
         @Override
         public void printCommand(String command) {
-            appendOutput("> " + command.replace("\n", "\n  ") + "\n", greenColor, null);
+            appendOutput("> " + command.replace("\n", "\n  ") + "\n", greenColor, null); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
         }
     };
 
@@ -90,7 +90,7 @@ public class SCLConsole extends AbstractCommandConsole {
                     input, 
                     styledTextContentAdapter, 
                     contentProvider, 
-                    KeyStroke.getInstance("Ctrl+Space"), 
+                    KeyStroke.getInstance("Ctrl+Space"),  //$NON-NLS-1$
                     null);
             contentProposalAdapter.setAutoActivationDelay(200);
         } catch (ParseException e) {
@@ -135,7 +135,7 @@ public class SCLConsole extends AbstractCommandConsole {
     }
     
     private String jobNameFromCommand(String command) {
-        return command.split("\n")[0];
+        return command.split("\n")[0]; //$NON-NLS-1$
     }
 
     @Override