]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/internal/DebugUtils.java
Externalize strings in org.simantics.debug.ui
[simantics/platform.git] / bundles / org.simantics.debug.ui / src / org / simantics / debug / ui / internal / DebugUtils.java
index 306f7f9613c6d4a9f593c565524f546d14f46275..67ebb19ee46e6de414c38bb9e595d6a12b1dcd78 100644 (file)
@@ -44,7 +44,7 @@ public class DebugUtils {
         if (stm != null) {
             String label = NameUtils.getSafeLabel(graph, r);
             if (!label.isEmpty() && !stm.isAsserted(r))
-                name += " (" + label + ")";
+                name += " (" + label + ")"; //$NON-NLS-1$ //$NON-NLS-2$
         }
         return name;
     }
@@ -80,14 +80,14 @@ public class DebugUtils {
     public static void addResource(Session s, GraphDebugger debugger) throws DatabaseException {
         Shell shell = debugger.getShell();
 
-        SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, "Create New Resource");
+        SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, Messages.DebugUtils_CreateNewResource);
         rld.setBlockOnOpen(true);
         rld.setResourceFilter(ResourceSearch.FILTER_TYPES);
 
         Resource subject_ = debugger.getDebuggerLocation();
         if (subject_ == null) {
             rld.setBlockOnOpen(true);
-            rld.setMessage("Select Subject");
+            rld.setMessage(Messages.DebugUtils_SelectSubject);
             rld.setInitialSelections(new Object[] {});
             if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
             if (rld.getResult()==null) return;
@@ -97,13 +97,13 @@ public class DebugUtils {
 
         rld.setBlockOnOpen(true);
         rld.setResourceFilter(ResourceSearch.FILTER_RELATIONS);
-        rld.setMessage("Select Predicate");
+        rld.setMessage(Messages.DebugUtils_SelectPredicate);
         rld.setInitialSelections(new Object[] {});
         if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
         if (rld.getResult()==null) return;
         final Resource predicate = ((Container<Resource>)rld.getResult()[0]).get();
 
-        rld.setMessage("Select Type of New Object Instance");
+        rld.setMessage(Messages.DebugUtils_SelectTypeOfNewObjectInstance);
         rld.setResourceFilter(ResourceSearch.FILTER_TYPES);
         rld.setInitialSelections(new Object[] {});
         if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
@@ -127,12 +127,12 @@ public class DebugUtils {
     @SuppressWarnings("unchecked")
     public static void addStatement(Session s, GraphDebugger debugger) throws DatabaseException {
         Shell shell = debugger.getShell();
-        SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, "Create New Statement");
+        SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, Messages.DebugUtils_CreateNewStatement);
 
         Resource subject_ = debugger.getDebuggerLocation();
         if (subject_ == null) {
             rld.setBlockOnOpen(true);
-            rld.setMessage("Select Subject");
+            rld.setMessage(Messages.DebugUtils_SelectSubject);
             rld.setInitialSelections(new Object[] {});
             if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
             if (rld.getResult()==null) return;
@@ -142,14 +142,14 @@ public class DebugUtils {
 
         rld.setBlockOnOpen(true);
         rld.setResourceFilter(ResourceSearch.FILTER_RELATIONS);
-        rld.setMessage("Select Predicate");
+        rld.setMessage(Messages.DebugUtils_SelectPredicate);
         rld.setInitialSelections(new Object[] {});
         if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
         if (rld.getResult()==null) return;
         final Resource predicate = ((Container<Resource>)rld.getResult()[0]).get();
 
         rld.setResourceFilter(ResourceSearch.FILTER_ALL);
-        rld.setMessage("Select Object");
+        rld.setMessage(Messages.DebugUtils_SelectObject);
         rld.setInitialSelections(new Object[] {});
         if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
         if (rld.getResult()==null) return;
@@ -165,7 +165,7 @@ public class DebugUtils {
 
     public static void find(Session s, GraphDebugger debugger) {
         Shell shell = debugger.getShell();
-        SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, "Select Resource to View");
+        SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, Messages.DebugUtils_SelectResourceToView);
         rld.setBlockOnOpen(true);
         if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
         if (rld.getResult()==null) return;