public abstract class AbstractMavenWizardPage
extends org.eclipse.jface.wizard.WizardPage
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jface.dialogs.IDialogSettings |
dialogSettings
dialog settings to store input history
|
private java.util.Map<java.lang.String,java.util.List<org.eclipse.swt.widgets.Combo>> |
fieldsWithHistory
the Map of field ids to List of comboboxes that share the same history
|
private ProjectImportConfiguration |
importConfiguration
The project import configuration
|
private boolean |
isHistoryLoaded |
protected static int |
MAX_HISTORY
the history limit
|
protected ResolverConfigurationComponent |
resolverConfigurationComponent
The resolver configuration panel
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractMavenWizardPage(java.lang.String pageName) |
protected |
AbstractMavenWizardPage(java.lang.String pageName,
ProjectImportConfiguration importConfiguration)
Creates a page.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFieldWithHistory(java.lang.String id,
org.eclipse.swt.widgets.Combo combo)
Adds an input control to the list of fields to save.
|
protected void |
createAdvancedSettings(org.eclipse.swt.widgets.Composite composite,
org.eclipse.swt.layout.GridData gridData)
Creates an advanced settings panel.
|
void |
dispose()
Saves the history when the page is disposed.
|
ProjectImportConfiguration |
getImportConfiguration() |
private void |
initDialogSettings()
Loads the dialog settings using the page name as a section name.
|
private void |
loadInputHistory()
Loads the input history from the dialog settings.
|
private void |
saveInputHistory()
Saves the input history into the dialog settings.
|
void |
setVisible(boolean visible)
Loads the advanced settings data when the page is displayed.
|
protected java.lang.String |
validateArtifactIdInput(java.lang.String text) |
protected java.lang.String |
validateGroupIdInput(java.lang.String text) |
private java.lang.String |
validateIdInput(java.lang.String text,
boolean artifact) |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, 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
protected static final int MAX_HISTORY
private ProjectImportConfiguration importConfiguration
protected ResolverConfigurationComponent resolverConfigurationComponent
protected org.eclipse.jface.dialogs.IDialogSettings dialogSettings
private java.util.Map<java.lang.String,java.util.List<org.eclipse.swt.widgets.Combo>> fieldsWithHistory
private boolean isHistoryLoaded
protected AbstractMavenWizardPage(java.lang.String pageName)
protected AbstractMavenWizardPage(java.lang.String pageName, ProjectImportConfiguration importConfiguration)
public ProjectImportConfiguration getImportConfiguration()
protected void createAdvancedSettings(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.layout.GridData gridData)
public void setVisible(boolean visible)
setVisible
in interface org.eclipse.jface.dialogs.IDialogPage
setVisible
in class org.eclipse.jface.dialogs.DialogPage
public void dispose()
dispose
in interface org.eclipse.jface.dialogs.IDialogPage
dispose
in class org.eclipse.jface.dialogs.DialogPage
private void initDialogSettings()
private void loadInputHistory()
private void saveInputHistory()
protected void addFieldWithHistory(java.lang.String id, org.eclipse.swt.widgets.Combo combo)
protected java.lang.String validateArtifactIdInput(java.lang.String text)
protected java.lang.String validateGroupIdInput(java.lang.String text)
private java.lang.String validateIdInput(java.lang.String text, boolean artifact)