|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ModifiableRootModel
Model of roots that should be used by clients to modify module roots.
ModuleRootManager.getModifiableModel()| Method Summary | |
|---|---|
ContentEntry |
addContentEntry(VirtualFile root)
Adds the specified directory as a content root. |
LibraryOrderEntry |
addInvalidLibrary(java.lang.String name,
java.lang.String level)
Adds an entry for invalid library. |
ModuleOrderEntry |
addInvalidModuleEntry(java.lang.String name)
|
LibraryOrderEntry |
addLibraryEntry(Library library)
Creates an entry for a given library and adds it to order |
ModuleOrderEntry |
addModuleOrderEntry(Module module)
|
void |
addOrderEntry(OrderEntry orderEntry)
Appends an order entry to the classpath. |
void |
clear()
|
void |
commit()
Commits changes to a . |
void |
dispose()
Must be invoked for uncommited models that are no longer needed. |
LibraryOrderEntry |
findLibraryOrderEntry(Library library)
|
java.lang.String |
getCompilerOutputUrl()
Deprecated. Use ModuleRootModel.getCompilerOutputPathUrl() instead |
java.lang.String |
getCompilerOutputUrlForTests()
Deprecated. Use ModuleRootModel.getCompilerOutputPathForTestsUrl() instead |
Module[] |
getModuleDependencies()
|
LibraryTable |
getModuleLibraryTable()
Returns library table with module libraries. |
VirtualFile[] |
getOrderedRoots(OrderRootType type)
|
java.lang.String[] |
getOrderedRootUrls(OrderRootType type)
|
void |
inheritJdk()
Makes this module inheriting JDK from its project |
boolean |
isChanged()
|
boolean |
isExcludeExplodedDirectory()
|
boolean |
isExcludeOutput()
|
boolean |
isWritable()
|
void |
rearrangeOrderEntries(OrderEntry[] newOrder)
|
void |
removeContentEntry(ContentEntry entry)
Remove the specified content root. |
void |
removeOrderEntry(OrderEntry orderEntry)
Removes order entry from an order. |
void |
setCompilerOutputPath(java.lang.String url)
|
void |
setCompilerOutputPath(VirtualFile file)
|
void |
setCompilerOutputPathForTests(java.lang.String url)
|
void |
setCompilerOutputPathForTests(VirtualFile file)
|
void |
setExcludeExplodedDirectory(boolean excludeExplodedDir)
|
void |
setExcludeOutput(boolean excludeOutput)
|
void |
setExplodedDirectory(java.lang.String url)
|
void |
setExplodedDirectory(VirtualFile file)
|
void |
setJavadocUrls(java.lang.String[] urls)
|
void |
setJdk(ProjectJdk jdk)
Sets JDK for this module to a specific value |
| Methods inherited from interface com.intellij.openapi.roots.ModuleRootModel |
|---|
getCompilerOutputPath, getCompilerOutputPathForTests, getCompilerOutputPathForTestsUrl, getCompilerOutputPathUrl, getContentEntries, getContentRoots, getContentRootUrls, getDependencyModuleNames, getExcludeRoots, getExcludeRootUrls, getExplodedDirectory, getExplodedDirectoryUrl, getJavadocPaths, getJavadocUrls, getJdk, getModule, getOrderEntries, getSourceRoots, getSourceRootUrls, isJdkInherited, processOrder |
| Method Detail |
|---|
@NotNull ContentEntry addContentEntry(VirtualFile root)
root - root of a content
void removeContentEntry(ContentEntry entry)
entry - the content root to remove.void addOrderEntry(OrderEntry orderEntry)
orderEntry - the order entry to add.LibraryOrderEntry addLibraryEntry(Library library)
library - the library for which the entry is created.
LibraryOrderEntry addInvalidLibrary(java.lang.String name,
java.lang.String level)
name - level -
ModuleOrderEntry addModuleOrderEntry(Module module)
ModuleOrderEntry addInvalidModuleEntry(java.lang.String name)
LibraryOrderEntry findLibraryOrderEntry(Library library)
void removeOrderEntry(OrderEntry orderEntry)
orderEntry - void rearrangeOrderEntries(OrderEntry[] newOrder)
newOrder - void clear()
void commit()
ModuleRootManager.
Should be invoked in a write action. After commit(), the model
becomes read-only.
void dispose()
LibraryTable getModuleLibraryTable()
void setJdk(ProjectJdk jdk)
jdk - void inheritJdk()
java.lang.String getCompilerOutputUrl()
ModuleRootModel.getCompilerOutputPathUrl() instead
java.lang.String getCompilerOutputUrlForTests()
ModuleRootModel.getCompilerOutputPathForTestsUrl() instead
VirtualFile[] getOrderedRoots(OrderRootType type)
void setCompilerOutputPath(VirtualFile file)
void setCompilerOutputPath(java.lang.String url)
void setCompilerOutputPathForTests(VirtualFile file)
void setCompilerOutputPathForTests(java.lang.String url)
void setExplodedDirectory(VirtualFile file)
void setExplodedDirectory(java.lang.String url)
boolean isChanged()
java.lang.String[] getOrderedRootUrls(OrderRootType type)
boolean isExcludeOutput()
boolean isExcludeExplodedDirectory()
void setExcludeOutput(boolean excludeOutput)
void setExcludeExplodedDirectory(boolean excludeExplodedDir)
Module[] getModuleDependencies()
boolean isWritable()
void setJavadocUrls(java.lang.String[] urls)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||