Class ModelHandle
java.lang.Object
org.netbeans.modules.maven.api.customizer.ModelHandle
ModelHandle instance is passed down to customizer panel providers in the context lookup.
-
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
static ModelHandle.Configuration
static ModelHandle.Configuration
static ModelHandle.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 modelorg.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.boolean
isModified
(Object obj) void
markAsModified
(Object obj) 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
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:
-
-
Method Details
-
getPOMModel
public org.netbeans.modules.maven.model.pom.POMModel getPOMModel()pom.xml model- 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:
-
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
-
getConfigurations
-
addConfiguration
-
removeConfiguration
-
getActiveConfiguration
-
setActiveConfiguration
-
isModified
-
markAsModified
always after modifying the models, mark them as modified. without the marking, the particular file will not be saved.- Parameters:
obj
- either getPOMModel() or getActionMappings()
-
createProfileConfiguration
-
createDefaultConfiguration
-
createCustomConfiguration
-