X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FdiagramEditor%2FPopulateElementMonitorDropParticipant.java;h=d12f9def3fdc1e7dbf77292fe4777ec91b2c66e1;hp=1c35147934c37ecfc7ab5b1f0e49523561b8bcbf;hb=47269fe0acb894f346810417d950a1ab59cdc0ea;hpb=11309f6516278203264b680235cbbe1dc2bde98e diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/PopulateElementMonitorDropParticipant.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/PopulateElementMonitorDropParticipant.java index 1c3514793..d12f9def3 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/PopulateElementMonitorDropParticipant.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/PopulateElementMonitorDropParticipant.java @@ -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 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 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$ } }