public abstract class ModuleBuilder extends AbstractModuleBuilder
Modifier and Type | Class and Description |
---|---|
static class |
ModuleBuilder.ModuleConfigurationUpdater |
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<ModuleBuilderFactory> |
EP_NAME |
protected Sdk |
myJdk |
Constructor and Description |
---|
ModuleBuilder() |
createFinishingSteps, equals, getCustomOptionsStep, validateModuleName
cleanup, commit, createProject, isOpenProjectSettingsAfter, isSuitableSdk, isSuitableSdkType, isUpdate, validate
public static final ExtensionPointName<ModuleBuilderFactory> EP_NAME
protected Sdk myJdk
public java.util.List<java.lang.Class<? extends ModuleWizardStep>> getIgnoredSteps()
public static java.util.List<ModuleBuilder> getAllBuilders()
public static void deleteModuleFile(java.lang.String moduleFilePath)
protected boolean isAvailable()
protected static java.lang.String acceptParameter(java.lang.String param)
public java.lang.String getName()
public void setName(java.lang.String name)
setName
in class AbstractModuleBuilder
public java.lang.String getBuilderId()
getBuilderId
in class AbstractModuleBuilder
public ModuleWizardStep[] createWizardSteps(WizardContext wizardContext, ModulesProvider modulesProvider)
createWizardSteps
in class AbstractModuleBuilder
public ModuleWizardStep modifySettingsStep(SettingsStep settingsStep)
modifySettingsStep
in class AbstractModuleBuilder
settingsStep
- step to be modifiedModuleWizardStep.validate()
and ModuleWizardStep.updateDataModel()
will be invoked)public ModuleWizardStep modifyStep(SettingsStep settingsStep)
public ModuleWizardStep modifyProjectTypeStep(SettingsStep settingsStep)
modifyProjectTypeStep
in class AbstractModuleBuilder
protected java.util.List<WizardInputField<?>> getAdditionalFields()
public java.lang.String getModuleFilePath()
public void setModuleFilePath(java.lang.String path)
setModuleFilePath
in class AbstractModuleBuilder
public void addModuleConfigurationUpdater(ModuleBuilder.ModuleConfigurationUpdater updater)
public java.lang.String getContentEntryPath()
public void setContentEntryPath(java.lang.String moduleRootPath)
setContentEntryPath
in class AbstractModuleBuilder
protected ContentEntry doAddContentEntry(ModifiableRootModel modifiableRootModel)
public java.lang.String getModuleFileDirectory()
public Module createModule(ModifiableModuleModel moduleModel) throws InvalidDataException, java.io.IOException, ModuleWithNameAlreadyExists, JDOMException, ConfigurationException
InvalidDataException
java.io.IOException
ModuleWithNameAlreadyExists
JDOMException
ConfigurationException
protected void setupModule(Module module) throws ConfigurationException
ConfigurationException
public void setupRootModel(ModifiableRootModel modifiableRootModel) throws ConfigurationException
ConfigurationException
public abstract ModuleType<?> getModuleType()
protected ProjectType getProjectType()
protected void setProjectType(Module module)
public Module createAndCommitIfNeeded(Project project, ModifiableModuleModel model, boolean runFromProjectWizard) throws InvalidDataException, ConfigurationException, java.io.IOException, JDOMException, ModuleWithNameAlreadyExists
InvalidDataException
ConfigurationException
java.io.IOException
JDOMException
ModuleWithNameAlreadyExists
public void addListener(ModuleBuilderListener listener)
public void removeListener(ModuleBuilderListener listener)
public boolean canCreateModule()
public java.util.List<Module> commit(Project project, ModifiableModuleModel model, ModulesProvider modulesProvider)
commit
in class ProjectBuilder
public Module commitModule(Project project, ModifiableModuleModel model)
public javax.swing.Icon getNodeIcon()
getNodeIcon
in class AbstractModuleBuilder
public java.lang.String getDescription()
public java.lang.String getPresentableName()
protected java.lang.String getModuleTypeName()
public java.lang.String getGroupName()
public java.lang.String getParentGroup()
public int getWeight()
public boolean isTemplate()
public boolean isTemplateBased()
public void updateFrom(ModuleBuilder from)
public Sdk getModuleJdk()
public void setModuleJdk(Sdk jdk)
public FrameworkRole getDefaultAcceptableRole()