public final class ActionToGoalUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ActionToGoalUtils.ContextAccessor |
Modifier and Type | Field and Description |
---|---|
static ActionToGoalUtils.ContextAccessor |
ACCESSOR |
Modifier and Type | Method and Description |
---|---|
static List<? extends MavenActionsProvider> |
actionProviders(Project project)
Finds all action providers for a project (usually differentiated by packaging type).
|
static RunConfig |
createRunConfig(String action,
org.netbeans.modules.maven.NbMavenProjectImpl project,
Lookup lookup) |
static RunConfig |
createRunConfig(String action,
org.netbeans.modules.maven.NbMavenProjectImpl project,
ProjectConfiguration c,
Lookup lookup) |
static NetbeansActionMapping[] |
getActiveCustomMappings(org.netbeans.modules.maven.NbMavenProjectImpl project) |
static NetbeansActionMapping[] |
getActiveCustomMappingsForFile(org.netbeans.modules.maven.NbMavenProjectImpl project) |
static NetbeansActionMapping |
getActiveMapping(String action,
Project project,
org.netbeans.modules.maven.configurations.M2Configuration configuration) |
static NetbeansActionMapping |
getDefaultMapping(String action,
Project project) |
static boolean |
isActionEnable(String action,
org.netbeans.modules.maven.NbMavenProjectImpl project,
Lookup lookup) |
static boolean |
isActionEnable(String action,
org.netbeans.modules.maven.NbMavenProjectImpl project,
ProjectConfiguration c,
Lookup lookup) |
static boolean |
isDisabledMapping(NetbeansActionMapping am)
Determines if the action mapping actually disables the action.
|
static ActionToGoalMapping |
readMappingsFromFileAttributes(FileObject fo)
read the action mappings from the fileobject attribute "customActionMappings"
|
static File |
resolveProjectExecutionBasedir(NetbeansActionMapping mapp,
Project prj)
Here for compatibility with old action mappings setting basedir, but unnecessary when reactor mode defined.
|
static void |
writeMappingsToFileAttributes(FileObject fo,
ActionToGoalMapping mapp)
writes the action mappings to the fileobject attribute "customActionMappings"
|
public static ActionToGoalUtils.ContextAccessor ACCESSOR
@NonNull public static List<? extends MavenActionsProvider> actionProviders(@NonNull Project project)
project
- a Maven projectpublic static RunConfig createRunConfig(String action, org.netbeans.modules.maven.NbMavenProjectImpl project, Lookup lookup)
public static RunConfig createRunConfig(String action, org.netbeans.modules.maven.NbMavenProjectImpl project, ProjectConfiguration c, Lookup lookup)
public static boolean isActionEnable(String action, org.netbeans.modules.maven.NbMavenProjectImpl project, Lookup lookup)
public static boolean isDisabledMapping(NetbeansActionMapping am)
am
- the checked action mappingtrue
, if the action is disabled.public static boolean isActionEnable(String action, org.netbeans.modules.maven.NbMavenProjectImpl project, ProjectConfiguration c, Lookup lookup)
public static NetbeansActionMapping getActiveMapping(String action, Project project, org.netbeans.modules.maven.configurations.M2Configuration configuration)
public static NetbeansActionMapping[] getActiveCustomMappings(org.netbeans.modules.maven.NbMavenProjectImpl project)
public static NetbeansActionMapping[] getActiveCustomMappingsForFile(org.netbeans.modules.maven.NbMavenProjectImpl project)
public static NetbeansActionMapping getDefaultMapping(String action, Project project)
public static ActionToGoalMapping readMappingsFromFileAttributes(FileObject fo)
fo
- should be the project's root directory fileobjectpublic static void writeMappingsToFileAttributes(FileObject fo, ActionToGoalMapping mapp)
fo
- should be the project's root directory fileobjectpublic static File resolveProjectExecutionBasedir(NetbeansActionMapping mapp, Project prj)