File tree Expand file tree Collapse file tree
Tutorial-o-Matic/src/main/groovy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,11 +7,14 @@ class TabPane{
77 def static tabPane = ui. freeplaneTabbedPanel
88
99
10- def static removeTab (String tabName ){
10+ def static removeTab (String tabName , boolean hideTabPane = false ){
1111 def index = tabPane. indexOfTab(tabName)
1212 // eliminar
1313 if (index >= 0 ) {
1414 tabPane. removeTabAt(index)
15+ if (hideTabPane && tabPane. isShowing()) {
16+ menuUtils. executeMenuItems([' ShowFormatPanel' ])
17+ }
1518 return true
1619 } else return false
1720 }
Original file line number Diff line number Diff line change @@ -314,8 +314,8 @@ class ToM_ui{
314314 return panel
315315 }
316316
317- def static closeTab (tabName ) {
318- TabPane . removeTab(tabName)
317+ def static closeTab (tabName , boolean hideTabPane = false ) {
318+ TabPane . removeTab(tabName, hideTabPane )
319319 }
320320
321321
You can’t perform that action at this time.
0 commit comments