| org.netbeans.spi.project.ProjectConfigurationProvider
ProjectConfigurationProvider | public interface ProjectConfigurationProvider (Code) | | Provider of configurations for a project.
Should be registered in a project's
org.netbeans.api.project.Project.getLookup lookup .
Besides the implementor, only the project UI infrastructure is expected to use this class.
Parameters: C - the type of configuration created by this provider author: Adam Sotona, Jesse Glick since: org.netbeans.modules.projectapi/1 1.11 See Also: Project Configurations design document |
PROP_CONFIGURATIONS | String PROP_CONFIGURATIONS(Code) | | Property name of the set of configurations.
Use it when firing a change in the set of configurations.
|
PROP_CONFIGURATION_ACTIVE | String PROP_CONFIGURATION_ACTIVE(Code) | | Property name for the active configuration.
Use it when firing a change in the active configuration.
|
configurationsAffectAction | boolean configurationsAffectAction(String command)(Code) | | Indicates if a project action is affected by the choice of configuration.
If so, a GUI for this action is permitted to show a list of configurations and
let the user select a configuration to apply to one action invocation only.
Such a GUI can avoid the need to first select an active configuration and
then run the action as two steps.
This is done by including a
ProjectConfiguration in the context passed
to
ActionProvider.invokeAction .
A project is free to return false even if the configuration
might affect the behavior of the action, if it simply does not
wish for such a GUI to be shown.
The likely values of command are those actions
normally shown in the IDE's tool bar with main project bindings:
ActionProvider.COMMAND_BUILD ,
ActionProvider.COMMAND_REBUILD ,
ActionProvider.COMMAND_RUN , and
ActionProvider.COMMAND_DEBUG .
Parameters: command - one of ActionProvider.getSupportedActions true if the named command refers to an action affected by configurations |
getConfigurations | Collection<C> getConfigurations()(Code) | | Gets a list of configurations.
Permitted to return different instances from one invocation to the next
but it is advisable for the "same" instances to compare as equal.
Should be called within
org.netbeans.api.project.ProjectManager.mutex read access .
all available configurations for this project |
removePropertyChangeListener | void removePropertyChangeListener(PropertyChangeListener lst)(Code) | | Removes a listener.
Parameters: lst - a listener to remove |
|
|