public final class LibrariesNode extends AbstractNode
Modifier and Type | Class and Description |
---|---|
static class |
LibrariesNode.Builder
Builder for
LibrariesNode . |
static interface |
LibrariesNode.Callback
Optional extension point to enhance LibrariesNode with additional nodes,
for example J2EE project type may add J2EE platform node.
|
static class |
LibrariesNode.Key |
Node.Cookie, Node.Handle, Node.IndexedProperty<T,E>, Node.Property<T>, Node.PropertySet
Modifier and Type | Field and Description |
---|---|
static RequestProcessor |
rp |
displayFormat, systemActions
EMPTY, PROP_COOKIE, PROP_DISPLAY_NAME, PROP_ICON, PROP_LEAF, PROP_NAME, PROP_OPENED_ICON, PROP_PARENT_NODE, PROP_PROPERTY_SETS, PROP_SHORT_DESCRIPTION
Constructor and Description |
---|
LibrariesNode(String displayName,
Project project,
PropertyEvaluator eval,
UpdateHelper helper,
ReferenceHelper refHelper,
String classPathProperty,
String[] classPathIgnoreRef,
String platformProperty,
Action[] librariesNodeActions,
String webModuleElementName,
ClassPathSupport cs,
LibrariesNode.Callback extraKeys)
Creates new LibrariesNode named displayName displaying classPathProperty classpath
and optionaly Java platform.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canCopy() |
static Action |
createAddFolderAction(AntProjectHelper p,
SourceRoots sources) |
static Action |
createAddLibraryAction(ReferenceHelper helper,
SourceRoots sources,
LibraryChooser.Filter filter) |
static Action |
createAddProjectAction(Project p,
SourceRoots sources) |
Action[] |
getActions(boolean context) |
String |
getDisplayName() |
Image |
getIcon(int type) |
String |
getName() |
Image |
getOpenedIcon(int type) |
canCut, canDestroy, canRename, clipboardCopy, clipboardCut, cloneNode, createActions, createPasteTypes, createSheet, drag, getActions, getCookie, getCookieSet, getCustomizer, getDefaultAction, getDropType, getHandle, getHelpCtx, getNewTypes, getPasteTypes, getPreferredAction, getPropertySets, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, setName, setSheet
addNodeListener, addPropertyChangeListener, clone, destroy, equals, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextActions, getContextMenu, getHtmlDisplayName, getLookup, getParentNode, hashCode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setDisplayName, setHidden, setShortDescription, toString
attributeNames, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setPreferred, setValue
public static final RequestProcessor rp
public LibrariesNode(String displayName, Project project, PropertyEvaluator eval, UpdateHelper helper, ReferenceHelper refHelper, String classPathProperty, String[] classPathIgnoreRef, String platformProperty, Action[] librariesNodeActions, String webModuleElementName, ClassPathSupport cs, LibrariesNode.Callback extraKeys)
displayName
- the display name of the nodeeval
- PropertyEvaluator
used for listeninghelper
- UpdateHelper
used for reading and updating project's metadatarefHelper
- ReferenceHelper
used for destroying unused referencesclassPathProperty
- the ant property name of classpath which should be visualizedclassPathIgnoreRef
- the array of ant property names which should not be displayed, may be
an empty array but not nullplatformProperty
- the ant name property holding the Web platform system name or null
if the platform should not be displayedlibrariesNodeActions
- actions which should be available on the created node.public String getDisplayName()
getDisplayName
in class FeatureDescriptor
public String getName()
getName
in class FeatureDescriptor
public Image getIcon(int type)
getIcon
in class AbstractNode
public Image getOpenedIcon(int type)
getOpenedIcon
in class AbstractNode
public Action[] getActions(boolean context)
getActions
in class Node
public boolean canCopy()
canCopy
in class AbstractNode
public static Action createAddProjectAction(Project p, SourceRoots sources)
public static Action createAddLibraryAction(ReferenceHelper helper, SourceRoots sources, LibraryChooser.Filter filter)
public static Action createAddFolderAction(AntProjectHelper p, SourceRoots sources)