mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
custom language tutorial: clarify SimpleFileTypeFactory alternative
This commit is contained in:
parent
125bccb5a6
commit
421d858c8e
@ -7,8 +7,10 @@ import com.intellij.openapi.fileTypes.FileTypeFactory;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Note: This class is only used with the fileTypeFactory extension point
|
||||
* TODO: This class is only used with the {@code com.intellij.fileTypeFactory} extension point
|
||||
* for versions of the IntelliJ Platform prior to v2019.2.
|
||||
*
|
||||
* @see <a href="https://plugins.jetbrains.com/docs/intellij/language-and-filetype.html#register-the-filetype">Custom Language Tutorial</a>
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class SimpleFileTypeFactory extends FileTypeFactory {
|
||||
|
@ -42,6 +42,8 @@
|
||||
<!--
|
||||
Only required for versions of the IntelliJ Platform prior to v2019.2.
|
||||
Use 'com.intellij.fileTypeFactory' extension point INSTEAD of above 'com.intellij.fileType'.
|
||||
See https://plugins.jetbrains.com/docs/intellij/language-and-filetype.html#register-the-filetype for details.
|
||||
|
||||
<fileTypeFactory implementation="org.intellij.sdk.language.SimpleFileTypeFactory"/>
|
||||
-->
|
||||
<lang.parserDefinition language="Simple" implementationClass="org.intellij.sdk.language.SimpleParserDefinition"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user