public void updateStep() { super.updateStep(); if (!isCreateFromTemplateMode()) { if (myCreateModuleCb.isSelected()) { mySequence.setType(getSelectedBuilderId()); } else { mySequence.setType(null); } } }
public void updateDataModel() { if (!isCreateFromTemplateMode()) { mySequence.setType(myCreateModuleCb.isSelected() ? getSelectedBuilderId() : null); } super.updateDataModel(); if (!isCreateFromTemplateMode() && myCreateModuleCb.isSelected()) { final ModuleBuilder builder = (ModuleBuilder) myMode.getModuleBuilder(); assert builder != null; final String moduleName = getModuleName(); builder.setName(moduleName); builder.setModuleFilePath( FileUtil.toSystemIndependentName(myModuleFileLocation.getText()) + "/" + moduleName + ModuleFileType.DOT_DEFAULT_EXTENSION); builder.setContentEntryPath(FileUtil.toSystemIndependentName(myModuleContentRoot.getText())); } }