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.

Bug 7605 - Should not see the workspace TAB if only one workspace
Summary: Should not see the workspace TAB if only one workspace
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC All
: P4 normal (vote)
Assignee: Gabriel Tichy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-08 19:59 UTC by Unknown
Modified: 2008-12-22 17:01 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2000-09-08 19:59:35 UTC
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
Comment 1 Jesse Glick 2000-09-08 20:10:59 UTC
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.
Comment 2 Jan Zajicek 2001-01-23 09:29:59 UTC
Automated change of version from Other to Dev.
Comment 3 Jan Chalupa 2001-03-12 09:36:00 UTC
Version: 'Dev' -> 3.2
Comment 4 Jiri Mzourek 2001-04-09 09:36:57 UTC
Changed to enhacement.
Comment 5 Jan Chalupa 2001-05-05 20:36:37 UTC
Target milestone -> 3.3
Comment 6 Gabriel Tichy 2001-05-24 16:28:55 UTC
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.


Comment 7 _ tboudreau 2001-06-15 17:18:30 UTC
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.
Comment 8 Gabriel Tichy 2001-07-17 16:49:03 UTC
I will add setHideIfOne(boolean) and getHideIfOne() methods to 
TabControl class.
Or have anyone some objections?
Comment 9 Gabriel Tichy 2001-07-19 09:36:42 UTC
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

Comment 10 Quality Engineering 2003-07-01 16:03:56 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 11 Quality Engineering 2003-07-01 16:49:00 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.