Community
Participate
Working Groups
Steps - Select 5 java elements in PE - Press F4 - In the Type Hierarchy view the history dropdown shows only 2 java elements. Also the entries can become quite difficult to read, depending on resolution, platform etc (See attachment, this is from a Kubuntu machine). Possible improvements - The label should show '... 3 more' or at least ',...' (search view also uses the second option) - Maybe each element can be enclosed in parenthesis? e.g. (TypeA - o.e.jdt) , (TypeB - o.e.jdt) - And to really push it the dropdown should respect package name abbreviation preferences to make the label more readable ;-)
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.