Skip to content

Commit

Permalink
FBP-350. Show plug message
Browse files Browse the repository at this point in the history
  • Loading branch information
valb3r committed Jun 2, 2023
1 parent f06b1b0 commit 79c8d86
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<grid id="27dc6" binding="mainToolWindowForm" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="709" height="415"/>
<xy x="20" y="20" width="962" height="3123"/>
</constraints>
<properties/>
<border type="none"/>
Expand All @@ -27,7 +27,19 @@
</constraints>
<properties/>
<border type="etched"/>
<children/>
<children>
<component id="a249" class="javax.swing.JTextArea" default-binding="true">
<constraints>
<card name="Card1"/>
</constraints>
<properties>
<editable value="false"/>
<enabled value="false"/>
<lineWrap value="true"/>
<text value="No file opened. Create new or open existing BPMN file.&#10;To open file - select it in 'Project Tree', &#10;right click on it to open context menu &#10;and click on 'View BPMN...' menu item"/>
</properties>
</component>
</children>
</grid>
<grid id="2d138" binding="canvasPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
<constraints>
Expand All @@ -46,6 +58,15 @@
<orientation value="0"/>
</properties>
</component>
<component id="7f546" class="javax.swing.JTextArea" default-binding="true">
<constraints border-constraint="Center"/>
<properties>
<editable value="false"/>
<enabled value="false"/>
<lineWrap value="true"/>
<text value="No file opened. Create new or open existing BPMN file.&#10;To open file - select it in 'Project Tree', &#10;right click on it to open context menu &#10;and click on 'View BPMN...' menu item"/>
</properties>
</component>
</children>
</grid>
</children>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ open class BpmnPluginToolWindow(
this.canvas.addMouseWheelListener(mouseEventHandler)
this.canvas.isFocusable = true
this.canvas.addKeyListener(KeyboardEventHandler(project, canvas))
this.canvasPanel.add(this.canvas)

canvasAndProperties.dividerLocation = (canvasAndProperties.height * 0.8f).toInt()

hackFixForMacOsScrollbars()
Expand Down Expand Up @@ -240,13 +240,15 @@ open class BpmnPluginToolWindow(
}

private fun setupUiBeforeRun() {
this.canvasPanel.removeAll()
this.canvasPanel.isEnabled = false
// clear the canvas panel, ready for new graph
this.canvas.isVisible = false
attachScrollListenersAndClearSubs()
}

private fun setupUiAfterRun() {
this.canvasPanel.add(this.canvas)
// show the rendered canvas
this.canvas.isVisible = true
this.canvasPanel.updateUI()
Expand Down

0 comments on commit 79c8d86

Please sign in to comment.