Class ProjectActionContext.Builder
java.lang.Object
org.netbeans.api.project.ProjectActionContext.Builder
- Enclosing class:
ProjectActionContext
Builder used to construct the
ProjectActionContext
.- Since:
- 1.89
-
Method Summary
Modifier and TypeMethodDescriptioncontext()
forProjectAction
(String projectAction) Specifies the intended project action.useConfiguration
(ProjectConfiguration configuration) Binds to a specificProjectConfiguration
, which must resolve to an instance ofwithLookup
(org.openide.util.Lookup lkp) Specifies a Lookup to be included in the context.withProfiles
(String... profiles) Use specific build system profiles or tags for the query evaluation.withProfiles
(Collection<String> profiles) Use specific build system profiles or tags for the query evaluation.withProperties
(Map<String, String> properties) Uses specific user properties for the query computation.withProperty
(String n, String v) Uses specific property value for the query computation.
-
Method Details
-
withLookup
Specifies a Lookup to be included in the context. To remove lookup customizations, pass inLookup.EMPTY
value.- Parameters:
lkp
- Lookup instance- Returns:
- the builder
-
forProjectAction
Specifies the intended project action.null
(the default) means an unspecified action.- Parameters:
projectAction
- project action.- Returns:
- the builder instance
-
useConfiguration
Binds to a specificProjectConfiguration
, which must resolve to an instance of- Parameters:
configuration
-- Returns:
- builder instance
- See Also:
-
withProperties
Uses specific user properties for the query computation.- Parameters:
properties
- user properties.- Returns:
- builder instance
-
withProfiles
Use specific build system profiles or tags for the query evaluation.- Parameters:
profiles
- applied profile(s).- Returns:
- builder instance
-
withProperty
Uses specific property value for the query computation.- Parameters:
n
- property namev
- property value- Returns:
- builder instance
-
withProfiles
Use specific build system profiles or tags for the query evaluation.- Parameters:
profiles
- applied profile(s).- Returns:
- builder instance
-
context
- Returns:
- the configured
ProjectActionContext
-