public TreeNode(DependencyNode node, final Lookup tcLookup) { super(createTreeChildren(node, tcLookup), Lookups.fixed(node)); this.tcLookup = tcLookup; final Artifact artifact = node.getArtifact(); setName(artifact.getId()); this.node = node; setDisplayName(artifact.getArtifactId() + "-" + artifact.getVersion() + "." + artifact.getArtifactHandler().getExtension()); if (node.getDepth() > 1) { setIconBaseWithExtension(IconResources.TRANSITIVE_DEPENDENCY_ICON); } else { setIconBaseWithExtension(IconResources.ICON_DEPENDENCY_JAR); } setShortDescription(Bundle.TIP_listNode(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), calculateStateTipPart(node))); }
@NbBundle.Messages({"TIP_listNode=<html><i>GroupId:</i> <b>{0}</b><br/><i>ArtifactId:</i> <b>{1}</b><br/><i>Version:</i> <b>{2}</b><br/><i>State:</i> <b>{3}</b><br/></html>"}) public ListNode(DependencyNode node, final Lookup tcLookup) { super(Children.LEAF, Lookups.fixed(node)); this.tcLookup = tcLookup; this.node = node; final Artifact artifact = node.getArtifact(); setName(artifact.getId()); setDisplayName(artifact.getArtifactId() + "-" + artifact.getVersion() + "." + artifact.getArtifactHandler().getExtension()); if (node.getDepth() > 1) { setIconBaseWithExtension(IconResources.TRANSITIVE_DEPENDENCY_ICON); } else { setIconBaseWithExtension(IconResources.ICON_DEPENDENCY_JAR); } setShortDescription(Bundle.TIP_listNode(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), calculateStateTipPart(node))); }
int nodeDepth = node.getDepth(); if ( nodeDepth > maxDepth )