| Summary: | [type hierarchy] Improve label in history dropdown for Multi-select Java elements and show in Type Hierarchy | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Deepak Azad <deepakazad> | ||||||
| Component: | UI | Assignee: | Raksha Vasisht <raksha.vasisht> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P2 | CC: | daniel_megert, rthakkar | ||||||
| Version: | 3.7 | ||||||||
| Target Milestone: | 3.7 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Deepak Azad
Created attachment 178830 [details]
screenshot
We should use the same approach as in Search. And that's actually what I already suggested in the original bug:
> We should limit the label rendering to 2 elements like in the Search view.
and which got marked as 'Done' ;-)
(In reply to comment #3) > And that's actually what I already suggested in the original bug: > > We should limit the label rendering to 2 elements like in the Search view. > > and which got marked as 'Done' ;-) It was limited to 2 elements ;) and the comment was > Done. Could be improved by addding a '...' if needed. ;) Added '' to each element and a '- in' before working set. Hope its more clear now. Changes to the below files committed to HEAD : org.eclipse.jdt.internal.ui.typehierarchy.HistoryAction org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyMessages.java /org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyMessages.properties Verified that '...' is now shown. There are some issues with this though: 1. the single quotes are missing if there's just one element 2. the elements are concatenated in the code which is a no go 3. the HistoryAction.concatenateElementsNames(IJavaElement[], long) looks way too complicated to me Also, filed bug 325408 for the inconsistency in Call Hierarchy. Please polish right after M2. Created attachment 179275 [details] Patch (In reply to comment #5) > Verified that '...' is now shown. There are some issues with this though: > Please polish right after M2. Removed HistoryAction.concatenateElementsNames(IJavaElement[], long) and used getElementLabel(..) instead everywhere. Fixed quotes for single element as well and consistency in History drop down and History dialog. Patch committed to HEAD. . Much better :-) Verified in I20101025-1800. |