Package com.intellij.ide.projectView

Examples of com.intellij.ide.projectView.PresentationData


  }

  @NotNull
  @Override
  public ItemPresentation getPresentation() {
    return new PresentationData(getPresentableText(), null, getIcon(false), null);
  }
View Full Code Here


    super(node);
  }

  @Override
  public ItemPresentation getPresentation() {
    return new PresentationData(getIdentifier().getText(),
                                null,
                                PlatformIcons.PARAMETER_ICON,
                                null);
  }
View Full Code Here

  @NotNull
  public abstract Collection<? extends AbstractTreeNode> getChildren();

  public final boolean update() {
    PresentationData presentation = getUpdatedData();

    Icon openIcon = presentation.getIcon(true);
    Icon closedIcon = presentation.getIcon(false);
    String name = presentation.getPresentableText();
    String locationString = presentation.getLocationString();
    TextAttributesKey attributesKey = presentation.getTextAttributesKey();
    Color color = computeColor();
    String tooltip = presentation.getTooltip();

    boolean updated = !Comparing.equal(new Object[]{myOpenIcon, myClosedIcon, myName, myLocationString, myColor, myAttributesKey, myTooltip},
                                        new Object[]{openIcon, closedIcon, name, locationString, color, attributesKey, tooltip});
    myOpenIcon = openIcon;
    myClosedIcon = closedIcon;
View Full Code Here

  protected boolean valueIsCut() {
    return CopyPasteManager.getInstance().isCutElement(getValue());
  }

  private PresentationData getUpdatedData() {
    PresentationData presentation = new PresentationData();
    if (shouldUpdateData()) {
      update(presentation);
    }
    if (hasProblemFileBeneath() ) {
      presentation.setAttributesKey(CodeInsightColors.ERRORS_ATTRIBUTES);
    }
    return presentation;
  }
View Full Code Here

      return null;
    }
  }

  public ItemPresentation getPresentation() {
    return new PresentationData(myName, myLocationString, myOpenIcon, myClosedIcon,myAttributesKey);
  }
View Full Code Here

TOP

Related Classes of com.intellij.ide.projectView.PresentationData

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.