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

Bug 160924

Summary: RCP (Linux): Tooltip not working
Product: z_Archived Reporter: Jane Fang <janefang>
Component: TPTP.monitoringAssignee: Eugene Chan <ewchan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: ajay_garga
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: closed460
Attachments:
Description Flags
Patch : Removing "&" in the tooltips
none
Patch for stripping the mnemonic from the tooltip
none
Patch for stripping the mnemonic from the toolltip
none
Patch for stripping the mnemonic from the toolltip
none
Patch for stripping the mnemonic from the tooltip
none
Patch for stripping the mnemonic from the tooltip
none
Patch for stripping the mnemonic from the tooltip none

Description Jane Fang CLA 2006-10-13 15:56:25 EDT
On linux platform, the tooltip shows up for the button New is "&New". for those disabled buttons, there is no tooltip at all.
Comment 1 Dave Smith CLA 2007-01-10 01:18:22 EST
This should be fixed in 4.4.
Comment 2 Dave Smith CLA 2007-01-17 17:33:06 EST
Add sizing from Eugene.
Comment 3 Eugene Chan CLA 2007-01-31 18:31:33 EST
Target to future. Cannot be contained in 4.4 due to limitation of resource.
Comment 4 Eugene Chan CLA 2007-01-31 23:31:51 EST
Move target back to 4.4. Monitor defects are mistakenly targeted in bulk move.
Comment 5 Dave Smith CLA 2007-02-06 12:59:38 EST
Targetting to complete in iteration 2.
Comment 6 Ajay Garga Rengasayee CLA 2007-03-05 06:30:50 EST
Created attachment 60256 [details]
Patch : Removing "&" in the tooltips

The Icon / Menu name has "&" to set the mnemonic for the keyboard shortcut. The name appears as it is as tooltips with "&". The problem occurs only in Linux platform. The bug is resolved in the patch.

Module changed : org.eclipse.tptp.monitoring.rcp.symptom
Comment 7 Ajay Garga Rengasayee CLA 2007-03-05 06:35:22 EST
The other problem that is "there is no tooltip for disabled items" is not a bug with RCP application. It is the limitation with GTK in Linux. 

Refer http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg32585.html

Comment 8 Eugene Chan CLA 2007-03-16 14:59:55 EDT
(In reply to comment #6)
> Created an attachment (id=60256) [details]
> Patch : Removing "&" in the tooltips
> 
> The Icon / Menu name has "&" to set the mnemonic for the keyboard shortcut. The
> name appears as it is as tooltips with "&". The problem occurs only in Linux
> platform. The bug is resolved in the patch.
> 
> Module changed : org.eclipse.tptp.monitoring.rcp.symptom 
> 

Ajay, this patch is not safe for NL support. There is case that non-english language (eg. Chinese, Korean) shows mnemonic key as "(&P)".

Please see 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=133122#c3
for details of the problem.
Comment 9 Ajay Garga Rengasayee CLA 2007-04-04 07:36:52 EDT
From the comments in the defect # 133122 and details from Steven Wasleski:

Using org.eclipse.jface.action.LegacyActionTools#removeMnemonics(String), the mnemonic can be stripped from the tooltip. 

I have fixed this defect in the following Symptom RCP components:
org.eclipse.hyades.sdb
org.eclipse.hyades.sdb.new
org.eclipse.tptp.monitoring.rcp.symptom
org.eclipse.tptp.monitoring.symptom.editor
org.eclipse.tptp.platform.rcp.common
org.eclipse.tptp.platform.rcp.log

I will attach the patch for these below
Comment 10 Ajay Garga Rengasayee CLA 2007-04-04 07:41:09 EDT
Created attachment 62905 [details]
Patch for stripping the mnemonic from the tooltip

Component changed : org.eclipse.hyades.sdb
Comment 11 Ajay Garga Rengasayee CLA 2007-04-04 07:42:45 EDT
Created attachment 62906 [details]
Patch for stripping the mnemonic from the toolltip

Component changed : org.eclipse.hyades.sdb.new
Comment 12 Ajay Garga Rengasayee CLA 2007-04-04 07:44:00 EDT
Created attachment 62907 [details]
Patch for stripping the mnemonic from the toolltip

Component changed : org.eclipse.tptp.monitoring.rcp.symptom
Comment 13 Ajay Garga Rengasayee CLA 2007-04-04 07:45:15 EDT
Created attachment 62908 [details]
Patch for stripping the mnemonic from the tooltip

Component changed : org.eclipse.tptp.monitoring.symptom.editor
Comment 14 Ajay Garga Rengasayee CLA 2007-04-04 07:46:10 EDT
Created attachment 62909 [details]
Patch for stripping the mnemonic from the tooltip

Component changed : org.eclipse.tptp.platform.rcp.common
Comment 15 Ajay Garga Rengasayee CLA 2007-04-04 07:47:30 EDT
Created attachment 62910 [details]
Patch for stripping the mnemonic from the tooltip

Component changed : org.eclipse.tptp.platform.rcp.log
Comment 16 Dave Smith CLA 2007-04-09 17:01:07 EDT
Deferring to iteration 3.
Comment 17 Eugene Chan CLA 2007-04-17 14:24:42 EDT
Patches submitted.
Comment 18 Eugene Chan CLA 2007-04-17 14:25:25 EDT
fixed
Comment 19 Paul Slauenwhite CLA 2009-06-30 13:18:10 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.