From 2664dd18ac06b2f6684ca9e43933ad379b5869f5 Mon Sep 17 00:00:00 2001 From: valb3r Date: Sat, 31 Jul 2021 08:43:01 +0300 Subject: [PATCH] FBP-237. Add !COMPATIBILITY --- .../commons/actions/DefaultAttachBpmnDebuggerToDbAction.kt | 2 +- .../valb3r/bpmn/intellij/plugin/core/render/CanvasConstants.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bpmn-intellij-plugin-commons/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/commons/actions/DefaultAttachBpmnDebuggerToDbAction.kt b/bpmn-intellij-plugin-commons/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/commons/actions/DefaultAttachBpmnDebuggerToDbAction.kt index 3898bbb50..5b52aec8c 100644 --- a/bpmn-intellij-plugin-commons/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/commons/actions/DefaultAttachBpmnDebuggerToDbAction.kt +++ b/bpmn-intellij-plugin-commons/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/commons/actions/DefaultAttachBpmnDebuggerToDbAction.kt @@ -74,7 +74,7 @@ abstract class IntelliJBpmnDebugger(private val schema: DbElement): BpmnDebugger private fun fetchFromDb(project: Project, processId: String): ExecutedElements? { try { val connProvider = DbImplUtil.getDatabaseConnection(schema, DGDepartment.INTROSPECTION)?.get() - // Old IntelliJ provides only getJdbcConnection + // TODO !COMPATIBILITY: Old IntelliJ provides only getJdbcConnection try { val jdbcSupplier = connProvider?.javaClass?.getMethod("getJdbcConnection") if (true != jdbcSupplier?.isAccessible) { diff --git a/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/render/CanvasConstants.kt b/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/render/CanvasConstants.kt index 123b25b64..02d12049a 100644 --- a/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/render/CanvasConstants.kt +++ b/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/render/CanvasConstants.kt @@ -23,7 +23,7 @@ fun isJreHiDPIEnabled(): Boolean { val jreHighDpiUtil = Class.forName("com.intellij.ui.JreHiDpiUtil") jreHighDpiUtil.getMethod("isJreHiDPIEnabled").invoke(null) as Boolean } catch (ex: Exception) { - // TODO com.intellij.util.ui.UIUtil.isJreHiDPIEnabled is scheduled for removal in 2021.3, keeping it as fallback for 2018.1 + // TODO !COMPATIBILITY: com.intellij.util.ui.UIUtil.isJreHiDPIEnabled is scheduled for removal in 2021.3, keeping it as fallback for 2018.1 val uiUtil = Class.forName("com.intellij.util.ui.UIUtil") uiUtil.getMethod("isJreHiDPIEnabled").invoke(null) as Boolean }