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 20563 - Tools | Explore Node | Its Parent is broken for classes
Summary: Tools | Explore Node | Its Parent is broken for classes
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-14 18:45 UTC by K.C. Baltz
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 K.C. Baltz 2002-02-14 18:45:58 UTC
Edit a java source.  Place the cursor on the name of the class being edited.  
RMB | Tools | Explore Node | Its Parent   should bring up a window with an 
explorer tree with a root of the file that contains the given class.  This 
current brings up a window that says <No Parent>
Comment 1 Svata Dedic 2002-02-15 07:01:51 UTC
Actually, the behaviour is correct: there's not a single node
hierarchy - so the "class" portion of the source is represented by one
node in the Explorer, another node in the Quick browse and yet another
node created just for the IDE's context switching (which you've
browsed). That node has no parent at all :-)
Comment 2 K.C. Baltz 2002-02-15 18:42:21 UTC
While that sounds like the technically correct answer, it seems extremely non-
intuitive to me.  It seems to me that the source definition of a class does have exactly 
one parent, namely the file that contains that definition.  I must admit I don't know 
what you are referring to when you mention Quick Browse or the Context Switching node.  
Perhaps that's why this is confusing.  Has this issue been discussed on nbusers 
before?  
Comment 3 Svata Dedic 2002-02-18 07:58:40 UTC
:-) Quick Browse is the tiny toolbar at the top of java editor window
(see Java Sources options in Editing for property that enables it).
It seems that you've installed the APISupport module - that one
provides the Tools -> Explore Node submenu. Since "normal" users are
not expected to use APISupport, I inferred that you're into NB
development and provided low-level explanation.
And while it may be non-intuitive, I believe that it is wrong to
require exactly one visual parent-child relationship (= conform to one
hierarchy in all views) on data pieces - it limits flexibility of the
system.
Comment 4 Quality Engineering 2003-07-01 13:11:02 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 13:16:28 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.