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

Bug 319693

Summary: CommandContributionItem.getToolTipText() should be API
Product: [Eclipse Project] Platform Reporter: Martin Oberhuber <mober.at+eclipse>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: uwe.st
Version: 3.6Keywords: api
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Martin Oberhuber CLA 2010-07-13 08:10:24 EDT
+++ This bug was initially created as a clone of Bug #319618 +++

The RSE menu handler provides a feature that allows displaying a tooltip text for the selected menu item in the status bar. This is being used for better explaining what any given menu item is about to do, and we want to leverage this functionality in our product.

The tooltip text for a menu item could be retrieved easily with the old action framework. With the new command framework, it is no longer possible to retrieve the tooltip text for a command contribution. This is not understandable, since the tooltip text can be contributed through the commands extension point.

Bug 319618 contains a patch using introspection for retrieving the tooltip text from its private method. We want to avoid using introspection and have official API for this instead.

Corresponding code is in method widgetArmed() in
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemViewMenuListener.java?root=DSDP_Project&view=markup
requirements.
Comment 1 Paul Webster CLA 2010-07-13 08:16:24 EDT
I'll get this in for 3.7 M1
PW

*** This bug has been marked as a duplicate of bug 276185 ***