Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325408 - [call hierarchy] Adjust Call Hierarchy view's label rendering to other views
Summary: [call hierarchy] Adjust Call Hierarchy view's label rendering to other views
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 3.7 M3   Edit
Assignee: Raksha Vasisht CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 02:34 EDT by Dani Megert CLA
Modified: 2010-10-26 08:36 EDT (History)
3 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 2010-09-16 02:34:56 EDT
I20100915-2024.

Currently the CH starts to use '...' after three elements. We should change this to start after two elements like in the Search or Type Hierarchy view.
Comment 1 Raksha Vasisht CLA 2010-09-27 15:57:41 EDT
Fixed in HEAD.
Comment 2 Dani Megert CLA 2010-09-28 09:29:07 EDT
(In reply to comment #0)
> Currently the CH starts to use '...' after three elements. We should change
> this to start after two elements like in the Search or Type Hierarchy view.
That part got fixed. However, if the string only shows a single element without any additional text then we don't need to put it in single quotes. Please revert that part of the change and also adjust the Type Hierarchy.
Comment 3 Raksha Vasisht CLA 2010-10-14 03:48:28 EDT
(In reply to comment #2)
> However, if the string only shows a single element without
> any additional text then we don't need to put it in single quotes. Please
> revert that part of the change and also adjust the Type Hierarchy.

Fixed in HEAD for Call Hierarchy and Type Hierarchy.
Comment 4 Dani Megert CLA 2010-10-14 04:06:33 EDT
istoryAction_inputElements_1={0}
HistoryAction_inputElements_2={0}, {1}
HistoryAction_inputElements_more= {0}, {1}, ...
TypeHierarchyViewPart_inputElements_1= ''{0}''
TypeHierarchyViewPart_inputElements_2= ''{0}'', ''{1}''
TypeHierarchyViewPart_inputElements_more= ''{0}'', ''{1}'', ... 

This looked strange too me and at a closer look we see that the old code is buggy since it combines the final strings in the code (see e.g. TypeHierarchyViewPart_ws_description). This is not good.

Raksha, can you please take care of this? Thanks.
Comment 5 Markus Keller CLA 2010-10-14 08:26:32 EDT
I saw changes in HEAD in:
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyMessages.properties
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyMessages.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyMessages.properties
Comment 6 Raksha Vasisht CLA 2010-10-19 02:27:33 EDT
(In reply to comment #4)

> This looked strange too me and at a closer look we see that the old code is
> buggy since it combines the final strings in the code (see e.g.
> TypeHierarchyViewPart_ws_description). This is not good.
> 
> Raksha, can you please take care of this? Thanks.

Fixed in 
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyMessages.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyMessages.properties
Comment 7 Dani Megert CLA 2010-10-20 06:01:03 EDT
This is not fixed. You reverted to the broken state where the individual elements aren't in single quotes i.e. it now shows as 'a, b'. Also, you did not solve the problem I mentioned in comment 4: the strings are still concatenated in the code.
Comment 8 Raksha Vasisht CLA 2010-10-25 11:18:40 EDT
(In reply to comment #7)
> This is not fixed. You reverted to the broken state where the individual
> elements aren't in single quotes i.e. it now shows as 'a, b'. Also, you did not
> solve the problem I mentioned in comment 4: the strings are still concatenated
> in the code.

Fixed view description and tooltip in 
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HistoryAction.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyMessages.java
/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyMessages.properties
Comment 9 Rajesh CLA 2010-10-26 08:36:10 EDT
Verified in I20101025-1800.