public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage
dialogSettings, MAX_HISTORY, resolverConfigurationComponent| Constructor and Description |
|---|
MavenProjectWizardLocationPage(ProjectImportConfiguration configuration,
String title,
String description,
List<org.eclipse.ui.IWorkingSet> workingSets)
Creates Maven project location page.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createAdditionalControls(org.eclipse.swt.widgets.Composite container)
Create additional controls
|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
This wizard page contains a component to query the project name and a
MavenLocationComponent which allows to specify whether the project should be created in the workspace
or at some given external location. |
void |
dispose()
Saves the history when the page is disposed.
|
org.eclipse.core.runtime.IPath |
getLocationPath()
Returns the path of the location where the project is to be created.
|
boolean |
isInWorkspace()
Returns whether the user has chosen to create the project in the workspace or at an external location.
|
void |
setLocationPath(org.eclipse.core.runtime.IPath location) |
void |
setVisible(boolean visible)
Loads the advanced settings data when the page is displayed.
|
protected void |
validate()
Validates the contents of this wizard page.
|
addFieldWithHistory, createAdvancedSettings, getImportConfiguration, validateArtifactIdInput, validateGroupIdInputcanFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessagepublic MavenProjectWizardLocationPage(ProjectImportConfiguration configuration, String title, String description, List<org.eclipse.ui.IWorkingSet> workingSets)
title - location page title textdescription - location page description textpublic void createControl(org.eclipse.swt.widgets.Composite parent)
MavenLocationComponent which allows to specify whether the project should be created in the workspace
or at some given external location.protected void createAdditionalControls(org.eclipse.swt.widgets.Composite container)
public void dispose()
AbstractMavenWizardPagedispose in interface org.eclipse.jface.dialogs.IDialogPagedispose in class AbstractMavenWizardPagepublic boolean isInWorkspace()
true if the project is to be created in the workspace, false if it should be
created at an external location.public org.eclipse.core.runtime.IPath getLocationPath()
null.public void setLocationPath(org.eclipse.core.runtime.IPath location)
public void setVisible(boolean visible)
setVisible in interface org.eclipse.jface.dialogs.IDialogPagesetVisible in class AbstractMavenWizardPageprotected 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:
IWorkspace.validateName(java.lang.String, int),
IWorkspace.validateProjectLocation(org.eclipse.core.resources.IProject,
org.eclipse.core.runtime.IPath),
DialogPage.setMessage(java.lang.String),
WizardPage.setErrorMessage(java.lang.String),
WizardPage.setPageComplete(boolean)Copyright © 2005–2021 Eclipse Foundation. All rights reserved.