public interface ProjectInformation
ProjectUtils.getInformation(org.netbeans.api.project.Project)
as a client.
Use Project.getLookup()
as a provider.Modifier and Type | Field and Description |
---|---|
static String |
PROP_DISPLAY_NAME
Property name fired when the display name changes.
|
static String |
PROP_ICON
Property name fired when the icon changes.
|
static String |
PROP_NAME
Property name fired when the code name changes.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a listener to property changes.
|
String |
getDisplayName()
Get a human-readable display name for the project.
|
Icon |
getIcon()
Gets icon for given project.
|
String |
getName()
Get a programmatic code name suitable for use in build scripts or other
references.
|
Project |
getProject()
Get the associated project.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener to property changes.
|
static final String PROP_NAME
static final String PROP_DISPLAY_NAME
static final String PROP_ICON
String getName()
Project names should typically be distinctive enough to distinguish between different projects with some kind of relationships, but any usage of this name must take into account that they are not forced to be unique.
Should not contain odd characters; should be usable as a directory name on disk, as (part of) an Ant property name, etc. XXX precise format - at least conforms to XML NMTOKEN or ID
PropertyUtils.getUsablePropertyName
String getDisplayName()
Icon getIcon()
ProjectIconAnnotator
Project getProject()
void addPropertyChangeListener(PropertyChangeListener listener)
ProjectInformation.PROP_NAME
, ProjectInformation.PROP_DISPLAY_NAME
, and ProjectInformation.PROP_ICON
may be fired.
Since the event source is the info object, you may use ProjectInformation.getProject()
.listener
- a listener to addvoid removePropertyChangeListener(PropertyChangeListener listener)
listener
- a listener to remove