Search in sources :

Example 1 with JSLibraryStdDescription

use of org.jetbrains.kotlin.idea.framework.JSLibraryStdDescription in project kotlin by JetBrains.

the class KotlinStdJSProjectDescriptorImpl method configureModule.

@Override
public void configureModule(@NotNull Module module, @NotNull ModifiableRootModel model) {
    NewLibraryConfiguration configuration = new JSLibraryStdDescription(module.getProject()).createNewLibraryForTests();
    assert configuration != null : "Configuration should exist";
    NewLibraryEditor editor = new NewLibraryEditor(configuration.getLibraryType(), configuration.getProperties());
    configuration.addRoots(editor);
    ConfigLibraryUtil.addLibrary(editor, model);
}
Also used : JSLibraryStdDescription(org.jetbrains.kotlin.idea.framework.JSLibraryStdDescription) NewLibraryEditor(com.intellij.openapi.roots.ui.configuration.libraryEditor.NewLibraryEditor) NewLibraryConfiguration(com.intellij.openapi.roots.libraries.NewLibraryConfiguration)

Aggregations

NewLibraryConfiguration (com.intellij.openapi.roots.libraries.NewLibraryConfiguration)1 NewLibraryEditor (com.intellij.openapi.roots.ui.configuration.libraryEditor.NewLibraryEditor)1 JSLibraryStdDescription (org.jetbrains.kotlin.idea.framework.JSLibraryStdDescription)1