Skip to content

Commit e5ccfb9

Browse files
committed
Move the EditorColorsManager compat to intellij-test.
1 parent d2fdfa7 commit e5ccfb9

File tree

6 files changed

+41
-42
lines changed

6 files changed

+41
-42
lines changed

src/intellij-compat/build.gradle.kts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ sourceSets.main {
1111
java.srcDir("src/242/compat")
1212
}
1313

14-
if (ijVersion.buildVersion >= 242) {
15-
java.srcDir("src/233-242/native")
16-
} else {
17-
java.srcDir("src/233-242/233")
18-
}
19-
2014
if (ijVersion.buildVersion >= 243) {
2115
java.srcDir("src/243/native")
2216
} else {

src/intellij-compat/src/233-242/233/com/intellij/compat/openapi/editor/colors/EditorColorsManager.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/intellij-compat/src/233-242/native/com/intellij/compat/openapi/editor/colors/EditorColorsManager.kt

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/intellij-test/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ version = ijVersion.buildVersion.toString()
77
sourceSets.main {
88
java.srcDir("main")
99

10+
if (ijVersion.buildVersion >= 242) {
11+
java.srcDir("compat/242/native")
12+
} else {
13+
java.srcDir("compat/242/compat")
14+
}
15+
1016
if (ijVersion.buildVersion >= 252) {
1117
java.srcDir("compat/252/native")
1218
} else {

src/intellij-test/main/uk/co/reecedunn/intellij/plugin/core/tests/editor/colors/MockEditorColorsManager.kt renamed to src/intellij-test/compat/242/compat/uk/co/reecedunn/intellij/plugin/core/tests/editor/colors/MockEditorColorsManager.kt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
/*
2-
* Copyright (C) 2021-2022, 2024 Reece H. Dunn
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
// Copyright (C) 2021-2022, 2024-2025 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
162
package uk.co.reecedunn.intellij.plugin.core.tests.editor.colors
173

18-
import com.intellij.compat.openapi.editor.colors.EditorColorsManager
4+
import com.intellij.openapi.editor.colors.EditorColorsManager
195
import com.intellij.openapi.editor.colors.EditorColorsScheme
206

217
class MockEditorColorsManager : EditorColorsManager() {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (C) 2021-2022, 2024-2025 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
2+
package uk.co.reecedunn.intellij.plugin.core.tests.editor.colors
3+
4+
import com.intellij.openapi.editor.colors.EditorColorsManager
5+
import com.intellij.openapi.editor.colors.EditorColorsScheme
6+
7+
class MockEditorColorsManager : EditorColorsManager() {
8+
override fun addColorScheme(scheme: EditorColorsScheme): Unit = TODO()
9+
10+
override fun getAllSchemes(): Array<EditorColorsScheme> = TODO()
11+
12+
override fun setGlobalScheme(scheme: EditorColorsScheme?): Unit = TODO()
13+
14+
override fun getGlobalScheme(): EditorColorsScheme = TODO()
15+
16+
override fun getActiveVisibleScheme(): EditorColorsScheme? = TODO()
17+
18+
override fun getScheme(schemeName: String): EditorColorsScheme = TODO()
19+
20+
override fun isDefaultScheme(scheme: EditorColorsScheme?): Boolean = TODO()
21+
22+
override fun isUseOnlyMonospacedFonts(): Boolean = TODO()
23+
24+
override fun setUseOnlyMonospacedFonts(b: Boolean): Unit = TODO()
25+
26+
override fun isDarkEditor(): Boolean = false
27+
28+
@Suppress("UnstableApiUsage", "RedundantSuppression")
29+
override fun setCurrentSchemeOnLafChange(scheme: EditorColorsScheme) = TODO()
30+
31+
@Suppress("UnstableApiUsage", "RedundantSuppression")
32+
override fun getSchemeModificationCounter(): Long = TODO()
33+
}

0 commit comments

Comments
 (0)