mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
Fix references to Language
, FileTypeFactory
and LanguageFileType
— they are abstract classes, not interfaces
This commit is contained in:
parent
f116bd6d28
commit
94b4334430
@ -9,15 +9,14 @@ A custom language file type is a class derived from
|
||||
[LanguageFileType](upsource:///platform/core-api/src/com/intellij/openapi/fileTypes/LanguageFileType.java),
|
||||
which passes a
|
||||
[Language](upsource:///platform/core-api/src/com/intellij/lang/Language.java)
|
||||
implementation class to its base class constructor.
|
||||
To register a file type, the plugin developer provides an implementation of the
|
||||
[FileTypeFactory](upsource:///platform/platform-api/src/com/intellij/openapi/fileTypes/FileTypeFactory.java)
|
||||
interface, which is registered via the `com.intellij.fileTypeFactory`
|
||||
subclass to its base class constructor.
|
||||
To register a file type, the plugin developer provides a subclass of the
|
||||
[FileTypeFactory](upsource:///platform/platform-api/src/com/intellij/openapi/fileTypes/FileTypeFactory.java), which is registered via the `com.intellij.fileTypeFactory`
|
||||
[platform extension point](upsource:///platform/platform-resources/src/META-INF/PlatformExtensionPoints.xml).
|
||||
|
||||
**Example**:
|
||||
[LanguageFileType](upsource:///platform/core-api/src/com/intellij/openapi/fileTypes/LanguageFileType.java)
|
||||
implementation in
|
||||
subclass in
|
||||
[Properties language plugin](upsource:///plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesFileType.java)
|
||||
|
||||
To verify that the file type is registered correctly, you can implement the
|
||||
|
Loading…
x
Reference in New Issue
Block a user