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
;
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
);
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() {