mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-29 17:57:53 +08:00
file_view_providers: stardust fix
This commit is contained in:
parent
65c5e1e2b7
commit
6baf7313e4
@ -1,6 +1,6 @@
|
|||||||
[//]: # (title: File View Providers)
|
[//]: # (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.
|
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
|
```xml
|
||||||
<extensions defaultExtensionNs="com.intellij">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
<fileType.fileViewProviderFactory filetype="%file_type%" implementationClass="com.plugin.MyFileViewProviderFactory" />
|
<fileType.fileViewProviderFactory filetype="$file_type$" implementationClass="com.plugin.MyFileViewProviderFactory" />
|
||||||
</extensions>
|
</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").
|
||||||
|
Loading…
x
Reference in New Issue
Block a user