-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the compatibility for ContentEntry on IntelliJ 2022.2.
- Loading branch information
Showing
5 changed files
with
62 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ntellij/compat/openapi/roots/TypeAlias.kt → ...llij/compat/openapi/roots/ContentEntry.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// Copyright (C) 2023 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0 | ||
package com.intellij.compat.openapi.roots | ||
|
||
typealias ContentEntry = com.intellij.openapi.roots.ContentEntry | ||
@Suppress("NonExtendableApiUsage") | ||
interface ContentEntry : com.intellij.openapi.roots.ContentEntry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/intellij-compat/src/223-232/native/com/intellij/compat/openapi/roots/ContentEntry.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (C) 2023 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0 | ||
package com.intellij.compat.openapi.roots | ||
|
||
import com.intellij.openapi.roots.ExcludeFolder | ||
import com.intellij.openapi.roots.ProjectModelExternalSource | ||
import com.intellij.openapi.roots.SourceFolder | ||
import org.jetbrains.jps.model.JpsElement | ||
import org.jetbrains.jps.model.module.JpsModuleSourceRootType | ||
|
||
@Suppress("NonExtendableApiUsage", "UnstableApiUsage") | ||
interface ContentEntry : com.intellij.openapi.roots.ContentEntry { | ||
override fun <P : JpsElement?> addSourceFolder( | ||
url: String, | ||
type: JpsModuleSourceRootType<P>, | ||
externalSource: ProjectModelExternalSource | ||
): SourceFolder = TODO() | ||
|
||
override fun <P : JpsElement?> addSourceFolder( | ||
url: String, | ||
type: JpsModuleSourceRootType<P>, | ||
useSourceOfContentRoot: Boolean | ||
): SourceFolder = TODO() | ||
|
||
override fun <P : JpsElement> addSourceFolder( | ||
url: String, | ||
type: JpsModuleSourceRootType<P>, | ||
properties: P, | ||
externalSource: ProjectModelExternalSource? | ||
): SourceFolder = TODO() | ||
|
||
override fun <P : JpsElement> addSourceFolder( | ||
url: String, | ||
type: JpsModuleSourceRootType<P>, | ||
properties: P, | ||
isAutomaticallyImported: Boolean | ||
): SourceFolder = TODO() | ||
|
||
override fun addExcludeFolder(url: String, isAutomaticallyImported: Boolean): ExcludeFolder = TODO() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters