public class ModuleRootModificationUtil
extends java.lang.Object
Constructor and Description |
---|
ModuleRootModificationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addContentRoot(Module module,
java.lang.String path) |
static void |
addContentRoot(Module module,
VirtualFile path) |
static void |
addDependency(Module module,
Library library) |
static void |
addDependency(Module module,
Library library,
DependencyScope scope,
boolean exported) |
static void |
addDependency(Module from,
Module to) |
static void |
addDependency(Module from,
Module to,
DependencyScope scope,
boolean exported) |
static void |
addModuleLibrary(Module module,
java.lang.String classesRootUrl) |
static void |
addModuleLibrary(Module module,
java.lang.String libName,
java.util.List<java.lang.String> classesRootUrls,
java.util.List<java.lang.String> sourceRootUrls) |
static void |
addModuleLibrary(Module module,
java.lang.String libName,
java.util.List<java.lang.String> classesRootUrls,
java.util.List<java.lang.String> sourceRootUrls,
DependencyScope scope) |
static void |
addModuleLibrary(Module module,
java.lang.String libName,
java.util.List<java.lang.String> classesRootUrls,
java.util.List<java.lang.String> sourceRootUrls,
java.util.List<java.lang.String> excludedRootUrls,
DependencyScope scope) |
static void |
addModuleLibrary(Module module,
java.lang.String libName,
java.util.List<java.lang.String> classesRootUrls,
java.util.List<java.lang.String> sourceRootUrls,
java.util.List<java.lang.String> excludedRootUrls,
DependencyScope scope,
boolean exported) |
static void |
setModuleSdk(Module module,
Sdk sdk) |
static void |
setSdkInherited(Module module) |
static void |
updateExcludedFolders(Module module,
VirtualFile contentRoot,
java.util.Collection<java.lang.String> urlsToUnExclude,
java.util.Collection<java.lang.String> urlsToExclude) |
static void |
updateModel(Module module,
Consumer<? super ModifiableRootModel> task) |
public static void addContentRoot(Module module, java.lang.String path)
public static void addContentRoot(Module module, VirtualFile path)
public static void addModuleLibrary(Module module, java.lang.String libName, java.util.List<java.lang.String> classesRootUrls, java.util.List<java.lang.String> sourceRootUrls)
public static void addModuleLibrary(Module module, java.lang.String libName, java.util.List<java.lang.String> classesRootUrls, java.util.List<java.lang.String> sourceRootUrls, DependencyScope scope)
public static void addModuleLibrary(Module module, java.lang.String libName, java.util.List<java.lang.String> classesRootUrls, java.util.List<java.lang.String> sourceRootUrls, java.util.List<java.lang.String> excludedRootUrls, DependencyScope scope)
public static void addModuleLibrary(Module module, java.lang.String libName, java.util.List<java.lang.String> classesRootUrls, java.util.List<java.lang.String> sourceRootUrls, java.util.List<java.lang.String> excludedRootUrls, DependencyScope scope, boolean exported)
public static void addModuleLibrary(Module module, java.lang.String classesRootUrl)
public static void addDependency(Module module, Library library, DependencyScope scope, boolean exported)
public static void setSdkInherited(Module module)
public static void addDependency(Module from, Module to, DependencyScope scope, boolean exported)
public static void updateModel(Module module, Consumer<? super ModifiableRootModel> task)
public static void updateExcludedFolders(Module module, VirtualFile contentRoot, java.util.Collection<java.lang.String> urlsToUnExclude, java.util.Collection<java.lang.String> urlsToExclude)