public class IdeaProjectModelModifier extends JavaProjectModelModifier
EP_NAME| Constructor and Description |
|---|
IdeaProjectModelModifier(Project project) |
| Modifier and Type | Method and Description |
|---|---|
Promise<java.lang.Void> |
addExternalLibraryDependency(java.util.Collection<? extends Module> modules,
ExternalLibraryDescriptor descriptor,
DependencyScope scope)
Implementation of this method should add dependency from modules
modules to an external library with scope scope accordingly
to this dependencies management system. |
Promise<java.lang.Void> |
addLibraryDependency(Module from,
Library library,
DependencyScope scope,
boolean exported)
Implementation of this method should add dependency from module
from to library with scope scope accordingly
to this dependencies management system. |
Promise<java.lang.Void> |
addModuleDependency(Module from,
Module to,
DependencyScope scope,
boolean exported)
Implementation of this method should add dependency from module
from to module to with scope scope accordingly
to this dependencies management system. |
Promise<java.lang.Void> |
changeLanguageLevel(Module module,
LanguageLevel level)
Implementation of this method should set language level for module
module to the specified value accordingly
to this dependencies management system. |
public IdeaProjectModelModifier(Project project)
public Promise<java.lang.Void> addModuleDependency(Module from, Module to, DependencyScope scope, boolean exported)
JavaProjectModelModifierfrom to module to with scope scope accordingly
to this dependencies management system. If it takes some time to propagate changes in the external project configuration to IDEA's
project model the method may schedule this work for asynchronous execution and return Promise instance which will be fulfilled
when the work is done.addModuleDependency in class JavaProjectModelModifierPromise instance if dependencies between these modules can be handled by this dependencies management system or
null otherwisepublic Promise<java.lang.Void> addLibraryDependency(Module from, Library library, DependencyScope scope, boolean exported)
JavaProjectModelModifierfrom to library with scope scope accordingly
to this dependencies management system. If it takes some time to propagate changes in the external project configuration to IDEA's
project model the method may schedule this work for asynchronous execution and return Promise instance which will be fulfilled
when the work is done.addLibraryDependency in class JavaProjectModelModifierPromise instance if dependencies between these modules can be handled by this dependencies management system or
null otherwisepublic Promise<java.lang.Void> addExternalLibraryDependency(java.util.Collection<? extends Module> modules, ExternalLibraryDescriptor descriptor, DependencyScope scope)
JavaProjectModelModifiermodules to an external library with scope scope accordingly
to this dependencies management system. If it takes some time to propagate changes in the external project configuration to IDEA's
project model the method may schedule this work for asynchronous execution and return Promise instance which will be fulfilled
when the work is done.addExternalLibraryDependency in class JavaProjectModelModifierPromise instance if dependencies of these modules can be handled by this dependencies management system or
null otherwisepublic Promise<java.lang.Void> changeLanguageLevel(Module module, LanguageLevel level)
JavaProjectModelModifiermodule to the specified value accordingly
to this dependencies management system. If it takes some time to propagate changes in the external project configuration to IDEA's
project model the method may schedule this work for asynchronous execution and return Promise instance which will be fulfilled
when the work is done.changeLanguageLevel in class JavaProjectModelModifierPromise instance if language level can be set by this dependencies management system or null otherwise