This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I am trying to promote the Netbeans framework as the basis for standalone applications that need a menubar/toolbar/windowing system. It is possible to remove all the modules from Netbeans, as well as creae/modify the menu structure. This is good. What is not ggod is that most standalone applications using the framework don't need the workspace concept. It is possible in Netbeans to have only one workspace, but it is shown as a TAB on the Menu/Toolbar area. it's annoying for 2 reasons: 1/ it uses precious real estate space. 2/ it is confusing if the standalone app does not expose the workspace concept. I would like a solution where one can call some Open APIs to hide the workspace tab if there is only one workspace. Thanks, Ludo
This is a core issue, not APIs. You can already define -Dnetbeans.windows.small_main_window=true to hide everything in the MW except the menu bar and an inline status bar. Hiding only workspaces is complicated because the status bar lives on the same horizontal level so you need to put the status bar somewhere too. If you can figure out a good place to put it, you are welcome to submit a patch to the core triggered by a system property; it would probably be quite easy. See MainWindow.java and friends.
Automated change of version from Other to Dev.
Version: 'Dev' -> 3.2
Changed to enhacement.
Target milestone -> 3.3
OK, let not to show TAB in the IDE if there's only one (TAB), so status bar will use all remaining space. WorkSpaceSwitcher uses org.netbeans.core.awt.TabControl component. What about adding a method for setting this property (e.g. showIfOne(boolean)), although it seems workspaceswitcher is the only one which uses TabControl class.
It would be useful to be able to programmatically hide the workspace tabs, both for the WorkspaceSwitcher module and any other distribution that doesn't want to use the workspace concept. HideIfOne also sounds like a good idea.
I will add setHideIfOne(boolean) and getHideIfOne() methods to TabControl class. Or have anyone some objections?
Fixed in [dev-20010719]. /usr/local/tigris/data/helm/cvs/repository/core/src/org/netbeans/core/ awt/TabControl.java,v <-- TabControl.java new revision: 1.12; previous revision: 1.11
Resolved for 3.4.x or earlier, no new info since then -> verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.