use of com.intellij.openapi.roots.ui.configuration.ContentEntriesEditor in project ballerina by ballerina-lang.
the class BallerinaModuleEditorsProvider method createEditors.
@Override
public ModuleConfigurationEditor[] createEditors(@NotNull ModuleConfigurationState state) {
ModifiableRootModel rootModel = state.getRootModel();
Module module = rootModel.getModule();
if (!(ModuleType.get(module) instanceof BallerinaModuleType)) {
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