file_view_providers: stardust fix

This commit is contained in:
Yann Cébron 2021-11-08 16:30:13 +01:00
parent 65c5e1e2b7
commit 6baf7313e4

View File

@ -1,6 +1,6 @@
[//]: # (title: File View Providers)
<!-- Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
<!-- Copyright 2000-2021 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
A file view provider ([`FileViewProvider`](upsource:///platform/core-api/src/com/intellij/psi/FileViewProvider.java)) manages access to multiple PSI trees within a single file.
@ -32,8 +32,8 @@ Register as follows in `plugin.xml`:
```xml
<extensions defaultExtensionNs="com.intellij">
<fileType.fileViewProviderFactory filetype="%file_type%" implementationClass="com.plugin.MyFileViewProviderFactory" />
<fileType.fileViewProviderFactory filetype="$file_type$" implementationClass="com.plugin.MyFileViewProviderFactory" />
</extensions>
```
Where `%file_type%` refers to the type of the file being created (for example, "JFS").
Where `$file_type$` refers to the type of the file being created (for example, "JFS").