sdk: fix code sample

This commit is contained in:
Yann Cébron 2021-03-18 09:22:07 +01:00
parent 9ee2954b8e
commit 69268a95ee

View File

@ -78,7 +78,7 @@ The IntelliJ Platform offers the extension point `com.intellij.projectSdkSetupVa
The following is a simplified example that checks whether an instance of "DemoSdk" has been configured in the project when the user opens a "DemoFileType": The following is a simplified example that checks whether an instance of "DemoSdk" has been configured in the project when the user opens a "DemoFileType":
```kotlin ```kotlin
object DemoProjectSdkSetupValidator : ProjectSdkSetupValidator { class DemoProjectSdkSetupValidator : ProjectSdkSetupValidator {
override fun isApplicableFor(project: Project, file: VirtualFile): Boolean { override fun isApplicableFor(project: Project, file: VirtualFile): Boolean {
return file.fileType == DemoFileType return file.fileType == DemoFileType
} }