Bug 140114 - [navigation] "Show Selected Element Only" could narrow on super types and interfaces.
Summary: [navigation] "Show Selected Element Only" could narrow on super types and int...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 140115 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-04 02:35 EDT by Max Rydahl Andersen CLA
Modified: 2006-05-08 11:34 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Rydahl Andersen CLA 2006-05-04 02:35:06 EDT
We have "Show selected type only" feature (which is both loved and hated ;)

I suggest this feature is enhanced with the option of when you click on this element and the underlying text is part of the extends or implements then it should not show the complete class; but only the methods that originates from the extended class or implemented interface.

Then it suddenly becomes *really* usable since you can look at a class in the perspective of the interface/class contract.
Comment 1 Dani Megert CLA 2006-05-04 02:43:40 EDT
*** Bug 140115 has been marked as a duplicate of this bug. ***
Comment 2 Dani Megert CLA 2006-05-04 02:46:51 EDT
Please provide more details. Are you talking about "Show Selected Element Only" button which is in the tool bar, or something different?
Comment 3 Max Rydahl Andersen CLA 2006-05-04 02:49:58 EDT
yes, show selected element only.

What does "Resolved remind" mean ?
Comment 4 Dani Megert CLA 2006-05-04 02:53:23 EDT
We usually use this when we need more info.

e.g., what does "... when you click on this element" mean? Where? What element? 
Comment 5 Max Rydahl Andersen CLA 2006-05-04 03:03:48 EDT
Ok, now with details:

Imagine opening e.g. JavaEditor that has the following signature/declaration:

public abstract class JavaEditor extends AbstractDecoratedTextEditor implements IViewPartInputProvider {
...

Then today when your cursor is on the declaration it will just show the complete class.

What I suggest is that if the cursor is on "AbstractDecoratedTextEditor" then show the class; but only with the AbstractDecoratedTextEditor inherited methods and similar for IViewPartInputProvider if the cursor was on "IViewPartInputProvider"


Comment 6 Dani Megert CLA 2006-05-04 03:08:22 EDT
.
Comment 7 Dani Megert CLA 2006-05-04 03:17:44 EDT
To summarize: when the 'Show Selected Element Only' tool bar button is pressed it should not show the enclosing element if the caret/selection is on a type declaration's superclass or interface but instead show the members define by the selected superclass/interface.
Comment 8 Max Rydahl Andersen CLA 2006-05-04 03:23:04 EDT
Correct.
Comment 9 Martin Aeschlimann CLA 2006-05-08 11:34:42 EDT
correcting owner to jdt.text