Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FBP-350. Show stub message #351

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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