Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328635

Summary: allow connectors to hide kind in tooltip
Product: z_Archived Reporter: Thomas Ehrnhoefer <thomas.ehrnhoefer>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: trivial    
Priority: P2 CC: shawn.minto, steffen.pingel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch
thomas.ehrnhoefer: review?
mylyn/context/zip
none
patch
none
mylyn/context/zip none

Description Thomas Ehrnhoefer CLA 2010-10-25 12:49:38 EDT
The taskKind label is always shown (if taskKind is set on the task and the taskKind is not the same as the task label).
That means that if a connector adds custom label for it's task kinds, in order to not have redundant information (e.g. @Feature xy (feature)@) it would need to use the same string for label and taskKind.
This is a bit odd as an identifier for a taskKind is static, but a label can be dynamic (e.g. i18n).
Comment 1 Thomas Ehrnhoefer CLA 2010-10-25 12:58:02 EDT
Created attachment 181662 [details]
patch

Here is a patch.
Although while thinking more about this, maybe it is useful to show the task kind if the label is different. That would mean that with an internationalized label, it is still possible to see the connector internal task kind....

I am a bit torn now, not sure what's best
Comment 2 Thomas Ehrnhoefer CLA 2010-10-25 12:58:04 EDT
Created attachment 181663 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2010-10-26 07:57:57 EDT
Created attachment 181710 [details]
patch
Comment 4 Steffen Pingel CLA 2010-10-26 07:57:59 EDT
Created attachment 181711 [details]
mylyn/context/zip
Comment 5 Steffen Pingel CLA 2010-10-26 07:58:36 EDT
I agree that the API need improvement. Implementations of AbstractRepositoryConnectorUi.getTaskKindLabel(ITask) commonly return a static label which is why the tooltip now also shows the task kind but as you point out those values are not necessarily suitable to be displayed in the UI.

I think we need a more flexible solution that allows proper customization and internationalization of the label. What do you think about delegating to the connector UI to provide the entire label?
Comment 6 Thomas Ehrnhoefer CLA 2010-10-26 12:06:34 EDT
(In reply to comment #5)
> I think we need a more flexible solution that allows proper customization and
> internationalization of the label. What do you think about delegating to the
> connector UI to provide the entire label?

Probably best.
Comment 7 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn