use of com.goide.GoModuleType in project go-lang-idea-plugin by go-lang-plugin-org.
the class GoModuleEditorsProvider method createEditors.
@Override
public ModuleConfigurationEditor[] createEditors(@NotNull ModuleConfigurationState state) {
ModifiableRootModel rootModel = state.getRootModel();
Module module = rootModel.getModule();
if (!(ModuleType.get(module) instanceof GoModuleType)) {
return ModuleConfigurationEditor.EMPTY;
}
String moduleName = module.getName();
List<ModuleConfigurationEditor> editors = ContainerUtil.newArrayList();
editors.add(new ContentEntriesEditor(moduleName, state));
editors.add(new OutputEditorEx(state));
editors.add(new ClasspathEditor(state));
return editors.toArray(new ModuleConfigurationEditor[editors.size()]);
}
Aggregations