public interface MavenActionsProvider
ServiceProvider
,
or since 2.50 may also be registered using ProjectServiceProvider
if applicable to just some packagings.
Since 2.149 the returned NetbeansActionMapping
can be disabled - checked by
ActionToGoalUtils.isDisabledMapping(org.netbeans.modules.maven.execute.model.NetbeansActionMapping)
. Such mapping will override the action that may be even enabled by a farther
MavenActionsProvider
. The ActionProvider
exported from the project will report such action as disabled.
Modifier and Type | Method and Description |
---|---|
RunConfig |
createConfigForDefaultAction(String actionName,
Project project,
Lookup lookup)
Create an instance of RunConfig configured for execution.
|
NetbeansActionMapping |
getMappingForAction(String actionName,
Project project)
get a action to maven mapping configuration for the given action.
|
Set<String> |
getSupportedDefaultActions()
returns a list of supported actions, see ActionProvider.getSupportedActions()
|
boolean |
isActionEnable(String action,
Project project,
Lookup lookup)
return is action is supported or not
|
RunConfig createConfigForDefaultAction(String actionName, Project project, Lookup lookup)
actionName
- one of the ActionProvider constantsNetbeansActionMapping getMappingForAction(String actionName, Project project)
boolean isActionEnable(String action, Project project, Lookup lookup)
action
- action name, see ActionProvider for details.project
- project that the action is invoked on.lookup
- context for the action