\r
// Do we need this?\r
element.setHint(DiagramHints.ROUTE_ALGORITHM, new Router4(false));\r
- System.out.println(connection);\r
IModelingRules modelingRules = diagram.getHint(DiagramModelHints.KEY_MODELING_RULES);\r
\r
-// IElement mappedElement = ElementUtils.getByData(diagram, connection);\r
-// if (mappedElement == null) {\r
-// System.out.println("taalla ollaan mappedElement == null");\r
-// // FIXME: With undo this seems to happen, don't know why yet!\r
-// return;\r
-// }\r
-\r
Color color = null;\r
DiagramResource DR = DiagramResource.getInstance(graph);\r
G2DResource G2D = G2DResource.getInstance(graph);\r