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 148359 - Table headers should not be displayed when tables have nothing to display.
Summary: Table headers should not be displayed when tables have nothing to display.
Status: STARTED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: dds.dhawal
URL:
Keywords: L&F, NETFIX, SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2008-09-25 14:02 UTC by Martin Entlicher
Modified: 2011-10-31 17:30 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2008-09-25 14:02:24 UTC
See issue #132862. When the models are empty, TreeTable should not be displayed at all, the window should contain some
informational message instead.
Comment 1 Ondrej Langr 2008-09-30 12:51:13 UTC
Assuming this would be SIMPLEFIX, please correct me if I'm wrong. 
Comment 2 Martin Entlicher 2008-11-18 16:33:11 UTC
I agree that the empty tables are confusing. We need to add some mechanism that would provide the message into the
debugger models.
Comment 3 Jiri Kovalsky 2009-03-30 15:12:21 UTC
Martin Entlicher agreed that he would review and integrate a patch for this issue contributed by the NetFIX [1] team.

[1] http://wiki.netbeans.org/NetFIX
Comment 4 tusharvjoshi 2009-08-05 14:32:48 UTC
When can I see such an empty window?  Is this the situation when no debugger is running and user opens any of the
debugger windows?  or when debugger is running and when there are no watches etc in the windows?

Comment 5 Martin Entlicher 2009-12-02 12:18:32 UTC
The table are empty when there's no debugger session running.
Comment 6 GSaggar 2010-03-23 06:34:16 UTC
I'd like to NetFIX [1] this bug. Is it possible? [1] http://wiki.netbeans.org/NetFIX
Comment 7 Jiri Kovalsky 2010-03-23 08:44:53 UTC
Yes, you can Gautam. Just go ahead and start working on fixing this bug.
Comment 8 Jiri Kovalsky 2010-03-26 14:30:42 UTC
Assigning to Gautam Saggar. Good luck!
Comment 9 GSaggar 2010-03-26 19:00:02 UTC
Please help me with following doubt:
1. For which all windows we need this 'TreeTable' absent change? There are windows like variables, watches, etc. 
2. Do we need to remove the tree table, from the window or need some message to appear (in all such windows) when no debugging sessions are running.
Comment 10 Jiri Kovalsky 2010-04-01 07:52:15 UTC
This issue concerns all debugger views - see "Window > Debugging > " items in the main menu. In other words from Alt+Shift+1 to Alt+Shift+9. As for the fix I think the right solution would be to either remove the tree table or at least hide the table header. In both cases it would be good to display some message in the center, something like <No View Available> which prints Navigator if e.g. Projects view has focus and some project node is selected.
Comment 11 Jiri Kovalsky 2010-04-26 18:38:15 UTC
Any update on this issue Gautam? Thanks!
Comment 12 dds.dhawal 2011-10-31 17:30:08 UTC
The implementation plan for fixing this bug is to hide the table headers if the row count of table  is 0 (no watches to display).
For this, I need to have the table object pointing to the watches table. Where can I find the table object?

i found that the columnModel for watches table is present at org.netbeans.modules.debugger.ui.models. But I cannot find where the table is created and where this column model is being implemented.