]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/PopulateElementMonitorDropParticipant.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / diagramEditor / PopulateElementMonitorDropParticipant.java
index 1c35147934c37ecfc7ab5b1f0e49523561b8bcbf..d12f9def3fdc1e7dbf77292fe4777ec91b2c66e1 100644 (file)
@@ -101,13 +101,13 @@ public class PopulateElementMonitorDropParticipant extends PopulateElementDropPa
             try {
                 Object obj = tr.getTransferData(LocalObjectTransferable.FLAVOR);
                 if (DEBUG)
-                    System.out.println("GOT FROM AWT: " + obj);
+                    System.out.println("GOT FROM AWT: " + obj); //$NON-NLS-1$
 
                 // Check SWT
                 if (!(obj instanceof IStructuredSelection)) {
                     obj = LocalObjectTransfer.getTransfer().getObject();
                     if (DEBUG)
-                        System.out.println("GOT FROM SWT: " + obj);
+                        System.out.println("GOT FROM SWT: " + obj); //$NON-NLS-1$
                 }
 
                 if (obj instanceof IStructuredSelection) {
@@ -132,7 +132,7 @@ public class PopulateElementMonitorDropParticipant extends PopulateElementDropPa
                 }
 
             } catch (UnsupportedFlavorException|IOException|DatabaseException e) {
-                LOGGER.error("dragEnter failed", e);
+                LOGGER.error("dragEnter failed", e); //$NON-NLS-1$
             }
         }
 
@@ -190,15 +190,15 @@ public class PopulateElementMonitorDropParticipant extends PopulateElementDropPa
         public List<ElementClassDragItem> resolve(ReadGraph graph, Variable parameter) throws DatabaseException {
 
             if (DEBUG) {
-                System.out.println("PARAM: " + parameter.getURI(graph));
-                Variable parent = parameter.browsePossible(graph, "..");
-                System.out.println("PARENT: " + parent.getURI(graph));
+                System.out.println("PARAM: " + parameter.getURI(graph)); //$NON-NLS-1$
+                Variable parent = parameter.browsePossible(graph, ".."); //$NON-NLS-1$
+                System.out.println("PARENT: " + parent.getURI(graph)); //$NON-NLS-1$
                 Resource parentComposite = parent.getPossibleRepresents(graph);
-                System.out.println("PARENT REPRESENTS: " + NameUtils.getSafeLabel(graph, parentComposite));
+                System.out.println("PARENT REPRESENTS: " + NameUtils.getSafeLabel(graph, parentComposite)); //$NON-NLS-1$
                 String prvi = Variables.getRVI(graph, parent);
-                System.out.println("PARENT RVI: " + prvi);
+                System.out.println("PARENT RVI: " + prvi); //$NON-NLS-1$
                 String parvi = Variables.getRVI(graph, parameter);
-                System.out.println("PARAM RVI: " + parvi);
+                System.out.println("PARAM RVI: " + parvi); //$NON-NLS-1$
             }
 
             Triple<Variable, Resource, IElement> match = findElementInDiagram(graph, parameter, false);
@@ -216,13 +216,13 @@ public class PopulateElementMonitorDropParticipant extends PopulateElementDropPa
             }
 
             if (DEBUG) {
-                System.out.println("p=" + parameter.getURI(graph));
-                System.out.println("c=" + match.first.getURI(graph));
+                System.out.println("p=" + parameter.getURI(graph)); //$NON-NLS-1$
+                System.out.println("c=" + match.first.getURI(graph)); //$NON-NLS-1$
             }
 
             String rvi = Variables.getRVI(graph, match.first, parameter);
             if (DEBUG)
-                System.out.println("r=" + rvi);
+                System.out.println("r=" + rvi); //$NON-NLS-1$
 
             Resource type = graph.getResource(typeURI);
 
@@ -246,7 +246,7 @@ public class PopulateElementMonitorDropParticipant extends PopulateElementDropPa
                 return null;
 
             if (DEBUG)
-                System.out.println("findElementInDiagram " + property.getURI(graph) + " " + property);
+                System.out.println("findElementInDiagram " + property.getURI(graph) + " " + property); //$NON-NLS-1$ //$NON-NLS-2$
 
             DiagramResource DIA = DiagramResource.getInstance(graph);
             ModelingResources MOD = ModelingResources.getInstance(graph);
@@ -260,7 +260,7 @@ public class PopulateElementMonitorDropParticipant extends PopulateElementDropPa
             Resource represents = property.getPossibleRepresents(graph);
             if (represents != null) {
                 if (DEBUG)
-                    System.out.println("represents " + NameUtils.getSafeName(graph, represents, true));
+                    System.out.println("represents " + NameUtils.getSafeName(graph, represents, true)); //$NON-NLS-1$
                 Resource elementResource = graph.getPossibleObject(represents, MOD.ComponentToElement);
                 // There must have be at least one
                 // PROPERTY role variable in the
@@ -290,7 +290,7 @@ public class PopulateElementMonitorDropParticipant extends PopulateElementDropPa
                 }
             }
 
-            return findElementInDiagram(graph, property.browsePossible(graph, "."), propertyRoleFound);
+            return findElementInDiagram(graph, property.browsePossible(graph, "."), propertyRoleFound); //$NON-NLS-1$
         }
 
     }