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) {
}
} catch (UnsupportedFlavorException|IOException|DatabaseException e) {
- LOGGER.error("dragEnter failed", e);
+ LOGGER.error("dragEnter failed", e); //$NON-NLS-1$
}
}
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);
}
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);
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);
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
}
}
- return findElementInDiagram(graph, property.browsePossible(graph, "."), propertyRoleFound);
+ return findElementInDiagram(graph, property.browsePossible(graph, "."), propertyRoleFound); //$NON-NLS-1$
}
}