Ejemplo n.º 1
0
 public NodeNodeData(
     PathItemRole role,
     SearchResult result,
     boolean isResultNode,
     INodeRepresentator nodeRepresentator,
     boolean resultsSection) {
   super(
       role,
       (isResultNode && nodeRepresentator != null)
           ? nodeRepresentator.getPresentation(result.getObject())
           : snodeRepresentation((SNode) result.getPathObject()),
       nodeAdditionalInfo((SNode) result.getPathObject()),
       false,
       isResultNode,
       resultsSection);
   myNodePointer = new jetbrains.mps.smodel.SNodePointer((SNode) result.getPathObject());
 }
Ejemplo n.º 2
0
 public NodeNodeData(
     PathItemRole role,
     SNode node,
     boolean isResultNode,
     INodeRepresentator nodeRepresentator,
     boolean resultsSection) {
   super(
       role,
       (isResultNode && nodeRepresentator != null)
           ? nodeRepresentator.getPresentation(node)
           : snodeRepresentation(node),
       nodeAdditionalInfo(node),
       false,
       isResultNode,
       resultsSection);
   myNodePointer = new jetbrains.mps.smodel.SNodePointer(node);
 }