mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
[site] broken links
This commit is contained in:
parent
090871f13a
commit
236959c549
@ -6,7 +6,7 @@ title: Facet
|
||||
A facet represents certain configuration, specific for a particular framework/technology, associated with a module.
|
||||
A module can have multiple facets. E.g. Spring specific configuration is stored in a Spring facet.
|
||||
For more information about facets see
|
||||
[Facet] (http://www.jetbrains.com/idea/webhelp/facet.html)
|
||||
[Facet](http://www.jetbrains.com/idea/webhelp/facet.html)
|
||||
and
|
||||
[Facet Dependencies] (http://www.jetbrains.com/idea/webhelp/available-facets-and-their-dependencies.html)
|
||||
[Facet Dependencies](http://www.jetbrains.com/idea/webhelp/available-facets-and-their-dependencies.html)
|
||||
in IntelliJ IDEA Web Help.
|
@ -32,7 +32,7 @@ You can use the following methods:
|
||||
* ```ProjectFileIndex.isInLibraryClasses(virtualFileorDirectory)```: Returns true if the specified virtualFileorDirectory belongs to library classes.
|
||||
* ```ProjectFileIndex.isInLibrarySource(virtualFileorDirectory)```: Returns true if the specified virtualFileorDirectory belongs to library sources.
|
||||
|
||||
[Code sample] (https://github.com/JetBrains/intellij-sdk/blob/master/code_samples/project_model/src/com/intellij/plugins/project/model/ProjectFileIndexSampleAction.java)
|
||||
[Code sample](https://github.com/JetBrains/intellij-sdk/blob/master/code_samples/project_model/src/com/intellij/plugins/project/model/ProjectFileIndexSampleAction.java)
|
||||
|
||||
|
||||
Note that by default, the project modules use the project SDK.
|
||||
@ -46,7 +46,7 @@ Use the ProjectFileIndex.getSourceRootForFile method. For example:
|
||||
|
||||
Note that this method returns null if the file or directory does not belong to any source root of modules in the project.
|
||||
|
||||
[Code sample] (https://github.com/JetBrains/intellij-sdk/blob/master/code_samples/project_model/src/com/intellij/plugins/project/model/ProjectFileIndexSampleAction.java)
|
||||
[Code sample](https://github.com/JetBrains/intellij-sdk/blob/master/code_samples/project_model/src/com/intellij/plugins/project/model/ProjectFileIndexSampleAction.java)
|
||||
|
||||
|
||||
More details can be found in this
|
||||
|
@ -16,11 +16,11 @@ ProjectFileIndex.getModuleForFile(virtualFile) method:
|
||||
|
||||
## Accessing Module Roots
|
||||
Information about model roots can be accessed via the class
|
||||
[ModuleRootManager.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-api/src/com/intellij/openapi/roots/ModuleRootManager.java),
|
||||
[ModuleRootManager.java](https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-api/src/com/intellij/openapi/roots/ModuleRootManager.java),
|
||||
for example, an instance of
|
||||
[ModuleFileIndex.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-api/src/com/intellij/openapi/roots/ModuleFileIndex.java)
|
||||
[ModuleFileIndex.java](https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-api/src/com/intellij/openapi/roots/ModuleFileIndex.java)
|
||||
can be obtained, which is analogical to the
|
||||
[ProjectFileIndex.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-api/src/com/intellij/openapi/roots/ProjectFileIndex.java)
|
||||
[ProjectFileIndex.java](https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-api/src/com/intellij/openapi/roots/ProjectFileIndex.java)
|
||||
but in the scope of a module
|
||||
|
||||
```java
|
||||
|
@ -8,20 +8,20 @@ For Java projects, SDK is referred to as JDK (Java Development Kit).
|
||||
SDK determines which API library is used to build the project. If your project is multi-module, the project SDK by default is common for all modules within the project.
|
||||
Optionally, you can configure individual SDK for each module.
|
||||
For more information about SDKs, see
|
||||
[JDKs] (http://www.jetbrains.com/idea/webhelp/jdks.html)
|
||||
[JDKs](http://www.jetbrains.com/idea/webhelp/jdks.html)
|
||||
and
|
||||
[Configuring Project JDK] (http://www.jetbrains.com/idea/webhelp/configuring-project-jdk.html)
|
||||
[Configuring Project JDK](http://www.jetbrains.com/idea/webhelp/configuring-project-jdk.html)
|
||||
in IntelliJ IDEA Web Help.
|
||||
|
||||
### Getting Project Sdk Information
|
||||
|
||||
Main information about the project Sdk can be accessed via
|
||||
[ProjectRootManager.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-api/src/com/intellij/openapi/roots/ProjectRootManager.java)
|
||||
[ProjectRootManager.java](https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-api/src/com/intellij/openapi/roots/ProjectRootManager.java)
|
||||
like the following example shows
|
||||
|
||||
```String projectSdk = ProjectRootManager.getInstance(project).getProjectSdk();```
|
||||
|
||||
[Code sample] (https://github.com/JetBrains/intellij-sdk/blob/master/code_samples/project_model/src/com/intellij/plugins/project/model/ProjectSdkAction.java)
|
||||
[Code sample](https://github.com/JetBrains/intellij-sdk/blob/master/code_samples/project_model/src/com/intellij/plugins/project/model/ProjectSdkAction.java)
|
||||
|
||||
|
||||
### Getting And Setting Project SDK Attributes
|
||||
|
Loading…
x
Reference in New Issue
Block a user