Skip to content

Commit

Permalink
[code] project wizard step content changed
Browse files Browse the repository at this point in the history
  • Loading branch information
boogiecat committed Feb 4, 2015
1 parent 3801ccb commit 721578e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 77 deletions.
2 changes: 1 addition & 1 deletion code_samples/project_wizard/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<extensions defaultExtensionNs="com.intellij">
<!-- Add your extensions here -->
<moduleType id="DEMO_MODULE" implementationClass="org.jetbrains.tutorials.project.wizard.DemoModuleType"/>
<moduleBuilder builderClass="org.jetbrains.tutorials.project.wizard.DemoModuleWizardStep" id="DEMO_STEP" order="first"/>
</extensions>

<application-components>
Expand Down

This file was deleted.

This file was deleted.

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() {

}
}};
}
}

0 comments on commit 721578e

Please sign in to comment.