Search in sources :

Example 1 with BasicStrutsNode

use of com.intellij.struts2.graph.beans.BasicStrutsNode 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;
}
Also used : BasicStrutsNode(com.intellij.struts2.graph.beans.BasicStrutsNode) DomElement(com.intellij.util.xml.DomElement) Node(com.intellij.openapi.graph.base.Node) BasicStrutsNode(com.intellij.struts2.graph.beans.BasicStrutsNode) ArrayList(java.util.ArrayList) Graph2D(com.intellij.openapi.graph.view.Graph2D)

Aggregations

Node (com.intellij.openapi.graph.base.Node)1 Graph2D (com.intellij.openapi.graph.view.Graph2D)1 BasicStrutsNode (com.intellij.struts2.graph.beans.BasicStrutsNode)1 DomElement (com.intellij.util.xml.DomElement)1 ArrayList (java.util.ArrayList)1