forked from JetBrains/intellij-sdk-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[code] project wizard step content changed
- Loading branch information
Showing
4 changed files
with
24 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
..._samples/project_wizard/src/org/jetbrains/tutorials/project/wizard/DemoModuleBuilder.java
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
code_samples/project_wizard/src/org/jetbrains/tutorials/project/wizard/DemoModuleType.java
This file was deleted.
Oops, something went wrong.
31 changes: 23 additions & 8 deletions
31
...mples/project_wizard/src/org/jetbrains/tutorials/project/wizard/DemoModuleWizardStep.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,40 @@ | ||
package org.jetbrains.tutorials.project.wizard; | ||
|
||
import com.intellij.ide.util.projectWizard.ModuleBuilder; | ||
import com.intellij.ide.util.projectWizard.ModuleWizardStep; | ||
import com.intellij.ide.util.projectWizard.WizardContext; | ||
import com.intellij.openapi.module.ModuleType; | ||
import com.intellij.openapi.options.ConfigurationException; | ||
import com.intellij.openapi.roots.ModifiableRootModel; | ||
import com.intellij.openapi.roots.ui.configuration.ModulesProvider; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import javax.swing.*; | ||
|
||
/** | ||
* @author Anna Bulenkova | ||
*/ | ||
public class DemoModuleWizardStep extends ModuleWizardStep { | ||
private DemoModuleBuilder myBuilder; | ||
public DemoModuleWizardStep(DemoModuleBuilder builder) { | ||
myBuilder = builder; | ||
public class DemoModuleWizardStep extends ModuleBuilder { | ||
public void setupRootModel(ModifiableRootModel modifiableRootModel) throws ConfigurationException { | ||
|
||
} | ||
|
||
@Override | ||
public JComponent getComponent() { | ||
return new JPanel(); | ||
public ModuleType getModuleType() { | ||
return ModuleType.EMPTY; //or it could be other module type | ||
} | ||
|
||
@Override | ||
public void updateDataModel() { | ||
public ModuleWizardStep[] createWizardSteps(@NotNull WizardContext wizardContext, @NotNull ModulesProvider modulesProvider) { | ||
return new ModuleWizardStep[]{new ModuleWizardStep() { | ||
@Override | ||
public JComponent getComponent() { | ||
return new JLabel("Put your content here"); | ||
} | ||
|
||
@Override | ||
public void updateDataModel() { | ||
|
||
} | ||
}}; | ||
} | ||
} |