public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWizardPage
Modifier and Type | Field and Description |
---|---|
static String |
_DEFAULT_PACKAGE
Deprecated.
|
protected org.apache.maven.archetype.catalog.Archetype |
archetype |
protected boolean |
archetypeChanged |
protected org.eclipse.swt.widgets.Combo |
artifactIdCombo
artifact id text field
|
static String |
DEFAULT_VERSION |
protected org.eclipse.swt.widgets.Combo |
groupIdCombo
group id text field
|
static int |
KEY_INDEX |
static String |
KEY_PROPERTY |
protected Set<String> |
optionalProperties |
protected org.eclipse.swt.widgets.Combo |
packageCombo
package text field
|
protected boolean |
packageCustomized
shows if the package has been customized by the user
|
protected org.eclipse.swt.widgets.Button |
removeButton |
protected Set<String> |
requiredProperties |
static int |
VALUE_INDEX |
static String |
VALUE_PROPERTY |
protected org.eclipse.swt.widgets.Combo |
versionCombo
version text field
|
dialogSettings, MAX_HISTORY, resolverConfigurationComponent
Constructor and Description |
---|
MavenProjectWizardArchetypeParametersPage(ProjectImportConfiguration projectImportConfiguration)
Creates a new page.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
Creates page controls.
|
protected String |
getDefaultJavaPackage()
Returns the default package name.
|
static String |
getDefaultJavaPackage(String groupId,
String artifactId) |
String |
getJavaPackage()
Returns the package name.
|
org.apache.maven.model.Model |
getModel()
Creates the Model object.
|
org.eclipse.jface.wizard.IWizardPage |
getNextPage()
Ends the wizard flow chain.
|
Properties |
getProperties() |
int |
getTextIndex(String property) |
boolean |
isPageComplete() |
void |
setArchetype(org.apache.maven.archetype.catalog.Archetype archetype) |
void |
setArtifactIdEnabled(boolean b)
Enables or disables the artifact id text field.
|
void |
setParentProject(String groupId,
String artifactId,
String version)
Updates the properties when a project name is set on the first page of the wizard.
|
void |
setProjectName(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 group value when the page is displayed.
|
protected void |
updateJavaPackage()
Updates the package name if the related fields changed.
|
void |
updatePropertyEditors() |
addFieldWithHistory, createAdvancedSettings, dispose, getImportConfiguration, validateArtifactIdInput, validateGroupIdInput
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, 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
public static final String DEFAULT_VERSION
@Deprecated public static final String _DEFAULT_PACKAGE
public static final String KEY_PROPERTY
public static final int KEY_INDEX
public static final String VALUE_PROPERTY
public static final int VALUE_INDEX
protected org.eclipse.swt.widgets.Combo groupIdCombo
protected org.eclipse.swt.widgets.Combo artifactIdCombo
protected org.eclipse.swt.widgets.Combo versionCombo
protected org.eclipse.swt.widgets.Combo packageCombo
protected org.eclipse.swt.widgets.Button removeButton
protected org.apache.maven.archetype.catalog.Archetype archetype
protected boolean archetypeChanged
protected boolean packageCustomized
public MavenProjectWizardArchetypeParametersPage(ProjectImportConfiguration projectImportConfiguration)
public void createControl(org.eclipse.swt.widgets.Composite parent)
public org.eclipse.jface.wizard.IWizardPage getNextPage()
getNextPage
in interface org.eclipse.jface.wizard.IWizardPage
getNextPage
in class org.eclipse.jface.wizard.WizardPage
public void setArchetype(org.apache.maven.archetype.catalog.Archetype archetype)
public void setProjectName(String projectName)
public void setParentProject(String groupId, String artifactId, String version)
public void setArtifactIdEnabled(boolean b)
public String getJavaPackage()
protected void updateJavaPackage()
protected String getDefaultJavaPackage()
public org.apache.maven.model.Model getModel()
public void setUsed(boolean isUsed)
public boolean isPageComplete()
isPageComplete
in interface org.eclipse.jface.wizard.IWizardPage
isPageComplete
in class org.eclipse.jface.wizard.WizardPage
public void setVisible(boolean visible)
setVisible
in interface org.eclipse.jface.dialogs.IDialogPage
setVisible
in class AbstractMavenWizardPage
public Properties getProperties()
public int getTextIndex(String property)
public void updatePropertyEditors()
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.