Package com.intellij.ide.projectView

Examples of com.intellij.ide.projectView.PresentationData


    super(project, parentDescriptor);
  }

  public final boolean update() {
    if (shouldUpdateData()) {
      PresentationData before = getPresentation().clone();
      PresentationData updated = getUpdatedPresentation();
      return shouldApply() ? apply(updated, before) : false;
    } else {
      return false;
    }
  }
View Full Code Here


    return updated;
  }

  private PresentationData getUpdatedPresentation() {
    PresentationData presentation = myUpdatedPresentation != null ? myUpdatedPresentation : createPresentation();
    myUpdatedPresentation = presentation;
    presentation.clear();
    update(presentation);

    if (shouldPostprocess()) {
      postprocess(presentation);
    }
View Full Code Here

    return presentation;
  }

  @NotNull
  protected PresentationData createPresentation() {
    return new PresentationData();
  }
View Full Code Here

  protected abstract void update(PresentationData presentation);

  @NotNull
  public final PresentationData getPresentation() {
    PresentationData result;
    if (myUpdatedPresentation == null) {
      result = getTemplatePresentation();
    } else {
      result = myUpdatedPresentation;
    }
View Full Code Here

    }

    @NotNull
    protected PresentationData createPresentation()
    {
      PresentationData presentation = new PresentationData();
      if (myName == null)
      {
        presentation.addText(RevuBundle.message("browsing.group.values.none.text"),
          SimpleTextAttributes.GRAYED_BOLD_ATTRIBUTES);
      }
      else
      {
        presentation.addText(myName, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES);
      }

      presentation.addText(" [" + children.size() + "]", SimpleTextAttributes.GRAY_ATTRIBUTES);

      return presentation;
    }
View Full Code Here

    }

    @NotNull
    protected PresentationData createPresentation()
    {
      PresentationData presentation = new PresentationData();

      presentation.addText(" " + issue.getPresentableSummary(), SimpleTextAttributes.REGULAR_ATTRIBUTES);

      presentation.setTooltip(issue.getDesc());

      return presentation;
    }
View Full Code Here

    }

    @NotNull
    protected PresentationData createPresentation()
    {
      PresentationData presentation = new PresentationData();
      if (myName == null)
      {
        presentation.addText(RevuBundle.message("browsing.group.values.none.text"),
          SimpleTextAttributes.GRAYED_BOLD_ATTRIBUTES);
      }
      else
      {
        presentation.addText(myName, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES);
      }

      presentation.addText(" [" + children.size() + "]", SimpleTextAttributes.GRAY_ATTRIBUTES);

      return presentation;
    }
View Full Code Here

    }

    @NotNull
    protected PresentationData createPresentation()
    {
      PresentationData presentation = new PresentationData();

      presentation.addText(" " + issue.getSummary(), SimpleTextAttributes.REGULAR_ATTRIBUTES);

      presentation.setTooltip(issue.getDesc());

      return presentation;
    }
View Full Code Here

    protected final StrutsFileSet mySet;

    FileSetNode(final StrutsFileSet fileSet) {
      mySet = fileSet;

      final PresentationData presentationData = getPresentation();
      final String name = mySet.getName();

      if (fileSet.getFiles().isEmpty()) {
        presentationData.addText(name, getErrorAttributes());
        presentationData.setTooltip(StrutsBundle.message("facet.fileset.no.files.attached"));
      }
      else {
        presentationData.addText(name, getPlainAttributes());
        presentationData.setLocationString(Integer.toString(fileSet.getFiles().size()));
      }
    }
View Full Code Here

    }

    private void renderFile(final VirtualFile file,
                            final SimpleTextAttributes textAttributes,
                            @Nullable final String toolTip) {
      final PresentationData presentation = getPresentation();
      presentation.setTooltip(toolTip);
      presentation.addText(myFilePointer.getFileName(), textAttributes);

      if (file != null) {
        presentation.setLocationString(file.getPath());
      }
    }
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.