]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/ModelingUIUtils.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / ModelingUIUtils.java
index fa153e193500d4fa29804c5d723e627dc0047896..2ce2c802bd90990a8e682a5c35729800f4aad74f 100644 (file)
@@ -79,7 +79,7 @@ public class ModelingUIUtils {
                                String label = graph.getPossibleRelatedValue2(_res, L0.HasLabel, Bindings.STRING);
 
                                if (label != null && !name.equals(label)) {
-                                       name = label + " (" + name + ")";
+                                       name = label + " (" + name + ")"; //$NON-NLS-1$ //$NON-NLS-2$
                                }
 
                                Resource parent = graph.getPossibleObject(_res, L0.PartOf);
@@ -88,10 +88,10 @@ public class ModelingUIUtils {
                                String parentURI = graph.getURI(parent);
                                if(parentURI.startsWith(modelURI)) {
                                        parentURI = parentURI.substring(modelURI.length());
-                                       if(parentURI.startsWith("/")) parentURI = parentURI.substring(1);
+                                       if(parentURI.startsWith("/")) parentURI = parentURI.substring(1); //$NON-NLS-1$
                                }
 
-                               name = name + " - " + URIStringUtils.unescape(parentURI);
+                               name = name + " - " + URIStringUtils.unescape(parentURI); //$NON-NLS-1$
 
                                map.put(_res, new Pair<String, ImageDescriptor>(name, null));
                                
@@ -105,7 +105,7 @@ public class ModelingUIUtils {
                                String label = graph.getPossibleRelatedValue2(res, L0.HasLabel, Bindings.STRING);
 
                                if (label != null && !name.equals(label)) {
-                                       name = label + " (" + name + ")";
+                                       name = label + " (" + name + ")"; //$NON-NLS-1$ //$NON-NLS-2$
                                }
 
                                Resource parent = graph.getPossibleObject(_res, L0.PartOf);
@@ -114,10 +114,10 @@ public class ModelingUIUtils {
                                String parentURI = graph.getURI(parent);
                                if(parentURI.startsWith(modelURI)) {
                                        parentURI = parentURI.substring(modelURI.length());
-                                       if(parentURI.startsWith("/")) parentURI = parentURI.substring(1);
+                                       if(parentURI.startsWith("/")) parentURI = parentURI.substring(1); //$NON-NLS-1$
                                }
 
-                               name = name + " - " + URIStringUtils.unescape(parentURI);
+                               name = name + " - " + URIStringUtils.unescape(parentURI); //$NON-NLS-1$
 
                                map.put(_res, new Pair<String, ImageDescriptor>(name, null));
                        
@@ -135,7 +135,7 @@ public class ModelingUIUtils {
                        @Override
                        public void run() {
                                Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
-                               ResourceSelectionDialog3<Resource> dialog = new ResourceSelectionDialog3<Resource>(shell, map, "Select query type from list") {
+                               ResourceSelectionDialog3<Resource> dialog = new ResourceSelectionDialog3<Resource>(shell, map, Messages.ModelingUIUtils_SelectQueryType) {
                                        @Override
                                        protected IDialogSettings getBaseDialogSettings() {
                                                return Activator.getDefault().getDialogSettings();
@@ -166,7 +166,7 @@ public class ModelingUIUtils {
                         @Override
                         public void perform(WriteGraph g) throws DatabaseException {
                             g.markUndoPoint();
-                            Simantics.applySCL("Simantics/Query", "createSCLQueryDefault", g, parent, selected);
+                            Simantics.applySCL("Simantics/Query", "createSCLQueryDefault", g, parent, selected); //$NON-NLS-1$ //$NON-NLS-2$
                         }
                     });
                 });