Class ModelHandle2
java.lang.Object
org.netbeans.modules.maven.api.customizer.ModelHandle2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
a javabean wrapper for configurations within the project customizer -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPOMModification
(org.netbeans.modules.maven.model.ModelOperation<org.netbeans.modules.maven.model.pom.POMModel> operation) static ModelHandle2.Configuration
static ModelHandle2.Configuration
static ModelHandle2.Configuration
static ModelHandle2.Configuration
action mapping modelaction mapping modelstatic NetbeansActionMapping
getDefaultMapping
(String action, org.netbeans.api.project.Project project) static NetbeansActionMapping
getMapping
(String action, org.netbeans.api.project.Project project, org.netbeans.spi.project.ProjectConfiguration config) Load a particular action mapping.org.netbeans.modules.maven.model.pom.POMModel
pom.xml model, READ-ONLYList
<org.netbeans.modules.maven.model.ModelOperation<org.netbeans.modules.maven.model.pom.POMModel>> org.apache.maven.project.MavenProject
the non changed (not-to-be-changed) instance of the complete project.getRawAuxiliaryProperty
(String propertyName, boolean shared) get the value of Auxiliary property defined in the project, however take only the content in nb-configurations.xml file into account, never consider values from pom.xml here.void
always after modifying the models, mark them as modified.void
always after modifying the models, mark them as modified.static void
putMapping
(NetbeansActionMapping mapp, org.netbeans.api.project.Project project, org.netbeans.spi.project.ProjectConfiguration config) Store a particular action mapping.void
void
removePOMModification
(org.netbeans.modules.maven.model.ModelOperation<org.netbeans.modules.maven.model.pom.POMModel> operation) void
void
setRawAuxiliaryProperty
(String propertyName, String value, boolean shared) set the value of Auxiliary property, will be written to nb-configurations.xml filestatic void
setUserActionMapping
(NetbeansActionMapping action, ActionToGoalMapping mapp) inserts the action definition in the right place based on matching action name.
-
Field Details
-
PANEL_RUN
- See Also:
-
PANEL_BASIC
- See Also:
-
PANEL_CONFIGURATION
- See Also:
-
PANEL_MAPPING
- See Also:
-
PANEL_LIBRARIES
- See Also:
-
PANEL_SOURCES
- See Also:
-
PANEL_COMPILE
- See Also:
-
PANEL_HEADERS
- See Also:
-
-
Method Details
-
getPOMModel
public org.netbeans.modules.maven.model.pom.POMModel getPOMModel()pom.xml model, READ-ONLY- Returns:
-
getProject
public org.apache.maven.project.MavenProject getProject()the non changed (not-to-be-changed) instance of the complete project. NOT TO BE CHANGED.- Returns:
-
getRawAuxiliaryProperty
-
setRawAuxiliaryProperty
-
getActionMappings
-
getActionMappings
action mapping model- Parameters:
config
-- Returns:
-
markAsModified
always after modifying the models, mark them as modified. without the marking, the particular file will not be saved. -
markConfigurationsAsModified
public void markConfigurationsAsModified()always after modifying the models, mark them as modified. without the marking, the particular file will not be saved. -
getConfigurations
-
addConfiguration
-
removeConfiguration
-
getActiveConfiguration
-
setActiveConfiguration
-
addPOMModification
public void addPOMModification(org.netbeans.modules.maven.model.ModelOperation<org.netbeans.modules.maven.model.pom.POMModel> operation) -
removePOMModification
public void removePOMModification(org.netbeans.modules.maven.model.ModelOperation<org.netbeans.modules.maven.model.pom.POMModel> operation) -
getPOMOperations
public List<org.netbeans.modules.maven.model.ModelOperation<org.netbeans.modules.maven.model.pom.POMModel>> getPOMOperations() -
createProfileConfiguration
-
createProvidedConfiguration
-
createDefaultConfiguration
-
createCustomConfiguration
-
setUserActionMapping
inserts the action definition in the right place based on matching action name. replaces old defintion or appends at the end.- Parameters:
action
-mapp
-
-
getDefaultMapping
@CheckForNull public static NetbeansActionMapping getDefaultMapping(String action, org.netbeans.api.project.Project project) - Since:
- 2.19
-
getMapping
@CheckForNull public static NetbeansActionMapping getMapping(String action, org.netbeans.api.project.Project project, org.netbeans.spi.project.ProjectConfiguration config) Load a particular action mapping.- Parameters:
action
- an action nameproject
- a Maven projectconfig
- a configuration of that project- Returns:
- an action mapping model, or null
- Since:
- 2.19
-
putMapping
public static void putMapping(NetbeansActionMapping mapp, org.netbeans.api.project.Project project, org.netbeans.spi.project.ProjectConfiguration config) throws IOException Store a particular action mapping.- Parameters:
mapp
- an action mapping modelproject
- a Maven projectconfig
- a configuration of that project- Throws:
IOException
- in case of trouble- Since:
- 2.19
-