public class MavenProjectWizardArtifactPage extends AbstractMavenWizardPage
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MavenProjectWizardArtifactPage.ProjectFolder
A placeholder representing a directory in the project structure.
|
dialogSettings, MAX_HISTORY, resolverConfigurationComponent
Modifier | Constructor and Description |
---|---|
|
MavenProjectWizardArtifactPage(ProjectImportConfiguration projectImportConfiguration)
Sets the title and description of this wizard page and marks it as not being complete as user input is required for
continuing.
|
protected |
MavenProjectWizardArtifactPage(java.lang.String name,
ProjectImportConfiguration projectImportConfiguration)
Sets the title and description of this wizard page and marks it as not being complete as user input is required for
continuing.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
This wizard page contains a
MavenArtifactComponent to gather information about the Maven
artifact and a Maven2DirectoriesComponent which allows to choose which directories of the default
Maven directory structure to create. |
java.lang.String[] |
getFolders()
Returns the directories of the default Maven2 directory structure selected by the user.
|
org.apache.maven.model.Model |
getModel()
Returns the Maven2 model containing the artifact information provided by the user.
|
private MavenProjectWizardArtifactPage.ProjectFolder[] |
getProjectFolders()
Returns the list of directories for the currently selected packaging.
|
boolean |
isPageComplete() |
void |
setParentProject(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version)
Updates the properties when a project name is set on the first page of the wizard.
|
void |
setParentReadonly(boolean b)
Sets the readonly parent flag.
|
void |
setProjectName(java.lang.String projectName)
Updates the properties when a project name is set on the first page of the wizard.
|
void |
setUsed(boolean isUsed) |
void |
setVisible(boolean visible)
Loads the advanced settings data when the page is displayed.
|
(package private) void |
validate()
Validates the contents of this wizard page.
|
private java.lang.String |
validateInput() |
addFieldWithHistory, createAdvancedSettings, dispose, getImportConfiguration, validateArtifactIdInput, validateGroupIdInput
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
private static final MavenProjectWizardArtifactPage.ProjectFolder JAVA
private static final MavenProjectWizardArtifactPage.ProjectFolder JAVA_TEST
private static final MavenProjectWizardArtifactPage.ProjectFolder RESOURCES
private static final MavenProjectWizardArtifactPage.ProjectFolder RESOURCES_TEST
private static final MavenProjectWizardArtifactPage.ProjectFolder WEBAPP
private static final MavenProjectWizardArtifactPage.ProjectFolder EAR
private static final MavenProjectWizardArtifactPage.ProjectFolder SITE
private static final MavenProjectWizardArtifactPage.ProjectFolder[] JAR_DIRS
private static final MavenProjectWizardArtifactPage.ProjectFolder[] WAR_DIRS
private static final MavenProjectWizardArtifactPage.ProjectFolder[] EAR_DIRS
private static final MavenProjectWizardArtifactPage.ProjectFolder[] POM_DIRS
private static final java.util.Map<java.lang.String,MavenProjectWizardArtifactPage.ProjectFolder[]> directorySets
protected MavenParentComponent parentComponent
protected MavenArtifactComponent artifactComponent
private boolean readonlyParent
private boolean isUsed
public MavenProjectWizardArtifactPage(ProjectImportConfiguration projectImportConfiguration)
protected MavenProjectWizardArtifactPage(java.lang.String name, ProjectImportConfiguration projectImportConfiguration)
public void createControl(org.eclipse.swt.widgets.Composite parent)
MavenArtifactComponent
to gather information about the Maven
artifact and a Maven2DirectoriesComponent
which allows to choose which directories of the default
Maven directory structure to create.public void setVisible(boolean visible)
AbstractMavenWizardPage
setVisible
in interface org.eclipse.jface.dialogs.IDialogPage
setVisible
in class AbstractMavenWizardPage
public org.apache.maven.model.Model getModel()
null
.private MavenProjectWizardArtifactPage.ProjectFolder[] getProjectFolders()
public java.lang.String[] getFolders()
null
.void validate()
Feedback about the validation is given to the user by displaying error messages or informative messages on the wizard page. Depending on the provided user input, the wizard page is marked as being complete or not.
If some error or missing input is detected in the user input, an error message or informative message, respectively, is displayed to the user. If the user input is complete and correct, the wizard page is marked as begin complete to allow the wizard to proceed. To that end, the following conditions must be met:
DialogPage.setMessage(java.lang.String)
,
WizardPage.setErrorMessage(java.lang.String)
,
WizardPage.setPageComplete(boolean)
private java.lang.String validateInput()
public void setProjectName(java.lang.String projectName)
public void setParentReadonly(boolean b)
public void setParentProject(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
public void setUsed(boolean isUsed)
public boolean isPageComplete()
isPageComplete
in interface org.eclipse.jface.wizard.IWizardPage
isPageComplete
in class org.eclipse.jface.wizard.WizardPage