2 comments
Comment actions Permalink

Martin, it's hard to guess what may be the reason – please provide a minimal project that would help reproduce the issue.

0
Comment actions Permalink

Thanks for a response Jakub Chrzanowski. There is nothing special, just copypasted code from docs, but can share, maybe I slipped somewhere.

<idea-plugin>
<id>id...</id>
<name>Name</name>
<vendor>Vendor</vendor>

<depends>com.intellij.modules.platform</depends>
<depends>PythonCore</depends>

<description>
<![CDATA[
Description..
]]>
</description>

<vendor url="https://www.vendor.com/">Vendor</vendor>
<extensions defaultExtensionNs="com.intellij">
<moduleBuilder builderClass="org.h2o.wizard.DemoModuleWizardStep" id="DEMO_STEP" order="first"/>
</extensions>

</idea-plugin>

 

DemoModuleWizardStep.java

package org.h2o.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.roots.ModifiableRootModel;
import com.intellij.openapi.roots.ui.configuration.ModulesProvider;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class DemoModuleWizardStep extends ModuleBuilder {

@Override
public void setupRootModel(@NotNull ModifiableRootModel model) { }

@Override
public ModuleType getModuleType() {
return ModuleType.EMPTY;
}

@Override
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

Please sign in to leave a comment.