Ejemplo n.º 1
0
 public List<SNode> getSelectedSNodes() {
   List<SNode> result = new ArrayList<SNode>();
   for (MPSTreeNodeEx node : getSelectedTreeNodes(MPSTreeNodeEx.class)) {
     SNode snode = node.getSNode();
     if (snode == null) continue;
     result.add(snode);
   }
   return result;
 }
Ejemplo n.º 2
0
 public SNode getSelectedSNode() {
   MPSTreeNodeEx selectedTreeNode = getSelectedTreeNode(MPSTreeNodeEx.class);
   if (selectedTreeNode == null) return null;
   return selectedTreeNode.getSNode();
 }