mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 10:17:50 +08:00
[site] formatting
This commit is contained in:
parent
bc650195c1
commit
8fa1edca98
@ -11,7 +11,9 @@ A module can depend on other modules of the project.
|
||||
To determine a module in the project in question to which the specified virtual file belongs, use the
|
||||
ProjectFileIndex.getModuleForFile(virtualFile) method:
|
||||
|
||||
```Module module = ProjectRootManager.getInstance(project).getFileIndex().getModuleForFile(virtualFile);```
|
||||
```java
|
||||
Module module = ProjectRootManager.getInstance(project).getFileIndex().getModuleForFile(virtualFile);
|
||||
```
|
||||
|
||||
|
||||
## Accessing Module Roots
|
||||
|
Loading…
x
Reference in New Issue
Block a user