Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 153887 - [java 1.6] Provide an easy way to browse all references
Summary: [java 1.6] Provide an easy way to browse all references
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.3   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 154115
  Show dependency tree
 
Reported: 2006-08-15 07:18 EDT by Dani Megert CLA
Modified: 2007-03-19 10:06 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2006-08-15 07:18:36 EDT
3.3 M1

The new feature to look at all the references of an object is a good start. What about providing a view that allows me to navigate in both directions? I could then also use filters, working sets etc.

Here are some problems I see with the current solution:
- I can't go directly back to the previous once I used Ctrl+Shift+I
- I can't directly inspect the selected element in the Expression view
- on my machine the lower pane is too small and repositioning the sash is not
  respected

Let me know if you want separate bugs for those.
Comment 1 Darin Wright CLA 2007-02-14 16:55:35 EST
We've released support that allows references to be shown in the variables view. When you expand an object, you also get it's references in a "References" element, which is an array of referring objects. There's a toggle in the view menu to "Show References". Please try this and add comments to this bug.
Comment 2 Darin Wright CLA 2007-02-26 11:41:28 EST
Marking as fixed - references are now displayed in-line in the variables/expression views and pop-up. Please provide feedback, or open new bugs as required.
Comment 3 Martin Aeschlimann CLA 2007-02-28 13:24:31 EST
I like the new approach, much better than the old quick view.
Some suggestions:
- for the node 'References', leave the 'value' column empty. The current 'Object[]' is strange.
- it would be good to see the number of references as soon as you have that information. Especially when there are no references, this information would explain the node. Suggestion: Render 'References (0)' or use the 'value' column
e.g. '5 references found in heap'
- I would like to know which field references by instance. Could that field be sorted first, or highlighted somehow?
- For 'Reference 1' use a icon that points to the upper left corner (to point to the referenced element)
Comment 4 Curtis Windatt CLA 2007-02-28 13:46:42 EST
(In reply to comment #3)

1) It is difficult to make the value column empty as the references variable must be of an allowable java type.  It made sense to treat the value as an array of Objects, since that is essentially what the references are.

2) That capability was planned, but refreshing the view to get the updated labels was resulting in a large amount of work re-evaluating, so it was removed. 

(3/4) I'm not entirely sure what you want, feel free to open bugs/enhancements for these.

Several attempts were made to make the value column empty
> I like the new approach, much better than the old quick view.
> Some suggestions:
> - for the node 'References', leave the 'value' column empty. The current
> 'Object[]' is strange.
> - it would be good to see the number of references as soon as you have that
> information. Especially when there are no references, this information would
> explain the node. Suggestion: Render 'References (0)' or use the 'value' column
> e.g. '5 references found in heap'
> - I would like to know which field references by instance. Could that field be
> sorted first, or highlighted somehow?
> - For 'Reference 1' use a icon that points to the upper left corner (to point
> to the referenced element)
> 

Comment 5 Darin Wright CLA 2007-03-19 10:06:06 EDT
Verified. New bugs have been opened for remaining issues/enhancements.