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)
JavaProjectModelModifier
from
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 JavaProjectModelModifier
Promise
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)
JavaProjectModelModifier
from
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 JavaProjectModelModifier
Promise
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)
JavaProjectModelModifier
modules
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 JavaProjectModelModifier
Promise
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)
JavaProjectModelModifier
module
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 JavaProjectModelModifier
Promise
instance if language level can be set by this dependencies management system or null
otherwise