mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
sdk: fix code sample
This commit is contained in:
parent
9ee2954b8e
commit
69268a95ee
@ -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":
|
||||
|
||||
```kotlin
|
||||
object DemoProjectSdkSetupValidator : ProjectSdkSetupValidator {
|
||||
class DemoProjectSdkSetupValidator : ProjectSdkSetupValidator {
|
||||
override fun isApplicableFor(project: Project, file: VirtualFile): Boolean {
|
||||
return file.fileType == DemoFileType
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user