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 107542 - Go To -> Partner doesn't expand widgets to show selected elements
Summary: Go To -> Partner doesn't expand widgets to show selected elements
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 23:30 UTC by jlautz
Modified: 2007-08-22 18:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing down arrow with expanded partnerlinktype. (112.25 KB, application/octet-stream)
2007-07-17 21:05 UTC, jlautz
Details
Screen shot showing half-expanded partnerlink. (133.41 KB, application/octet-stream)
2007-07-25 21:13 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2007-06-20 23:30:28 UTC
Seen on 
Product Version: NetBeans IDE Dev (Build 200706190000, C/C++ Pack 20070619) Java: 1.6.0_01; Java HotSpot(TM) Client VM
1.6.0_01-b06 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and
Settings\lautz\.netbeans\dev

Related to issue 97533, which adds Go to -> Partner in the Source view.

1. Open a valid WSDL document that defines messages, partnerlinktypes, and port types, like the WSDL generated when you
run the WSDL wizard and accept defaults.

2. Go to the Partner view, and collapse all the Partner Link Type and Message widgets.

3. Go to the Source view.

4. Right-click on a port type that is the type of a partnerlinktype role, and choose Go To -> Partner.

   => The WSDL is shown in the Partner view, but the port type is not visible as selected. The Partner Link Type widget
is still collapsed. If you choose Go To -> WSDL in step 4, the WSDL tree is expanded as needed to show the node for the
selected element. IMHO, the Partner view should also expand the widget to show the selected element.

Same behavior occurs for parts in messages, messages, partnerlinktyperoles, etc.
Comment 1 Shivanand Kini 2007-06-22 19:42:14 UTC
This also happens for Go To Partner from the wsdl view too.
Comment 2 Shivanand Kini 2007-06-22 19:47:18 UTC
Fixed this
Comment 3 jlautz 2007-07-17 21:02:58 UTC
Retested with 
Product Version: NetBeans IDE Dev (Build 200707161200) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System:
Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\lautz\.netbeans\dev

Following the scenario originally described, after step 4, 

==> the arrow for the Partnerlinktype is pointing the wrong direction (down instead of up), even though the
Partnerlinktype is already expanded (screenshot attached). 

Clicking on this arrow once does nothing but switch the arrow to up. The second click on the arrow collapses the
Partnerlinktype and switches the arrow to down.

Same happens with message part, Port type operation, etc.


Comment 4 jlautz 2007-07-17 21:05:36 UTC
Created attachment 45254 [details]
Screenshot showing down arrow with expanded partnerlinktype.
Comment 5 Shivanand Kini 2007-07-23 20:07:16 UTC
Fixed.
Comment 6 jlautz 2007-07-25 21:12:48 UTC
Retested with 
Product Version: NetBeans IDE Dev (Build 200707250000) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System:
Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\lautz\.netbeans\dev

Almost working as expected -- this might be a problem with synchronization that only shows up on a slower machine. I
have a 1.8 GHz processor with "only" 1M RAM.

Looks good in almost all cases, except the following:

1. Open a valid WSDL document that has at least one partnerlink with partner role defined.
2. In the WSDL view, select the partner role.
3. In the context menu for the partner role, click Go To -> Partner.

=> The Partner view shows a weird, mixed up semi-expanded view, as shown in the attached screenshot. If I wait a second
or click on the window or expand the window (in some way, refresh the window), the correct expanded view is shown.
Comment 7 jlautz 2007-07-25 21:13:56 UTC
Created attachment 45716 [details]
Screen shot showing half-expanded partnerlink.
Comment 8 Shivanand Kini 2007-07-26 20:34:41 UTC
I am not able to reproduce the last scenario on my machine.

Also, did you mean to say 1GB of memory?
Does just moving the mouse, refresh the view?
Is it reproduceable everytime? if so, can please file a new bug for the last scenario.
Comment 9 jlautz 2007-08-22 18:47:36 UTC
The last little test case is not reproduceable with Product Version: NetBeans IDE Dev (Build 200708210000) Java:
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\lautz\.netbeans\dev