|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.openapi.roots.ProjectRootManager
public abstract class ProjectRootManager
Allows to query and modify the list of root directories belonging to a project.
| Field Summary |
|---|
| Fields inherited from interface com.intellij.openapi.util.ModificationTracker |
|---|
EVER_CHANGED |
| Constructor Summary | |
|---|---|
ProjectRootManager()
|
|
| Method Summary | |
|---|---|
abstract void |
addModuleRootListener(ModuleRootListener listener)
Adds a listener for receiving notifications about changes in project roots. |
abstract void |
checkCircularDependency(ModifiableRootModel[] rootModels,
ModifiableModuleModel moduleModel)
Checks if the specified project structure contains a circular dependency between modules, and throws an exception if it does. |
abstract void |
dispatchPendingEvent(ModuleRootListener listener)
Deprecated. for IDEA internal use. |
abstract VirtualFile[] |
getContentRoots()
Returns the list of content roots for all modules in the project. |
abstract VirtualFile[] |
getContentSourceRoots()
Returns the list of source roots under the content roots for all modules in the project. |
abstract ProjectFileIndex |
getFileIndex()
Returns the file index for the project. |
abstract VirtualFile[] |
getFullClassPath()
Deprecated. |
static ProjectRootManager |
getInstance(Project project)
Returns the project root manager instance for the specified project. |
abstract ProjectJdk |
getJdk()
Deprecated. |
abstract ProjectJdk |
getProjectJdk()
Returns the instance of the JDK selected for the project. |
abstract java.lang.String |
getProjectJdkName()
Returns the name of the JDK selected for the project. |
abstract VirtualFile[] |
getRootFiles(ProjectRootType type)
Deprecated. |
abstract void |
multiCommit(ModifiableModuleModel moduleModel,
ModifiableRootModel[] rootModels)
Commits the change to the list of modules and the lists of roots for the specified modules. |
abstract void |
multiCommit(ModifiableRootModel[] rootModels)
Commits the change to the lists of roots for the specified modules. |
abstract void |
removeModuleRootListener(ModuleRootListener listener)
Removes a listener for receiving notifications about changes in project roots. |
abstract void |
setProjectJdk(ProjectJdk jdk)
Sets the JDK to be used for the project. |
abstract void |
setProjectJdkName(java.lang.String name)
Sets the name of the JDK to be used for the project. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.intellij.openapi.util.ModificationTracker |
|---|
getModificationCount |
| Constructor Detail |
|---|
public ProjectRootManager()
| Method Detail |
|---|
public static ProjectRootManager getInstance(Project project)
project - the project for which the instance is requested.
@NotNull public abstract ProjectFileIndex getFileIndex()
public abstract void addModuleRootListener(ModuleRootListener listener)
listener - the listener instance.public abstract void removeModuleRootListener(ModuleRootListener listener)
listener - the listener instance.public abstract void dispatchPendingEvent(ModuleRootListener listener)
public abstract VirtualFile[] getRootFiles(ProjectRootType type)
@NotNull public abstract VirtualFile[] getContentRoots()
public abstract VirtualFile[] getContentSourceRoots()
public abstract VirtualFile[] getFullClassPath()
public abstract ProjectJdk getJdk()
@Nullable public abstract ProjectJdk getProjectJdk()
public abstract java.lang.String getProjectJdkName()
public abstract void setProjectJdk(@Nullable
ProjectJdk jdk)
jdk - the JDK instance.public abstract void setProjectJdkName(java.lang.String name)
name - the name of the JDK.public abstract void multiCommit(ModifiableRootModel[] rootModels)
rootModels - the root models ro commit.
public abstract void multiCommit(ModifiableModuleModel moduleModel,
ModifiableRootModel[] rootModels)
moduleModel - the module model to commit.rootModels - the root models to commit.
public abstract void checkCircularDependency(ModifiableRootModel[] rootModels,
ModifiableModuleModel moduleModel)
throws ModuleCircularDependencyException
rootModels - the list of root models for the modules in the project.moduleModel - the list of modules in the project.
ModuleCircularDependencyException - if there is a circular dependency between some of the modules.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||