public class SdkSettingsStep extends ModuleWizardStep
Modifier and Type | Field and Description |
---|---|
protected JdkComboBox |
myJdkComboBox |
protected ProjectSdksModel |
myModel |
protected WizardContext |
myWizardContext |
EMPTY_ARRAY
Constructor and Description |
---|
SdkSettingsStep(SettingsStep settingsStep,
ModuleBuilder moduleBuilder,
Condition<? super SdkTypeId> sdkTypeIdFilter) |
SdkSettingsStep(SettingsStep settingsStep,
ModuleBuilder moduleBuilder,
Condition<? super SdkTypeId> sdkTypeIdFilter,
Condition<? super Sdk> sdkFilter) |
SdkSettingsStep(WizardContext context,
ModuleBuilder moduleBuilder,
Condition<? super SdkTypeId> sdkTypeIdFilter,
Condition<? super Sdk> sdkFilter) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getComponent() |
protected java.lang.String |
getNoSdkMessage() |
protected java.lang.String |
getSdkFieldLabel(Project project) |
boolean |
isEmpty() |
protected void |
onSdkSelected(Sdk sdk) |
void |
updateDataModel()
Commits data from UI into ModuleBuilder and WizardContext
|
boolean |
validate()
Validates user input before
ModuleWizardStep.updateDataModel() is called. |
createFieldPanel, disposeUIResources, getHelpId, getName, isStepVisible, onStepLeaving, onWizardFinished, toString, updateStep
_commit, _init, fireStateChanged, getIcon, getPreferredFocusedComponent, registerStepListener
protected final JdkComboBox myJdkComboBox
protected final WizardContext myWizardContext
protected final ProjectSdksModel myModel
public SdkSettingsStep(SettingsStep settingsStep, ModuleBuilder moduleBuilder, Condition<? super SdkTypeId> sdkTypeIdFilter)
public SdkSettingsStep(SettingsStep settingsStep, ModuleBuilder moduleBuilder, Condition<? super SdkTypeId> sdkTypeIdFilter, Condition<? super Sdk> sdkFilter)
public SdkSettingsStep(WizardContext context, ModuleBuilder moduleBuilder, Condition<? super SdkTypeId> sdkTypeIdFilter, Condition<? super Sdk> sdkFilter)
protected void onSdkSelected(Sdk sdk)
public boolean isEmpty()
protected java.lang.String getSdkFieldLabel(Project project)
public javax.swing.JComponent getComponent()
getComponent
in interface Step
getComponent
in class ModuleWizardStep
JComponent
that represents step's UI in the wizard. This
method should not return null
.public void updateDataModel()
ModuleWizardStep
updateDataModel
in class ModuleWizardStep
public boolean validate() throws ConfigurationException
ModuleWizardStep
ModuleWizardStep.updateDataModel()
is called.validate
in class ModuleWizardStep
true
if input is valid, false
otherwiseConfigurationException
- if input is not valid and needs user attention. Exception message will be displayed to userprotected java.lang.String getNoSdkMessage()