public class SourcePathsStep extends AbstractStepWithProgress<java.util.List<JavaModuleSourceRoot>>
AbstractStepWithProgress.MyProgressIndicator
EMPTY_ARRAY
Constructor and Description |
---|
SourcePathsStep(SourcePathsBuilder builder,
javax.swing.Icon icon,
java.lang.String helpId) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<JavaModuleSourceRoot> |
calculate() |
static java.util.Collection<JavaModuleSourceRoot> |
calculateSourceRoots(java.lang.String contentRootPath) |
protected javax.swing.JComponent |
createResultsPanel() |
java.lang.String |
getHelpId() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getName() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
protected java.lang.String |
getProgressText() |
protected void |
onFinished(java.util.List<JavaModuleSourceRoot> foundPaths,
boolean canceled) |
protected boolean |
shouldRunProgress() |
protected java.lang.String |
suggestSourceDirectoryName() |
void |
updateDataModel()
Commits data from UI into ModuleBuilder and WizardContext
|
boolean |
validate()
Validates user input before
ModuleWizardStep.updateDataModel() is called. |
getComponent, onStepLeaving, performStep, updateStep
createFieldPanel, disposeUIResources, isStepVisible, onWizardFinished, toString
_commit, _init, fireStateChanged, registerStepListener
public SourcePathsStep(SourcePathsBuilder builder, javax.swing.Icon icon, java.lang.String helpId)
protected javax.swing.JComponent createResultsPanel()
createResultsPanel
in class AbstractStepWithProgress<java.util.List<JavaModuleSourceRoot>>
protected java.lang.String suggestSourceDirectoryName()
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent
in interface Step
getPreferredFocusedComponent
in class StepAdapter
public void updateDataModel()
ModuleWizardStep
updateDataModel
in class ModuleWizardStep
public boolean validate() throws ConfigurationException
ModuleWizardStep
ModuleWizardStep.updateDataModel()
is called.validate
in class AbstractStepWithProgress<java.util.List<JavaModuleSourceRoot>>
true
if input is valid, false
otherwiseConfigurationException
- if input is not valid and needs user attention. Exception message will be displayed to userprotected boolean shouldRunProgress()
shouldRunProgress
in class AbstractStepWithProgress<java.util.List<JavaModuleSourceRoot>>
protected void onFinished(java.util.List<JavaModuleSourceRoot> foundPaths, boolean canceled)
onFinished
in class AbstractStepWithProgress<java.util.List<JavaModuleSourceRoot>>
protected java.util.List<JavaModuleSourceRoot> calculate()
calculate
in class AbstractStepWithProgress<java.util.List<JavaModuleSourceRoot>>
public static java.util.Collection<JavaModuleSourceRoot> calculateSourceRoots(java.lang.String contentRootPath)
protected java.lang.String getProgressText()
getProgressText
in class AbstractStepWithProgress<java.util.List<JavaModuleSourceRoot>>
public javax.swing.Icon getIcon()
getIcon
in interface Step
getIcon
in class StepAdapter
null
.public java.lang.String getHelpId()
getHelpId
in class ModuleWizardStep
public java.lang.String getName()
getName
in class ModuleWizardStep