- boolean changed = dynamicVisualisationContributionsParticipant.doHover(true, isConnectionTool);
- if (changed) {
- // we prefer the first picked element only
- IElement elem = elements.get(0);
- G2DParentNode node = elem.getHint(DistrictNetworkVertexElement.KEY_DN_VERTEX_NODE);
- if (node instanceof DistrictNetworkVertexNode) {
- } else {
- node = elem.getHint(DistrictNetworkEdgeElement.KEY_DN_EDGE_NODE);
- }
- Resource mapElement = elem.getHint(ElementHints.KEY_OBJECT);
- Resource runtimeDiagram = diagram.getHint(DiagramModelHints.KEY_DIAGRAM_RUNTIME_RESOURCE);
- dynamicVisualisationContributionsParticipant.hoverNode(runtimeDiagram, mapElement, node);
- }
- return changed;
- }
- }