Bug 10613 - Hierarchy view ignores interfaces [type hierarchy]
Summary: Hierarchy view ignores interfaces [type hierarchy]
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 20962 24004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-01 15:22 EST by Jared Burns CLA
Modified: 2009-08-30 02:41 EDT (History)
5 users (show)

See Also:


Attachments
Mock-up of Interfaces view (46.82 KB, image/jpeg)
2003-02-12 14:16 EST, Simon Archer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2002-03-01 15:22:35 EST
The hierarchy view trears interfaces as second-class citizens.

For example:
1. Highlight a package that contains types and interfaces
2. Hit F4
3. Only the types in the package appear, not the interfaces
Comment 1 Erich Gamma CLA 2002-03-03 18:08:52 EST
This is an limitation in the type hierarchy view when opened on a package 
adding interfaces would result in a DAG and we have no widget to present such a 
structure. We can't fix this for 2.0
Comment 2 Dirk Baeumer CLA 2002-07-23 09:15:26 EDT
[type hierarchy]

No action planned for 2.1
Comment 3 Martin Aeschlimann CLA 2002-09-18 07:44:44 EDT
*** Bug 20962 has been marked as a duplicate of this bug. ***
Comment 4 Martin Aeschlimann CLA 2002-09-25 07:41:16 EDT
*** Bug 24004 has been marked as a duplicate of this bug. ***
Comment 5 Adam Shackleford CLA 2002-10-11 00:16:55 EDT
Hiding interfaces this way is *intensely* irritating.
If we had bug voting (like the JDC) I'd burn all my votes on this one.

Does a solution really require a new kind of widget? VAJ solved this with an 
Interfaces tab...
Comment 6 Andreas Krüger CLA 2002-10-11 06:58:38 EDT
I'd vote for this, too.
Comment 7 Simon Archer CLA 2003-02-12 14:15:40 EST
I was about to file a bug report for this too, but a quick seached revealed 
that I was not alone.

I'm not convinced that a DAG is needed.  As Eclipse stands today you can look 
at a single interface and the classes that implement it.  I don't see why you 
couldn't show multiple interfaces and their implementors in a single view.

To help explain this I've created a mock-up of what I'd expect to see (see the 
attachment).  Please realize that this is just an example and I'm not saying 
that this would fulfull everyone's requirements.

The argument that a new widget is needed to implement this sounds like we are 
looking for a too complex solution to a relatively simple problem.  While a DAG 
might be the "perfect solution", it is important to not allow it to stop us 
implementing a "pretty good" solution in the mean time.

Clearly to implement an interfaces view as I am suggesting, a single class 
might very well appear multiple times in the view.  This would be the case 
where a class is an implementer of multiple interfaces.
Comment 8 Simon Archer CLA 2003-02-12 14:16:15 EST
Created attachment 3453 [details]
Mock-up of Interfaces view
Comment 9 Adam Shackleford CLA 2003-02-12 14:44:10 EST
I agree with Simon. In this case, a "pretty good" solution would be very useful.
We could show interface inheritance with duplicates, or by just ignoring
multiple superinterfaces. I just want to see those interfaces without hunting
for 'em.
Comment 10 Gary Gregory CLA 2003-02-12 14:51:56 EST
To me there are two separate issues in adding interfaces to the H view:

(1) Display the interface hierarchy. It is not displayed at all now. All I 
really want now is too see:

IFoo
   IBar

next to my:

ClassA
   ClassB

(2) A toogle/filter could let me tell eclipse whether or not I want 
the "implements" relationship displayed in the view as well, e.g., what the 
mock-up screen shot displays.

IMHO, a good first step would be to just display the interfaces and /then/ to 
go argue about how to best display and implement the display of "implements" 
relationships.

IMHO, the Types and Hierachy views should be folded into one with an 
additional toggle Flat/Hierarchical, just like in the Packages view. Please 
see http://dev.eclipse.org/bugs/show_bug.cgi?id=22552
Comment 11 Dirk Baeumer CLA 2003-04-28 06:03:57 EDT
Chaning state from assigned later to resolved later. Assigned later got 
introduced by the last bug conversion and is not a supported Eclipse bug state.
Comment 12 Eclipse Webmaster CLA 2009-08-30 02:41:05 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.