Package com.intellij.openapi.graph.builder.components

Examples of com.intellij.openapi.graph.builder.components.BasicNodesGroup


      assert element != null;
      final PsiFile file = element.getContainingFile();
      if (file != null && !myGroups.containsKey(file)) {
        final String name = file.getName();

        final BasicNodesGroup group = new BasicNodesGroup(name) {

          @Nullable
          public GroupNodeRealizer getGroupNodeRealizer() {
            final GroupNodeRealizer groupNodeRealizer = super.getGroupNodeRealizer();
            assert groupNodeRealizer != null;

            final NodeLabel nodeLabel = groupNodeRealizer.getLabel();
            nodeLabel.setText("      " + getGroupName());
            nodeLabel.setModel(NodeLabel.INTERNAL);
            nodeLabel.setPosition(NodeLabel.TOP_RIGHT);

            return groupNodeRealizer;
          }
        };

        // collapse all other files
        group.setClosed(file != myFile);

        myGroups.put(file, group);

      }
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.graph.builder.components.BasicNodesGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.