distinguish annotation interfaces in Ctrl-hover popup (IDEADEV-40633)
[fedora-idea.git] / java / idea-ui / src / com / intellij / openapi / roots / ui / configuration / packaging / LibraryFileNode.java
blob66010a6da244829174f9b822c15fb6fdd8adbd9b
1 package com.intellij.openapi.roots.ui.configuration.packaging;
3 import com.intellij.openapi.deployment.LibraryLink;
4 import com.intellij.openapi.roots.libraries.Library;
5 import com.intellij.openapi.vfs.VirtualFile;
6 import com.intellij.ui.ColoredTreeCellRenderer;
7 import org.jetbrains.annotations.NotNull;
8 import org.jetbrains.annotations.Nullable;
10 /**
11 * @author nik
13 class LibraryFileNode extends LibraryNodeBase {
14 private final VirtualFile myFile;
15 private final Library myLibrary;
17 LibraryFileNode(final @NotNull VirtualFile file, final @NotNull Library library, @NotNull LibraryLink libraryLink, final @Nullable PackagingArtifact owner) {
18 super(owner, libraryLink);
19 myFile = file;
20 myLibrary = library;
23 @NotNull
24 public String getOutputFileName() {
25 return myFile.getName();
28 public double getWeight() {
29 return PackagingNodeWeights.FILE;
32 public void render(@NotNull final ColoredTreeCellRenderer renderer) {
33 PackagingEditorUtil.renderLibraryFile(renderer, myLibrary, myFile, getMainAttributes(), getCommentAttributes());
36 public VirtualFile getFile() {
37 return myFile;