use of com.intellij.openapi.graph.view.Graph2D in project intellij-plugins by JetBrains.
the class Struts2GraphComponent method getSelectedDomElements.
public List<DomElement> getSelectedDomElements() {
final List<DomElement> selected = new ArrayList<>();
final Graph2D graph = myBuilder.getGraph();
for (final Node node : graph.getNodeArray()) {
if (graph.isSelected(node)) {
final BasicStrutsNode nodeObject = myBuilder.getNodeObject(node);
if (nodeObject != null) {
ContainerUtil.addIfNotNull(selected, nodeObject.getIdentifyingElement());
}
}
}
return selected;
}
Aggregations