public class AddModuleWizard extends AbstractProjectWizard
AbstractWizard.TallImageComponent
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction
myWizardContext
myContentPanel, myCurrentStep, myIcon, mySteps
CANCEL_EXIT_CODE, CLOSE_EXIT_CODE, DEFAULT_ACTION, DIALOG_CONTENT_PANEL_PROPERTY, ERROR_FOREGROUND_COLOR, FOCUSED_ACTION, IS_VISUAL_PADDING_COMPENSATED_ON_COMPONENT_LEVEL_KEY, myCancelAction, myCheckBoxDoNotShowDialog, myDisposable, myHelpAction, myOKAction, myPerformAction, myPreferredFocusedComponent, NEXT_USER_EXIT_CODE, OK_EXIT_CODE
Constructor and Description |
---|
AddModuleWizard(Project project,
java.awt.Component dialogParent,
java.lang.String filePath,
ProjectImportProvider... importProviders) |
AddModuleWizard(Project project,
java.lang.String filePath,
ProjectImportProvider... importProviders) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
protected java.lang.String |
getDimensionServiceKey()
Returns key for persisting dialog dimensions.
|
static Sdk |
getMostRecentSuitableSdk(WizardContext context) |
StepSequence |
getSequence() |
WizardContext |
getWizardContext() |
boolean |
navigateToStep(Function<? super Step,java.lang.Boolean> filter)
Allows to ask current wizard to move to the desired step.
|
addStepComponent, canGoNext, commitStepData, dispose, doCancelAction, doFinishAction, doNextAction, doOKAction, doPreviousAction, getBuilder, getHelpID, getModuleFilePath, getNewCompileOutput, getNewProjectFilePath, getNewProjectJdk, getNewProjectJdk, getNextStep, getPreviousStep, getProjectBuilder, getProjectName, getProjectSdkByDefault, getStorageScheme, isLast, isLastStep, setDelegate, updateStep
addStep, addStep, canFinish, createCenterPanel, createSouthPanel, doHelpAction, getCancelButton, getContentComponent, getCurrentStep, getCurrentStepComponent, getCurrentStepObject, getFinishButton, getHelpButton, getNextButton, getNextStep, getNextStepObject, getNumberOfSteps, getPreferredFocusedComponent, getPreviousButton, getPreviousStep, getStepCount, helpAction, init, isFirstStep, updateButtons, updateButtons, updateStep, updateWizardButtons
addKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, createActions, createButtonsPanel, createCancelAction, createContentPane, createContentPaneBorder, createDefaultActions, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, createNorthPanel, createPeer, createPeer, createPeer, createPeer, createPeer, createPeer, createRootLayout, createSouthAdditionalPanel, createTitlePane, disposeIfNeeded, doCancelAction, doValidate, doValidateAll, extractMnemonic, findInstance, findInstanceFromFocus, getButton, getCancelAction, getContentPane, getContentPanel, getDimensionKey, getDisposable, getDoNotShowMessage, getErrorTextAlignment, getExitCode, getHelpAction, getHelpId, getHorizontalStretch, getInitialLocation, getLocation, getOKAction, getOwner, getPeer, getPreferredSize, getRootPane, getSize, getStyle, getTitle, getTypeAheadTimeoutMs, getValidationThreadToUse, getVerticalStretch, getWindow, hasErrors, initValidation, isAutoAdjustable, isCenterStrictedToPreferredSize, isDisposed, isModal, isModalProgress, isMoveHelpButtonLeft, isNorthStrictedToPreferredSize, isOK, isOKActionEnabled, isProgressDialog, isResizable, isShowing, isSouthStrictedToPreferredSize, isToDispatchTypeAhead, isTypeAheadEnabled, isVisible, layoutButtonsPanel, pack, postponeValidation, processDoNotAskOnOk, repaint, setAutoAdjustable, setButtonsAlignment, setButtonsMargin, setCancelButtonIcon, setCancelButtonText, setCrossClosesWindow, setDoNotAskOption, setErrorInfoAll, setErrorText, setErrorText, setHelpTooltip, setHorizontalStretch, setInitialLocationCallback, setLocation, setLocation, setModal, setOKActionEnabled, setOKButtonIcon, setOKButtonMnemonic, setOKButtonText, setOKButtonTooltip, setResizable, setSize, setTitle, setUndecorated, setValidationDelay, setVerticalStretch, shouldAddErrorNearButtons, shouldCloseOnCross, show, showAndGet, showAndGetOk, startTrackingValidation, toBack, toBeShown, toFront, unregisterKeyboardActions, updateErrorInfo, validate
public AddModuleWizard(Project project, java.lang.String filePath, ProjectImportProvider... importProviders)
project
- if null, the wizard will start creating new project, otherwise will add a new module to the existing project.public AddModuleWizard(Project project, java.awt.Component dialogParent, java.lang.String filePath, ProjectImportProvider... importProviders)
project
- if null, the wizard will start creating new project, otherwise will add a new module to the existing project.public StepSequence getSequence()
getSequence
in class AbstractProjectWizard
public static Sdk getMostRecentSuitableSdk(WizardContext context)
public WizardContext getWizardContext()
protected java.lang.String getDimensionServiceKey()
DialogWrapper
null
(no persisting).getDimensionServiceKey
in class DialogWrapper
public boolean navigateToStep(Function<? super Step,java.lang.Boolean> filter)
filter
- closure that allows to indicate target step - is called with each of registered steps and is expected
to return true
for the step to go totrue
if current wizard is navigated to the target step; false
otherwisepublic void commit()