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 35167 - Last tab is selected when a tab-using (form editor) node is selected
Summary: Last tab is selected when a tab-using (form editor) node is selected
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks: 34552
  Show dependency tree
 
Reported: 2003-07-28 14:13 UTC by _ tboudreau
Modified: 2008-12-22 16:54 UTC (History)
2 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 _ tboudreau 2003-07-28 14:13:38 UTC
The last tab is the selected one after selecting a
node that
supplies its own tab names for some property sets.
 It should
be the default Properties tab or the first tab.
Comment 1 Tomas Pavek 2003-07-28 14:52:27 UTC
This blocks fixing issue 34552 - it causes IDE validation tests to
fail. Would be nice to fix this soon... Thx.

For testing, use attached form module patch from issue 35168.

The recent behavior should be probably kept - if selecting another
node, the same tab should be selected if it exist for given node too.
Comment 2 _ tboudreau 2003-07-28 23:43:24 UTC
Fixed - PropertySheet 1.120
Comment 3 Tomas Pavek 2003-07-29 11:12:09 UTC
This fix seems to reveal a new problem - one tab is not shown - e.g.
just two tabs instead of three in the case of Form Editor. It looks
like the problem is in setTabCount method, here is a suggested fix:

RCS file:
/cvs/openide/src/org/openide/explorer/propertysheet/PropertySheet.java,v
retrieving revision 1.120
diff -r1.120 PropertySheet.java
1012c1012
<             while (getTabCount() > count-1) {
---
>             while (getTabCount() > count) {
Comment 4 _ tboudreau 2003-07-29 12:36:57 UTC
Good catch, Tomas!  Sorry you had to dig into my code...
I've committed your change.
Comment 5 Marian Mirilovic 2003-09-04 10:05:33 UTC
verified in [nb_dev](20030904)