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 84741 - WSDL graphical editor indicates contents even when there are none
Summary: WSDL graphical editor indicates contents even when there are none
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 21:56 UTC by jlautz
Modified: 2007-08-29 00:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshot showing that nodes without children have + (soap:binding, for example) (2.93 MB, application/octet-stream)
2006-09-12 22:00 UTC, jlautz
Details
Screenshot showing that elements without children have arrow (Itinerary, for example) (2.93 MB, application/octet-stream)
2006-09-12 22:01 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2006-09-12 21:56:49 UTC
When I look at a WSDL file in the WSDL graphical editor, almost all nodes
indicate that they contain children, even when they don't.

In the outline view, almost all nodes for the WSDL document have a plus in front
of them, even when they contain no children.

In the column view, almost all items have an arrow after their names, even when
they contain no children. 

It's annoying to try to display child nodes when there actually aren't any.
Comment 1 jlautz 2006-09-12 22:00:45 UTC
Created attachment 33849 [details]
Screenshot showing that nodes without children have + (soap:binding, for example)
Comment 2 jlautz 2006-09-12 22:01:50 UTC
Created attachment 33850 [details]
Screenshot showing that elements without children have arrow (Itinerary, for example)
Comment 3 Chris Webster 2006-09-21 00:23:37 UTC
The node view is default behavior. The Columns view has been updated to reflect
the changes mentioned in issue #84729. This is consistent with the schema view. 
Comment 4 jlautz 2006-09-21 00:30:22 UTC
Why does the default for the schema view to show + when there are no children?
Comment 5 Chris Webster 2006-09-21 21:10:57 UTC
You can see this behavior in other parts of NetBeans. For example, try the
following go to files view then add a folder to one of the projects. The folder
will initially have the + sign until it is expanded (even though we know it is
empty because it was just created). Basically, if it is possible that something
may have children the + will show up. 
Comment 6 jlautz 2006-09-21 21:19:58 UTC
Yeah, it's consistent, but that doesn't make it fun to use. To quote jkopsa from
issue 84729: 

"There are often more significant issues in the trees - the
[+] signs are present even if there are no children. And we are often observing
users clicking on these nervously (and being upset). "

I am one of those users. (click, click, click-click, argh)

Just tell me that this issue is being tracked somewhere, and I'll verify this as
fixed.
Comment 7 gc140975 2006-09-25 10:14:10 UTC
Verified in the build 060923 and observed that the bug not been fixed.In case
bug is not going to fix ,please let us know with proper reason 
Comment 8 Chris Webster 2006-09-25 15:35:30 UTC
This is the standard NetBeans behavior, so this won't be fixed. 
Comment 9 lchang 2006-09-26 22:43:00 UTC
I actually see both issues as being fixed.  Jen, could you take a look at this 
again in the latest WSDL?

In the tree view,  if there are no children, then there is no 'plus' sign.

In column view, if there are no children, then the arrow is greyed out.
Comment 10 jlautz 2006-09-26 22:52:01 UTC
Still seen in 060925_1:

-- any node labeled soap:* -- no children, but always with +.
-- Within an operation, any input, output, fault element always has a + with no
children.
-- within a message, any part still has a + -- no children.
-- when types are defined (imported schema or inline schema) -- any category
still has + even when there are no types of that category: attributes, etc.

I'm sure there are more instances, but you get the idea . . . 
Comment 11 gc140975 2006-09-28 08:27:06 UTC
As per the developer comments,changing the bug status to verified since this is 
standard behavior in the netbeans
Comment 12 lchang 2006-09-28 21:43:59 UTC
Reopening, just because this is standard Netbeans behavior, doesn't mean the 
standard behavior is correct.  If this is consistent with Netbeans, then this 
issue maybe should be logged as an enhancement request for Netbeans.

Downgrading to P4, I understand that this won't be fixed for this release, and 
will most likely be an enhancement request for Netbeans.  If at the Netbeans 
level it is agreed that this is by-design, then we can close this.
Comment 13 Ritesh Adval 2007-01-18 21:11:25 UTC
This we can not fix. It is a netbeans issue. The problem is that some nodes can 
have children when user adds new child node. The netbeans node api should look 
at children if the count is zero then should not show + sign in the tree node 
renderer.
Comment 14 jlautz 2007-02-06 18:21:03 UTC
Is this logged as a NB issue?
Comment 15 Shivanand Kini 2007-08-29 00:28:55 UTC
Fixed for wsdl nodes.
schema nodes under types have not been fixed, since its part of schema tools

Assigning to schema tools for further fix.