From 6aebf89a30a0c98075987f62822ea33efb507950 Mon Sep 17 00:00:00 2001 From: valb3r Date: Mon, 26 Jun 2023 11:18:08 +0300 Subject: [PATCH] Restore scrollbars --- .../bpmn/intellij/plugin/core/BpmnPluginToolWindow.form | 4 ++-- .../valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.kt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.form b/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.form index f661c931..f17c0947 100644 --- a/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.form +++ b/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.form @@ -3,7 +3,7 @@ - + @@ -58,7 +58,7 @@ - + diff --git a/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.kt b/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.kt index 0cca059f..d8d85e9f 100644 --- a/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.kt +++ b/bpmn-intellij-plugin-core/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/core/BpmnPluginToolWindow.kt @@ -66,6 +66,7 @@ open class BpmnPluginToolWindow( private lateinit var canvasPanel: JPanel private lateinit var canvasVScroll: JScrollBar private lateinit var canvasHScroll: JScrollBar + private lateinit var canvasNoDiagramText: JTextArea private val canvasBuilder = CanvasBuilder(DefaultBpmnProcessRenderer(project, currentIconProvider()), onBadContentErrorCallback, onBadContentWarningCallback) private val canvas: Canvas = currentCanvas(project) @@ -240,7 +241,7 @@ open class BpmnPluginToolWindow( } private fun setupUiBeforeRun() { - this.canvasPanel.removeAll() + this.canvasPanel.remove(this.canvasNoDiagramText) this.canvasPanel.isEnabled = false // clear the canvas panel, ready for new graph this.canvas.isVisible = false