custom language tutorial: clarify SimpleFileTypeFactory alternative

This commit is contained in:
Yann Cébron 2022-09-06 10:45:29 +02:00
parent 125bccb5a6
commit 421d858c8e
2 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -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"/>