Package com.intellij.ide.util.treeView

Examples of com.intellij.ide.util.treeView.AbstractTreeNode


      boolean hasFocus)
    {
      DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
      if (node.getUserObject() instanceof AbstractTreeNode)
      {
        AbstractTreeNode userNode = (AbstractTreeNode) node.getUserObject();
        Object userValue = userNode.getValue();

        if (userValue instanceof XSModelTreeElement)
        {
          XSModelTreeElement treeElement = (XSModelTreeElement) userValue;

          if (treeElement.hasXStructureSupport())
          {
            String tagName = treeElement.getTagName();
            String targetLabel = treeElement.getTargetLabel();
            String targetTooltip = treeElement.getTargetTooltip();

            setIcon(expanded ? userNode.getOpenIcon() : userNode.getClosedIcon());

            setToolTipText(targetTooltip);

            append(tagName, SimpleTextAttributes.GRAYED_ATTRIBUTES);
            if (targetLabel != null)
View Full Code Here


      final DartUrlResolver resolver = DartUrlResolver.getInstance(project, pubspecYamlFile);
      resolver.processLivePackages(new PairConsumer<String, VirtualFile>() {
        public void consume(final @NotNull String packageName, final @NotNull VirtualFile packageDir) {
          final VirtualFile folder = packagesDir.findChild(packageName);
          if (folder != null) {
            final AbstractTreeNode node = getFolderNode(children, folder);
            if (node == null) {
              modifiedChildren.add(new SymlinkToLivePackageNode(project, packageName, packageDir));
            }
            else {
              node.getPresentation().setLocationString(getPackageLocationString(packageDir));
            }
          }
        }
      });
View Full Code Here

TOP

Related Classes of com.intellij.ide.util.treeView.AbstractTreeNode

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.