[md] references to confluence

This commit is contained in:
Anna Bulenkova 2015-04-14 10:50:38 +02:00
parent 2e1a13e356
commit ae709d5661
4 changed files with 7 additions and 7 deletions

View File

@ -36,6 +36,3 @@ This a step-by-step tutorial and it requires performing every step:
The final code can be found on
[GitHub](http://github.com/cheptsov/SimplePlugin).
For additional information check out the
[official documentation](http://confluence.jetbrains.net/display/IDEADEV/PluginDevelopment)

View File

@ -28,7 +28,7 @@ class. For example, to get the PSI tree for XML, use ```fileViewProvider.getPsi(
## How do I extend it?
To create a file type that has multiple interspersing trees for different languages, your plugin must contain an extension to the _fileType.fileViewProviderFactory_
[extension point](http://confluence.jetbrains.net/display/IDEADEV/IntelliJ+IDEA+Plugin+Structure#IntelliJIDEAPluginStructure-PluginExtensions)
[extension point](http://www.jetbrains.org/intellij/sdk/docs/plugin_extensions_and_extension_points.html)
available in the IntelliJ IDEA core.
This extension point is declared using the
[FileTypeExtensionPoint](https://github.com/JetBrains/intellij-community/blob/master/platform/core-api/src/com/intellij/openapi/fileTypes/FileTypeExtensionPoint.java)

View File

@ -137,7 +137,7 @@ Use the ```ProjectRootManager.getFileIndex()``` method. For example:
##### How do I get a module to which a file belongs?
To determine a module in the project in question to which the specified
[virtual file](http://confluence.jetbrains.net/display/IDEADEV/IntelliJ+IDEA+Architectural+Overview#IntelliJIDEAArchitecturalOverview-VirtualFiles)
[virtual file](http://www.jetbrains.org/intellij/sdk/docs/virtual_file.html)
belongs, use the ```ProjectFileIndex.getModuleForFile(virtualFile)``` method:
```
@ -264,7 +264,7 @@ String moduleName = module == null ? "Module not found" : module.getName();
```
* To get the project module to which the specified
[PSI element](http://confluence.jetbrains.net/display/IDEADEV/IntelliJ+IDEA+Architectural+Overview#IntelliJIDEAArchitecturalOverview-PsiElements)
[PSI element](http://www.jetbrains.org/intellij/sdk/docs/psi_elements.html)
belongs, use the ```ModuleUtil.findModuleForPsiElement(psiElement)``` method.
#### How do I work with libraries available within a module?

View File

@ -50,7 +50,10 @@ The ```VirtualFileManager.addVirtualFileListener()``` method allows you to recei
#### How do I extend it?
To provide an alternative file system implementation (for example, an FTP file system), implement the [VirtualFileSystem](https://github.com/JetBrains/intellij-community/blob/master/platform/core-api/src/com/intellij/openapi/vfs/VirtualFileSystem.java) class (most likely you'll also need to implement ```VirtualFile```), and register your implementation as an application component [http://confluence.jetbrains.net/display/IDEADEV/IntelliJ+IDEA+Plugin+Structure#IntelliJIDEAPluginStructure-PluginComponents].
To provide an alternative file system implementation (for example, an FTP file system), implement the
[VirtualFileSystem](https://github.com/JetBrains/intellij-community/blob/master/platform/core-api/src/com/intellij/openapi/vfs/VirtualFileSystem.java)
class (most likely you'll also need to implement ```VirtualFile```), and register your implementation as an
[application component](http://www.jetbrains.org/intellij/sdk/docs/plugin_components.html).
To hook into operations performed in the local file system (for example, if you deal with development of a version control system integration that needs custom rename/move handling), implement the [LocalFileOperationsHandler] (https://github.com/JetBrains/intellij-community/blob/master/platform/platform-api/src/com/intellij/openapi/vfs/LocalFileOperationsHandler.java) interface and register it through the```LocalFileSystem.registerAuxiliaryFileOperationsHandler``` method.
#### What are the rules for working with it?