com.intellij.openapi.roots.ui.configuration.ClasspathEditor Java Examples
The following examples show how to use
com.intellij.openapi.roots.ui.configuration.ClasspathEditor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ModuleStructureConfigurable.java From consulo with Apache License 2.0 | 6 votes |
public AsyncResult<Void> selectOrderEntry(@Nonnull final Module module, @Nullable final OrderEntry orderEntry) { Place p = new Place(); p.putPath(ProjectStructureConfigurable.CATEGORY, this); Runnable r = null; final MasterDetailsComponent.MyNode node = findModuleNode(module); if (node != null) { p.putPath(TREE_OBJECT, module); p.putPath(ModuleEditor.SELECTED_EDITOR_NAME, ClasspathEditor.NAME); r = new Runnable() { @Override public void run() { if (orderEntry != null) { ModuleEditor moduleEditor = ((ModuleConfigurable)node.getConfigurable()).getModuleEditor(); ModuleConfigurationEditor editor = moduleEditor.getEditor(ClasspathEditor.NAME); if (editor instanceof ClasspathEditor) { ((ClasspathEditor)editor).selectOrderEntry(orderEntry); } } } }; } final AsyncResult<Void> result = ProjectStructureConfigurable.getInstance(myProject).navigateTo(p, true); return r != null ? result.doWhenDone(r) : result; }
Example #2
Source File: HaskellModuleConfigurationEditor.java From intellij-haskforce with Apache License 2.0 | 5 votes |
public ModuleConfigurationEditor[] createEditors(ModuleConfigurationState state) { Module module = state.getRootModel().getModule(); if (!(ModuleType.get(module) instanceof HaskellModuleType)) { return ModuleConfigurationEditor.EMPTY; } return new ModuleConfigurationEditor[]{ new JavaContentEntriesEditor(module.getName(), state), // new CabalFilesEditor(state), new ClasspathEditor(state), }; }
Example #3
Source File: HaxeModuleConfigurationEditorProvider.java From intellij-haxe with Apache License 2.0 | 5 votes |
public ModuleConfigurationEditor[] createEditors(final ModuleConfigurationState state) { final Module module = state.getRootModel().getModule(); if (ModuleType.get(module) != HaxeModuleType.getInstance()) { return ModuleConfigurationEditor.EMPTY; } return new ModuleConfigurationEditor[]{ new CommonContentEntriesEditor(module.getName(), state, JavaSourceRootType.SOURCE, JavaSourceRootType.TEST_SOURCE), new ClasspathEditor(state), new HaxeModuleConfigurationEditor(state) }; }