Bug 142109

Summary: TVT3.2:TCT502: AR: GMF: Tool Tips from the Popup Bar disappears.
Product: [Modeling] GMF-Runtime Reporter: CDE Administration <cdeadmin>
Component: GeneralAssignee: Tom Macdougall <tmacdoug>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P2 CC: camle, kitlo, mmostafa, steveshaw
Version: 1.0Keywords: contributed
Target Milestone: 1.0   
Hardware: PC   
OS: Linux-GTK   
URL: 502
Whiteboard:
Attachments:
Description Flags
GMF.JPG
none
patch for PopupBarEditPolicy
none
new patch for PopupBarEditPolicy
none
patch for DiagramPopupBarEditPolicy
none
patch for DiagramPopupBarEditPolicy none

Description CDE Administration CLA 2006-05-16 18:30:02 EDT
OS: XP.
Must Fix: Yes.
Build Date: 0514.
Blocking: No.
Language: AR.
Bitmap Location: \defects\ar
Tester Name: Omar Bahy.

Scenario:
1- Create a general Project.
2- Open a Geoshape example.
3- Hover the mouse on diagram surface so the Tool Tip Popup bar appears.
4- Move your mouse on the popup bar.

Problem:
The popup bar items disappear when moving the mouse on them.

This article was reassigned from Category:''TVT/Testing''.
Comment 1 CDE Administration CLA 2006-05-16 18:30:10 EDT
Created attachment 41670 [details]
GMF.JPG
Comment 2 CDE Administration CLA 2006-05-16 18:30:13 EDT
<cde:tctdetail>
Testcase: 22.001040 GMF - GEOSHAPES DIAGRAM EXAMPLE
Project: WSW32
Component: CDE - GMF/Runtime Diagram
Priority: 2
Subject: AR: GMF: Tool Tips from the Popup Bar disappears.
Article ID: 502
Originator: ROUSHDY@EG.IBM.COM
</cde:tctdetail>
Comment 3 Steven R. Shaw CLA 2006-05-18 08:27:14 EDT
targetting for RC4
Comment 4 Steven R. Shaw CLA 2006-05-19 16:45:48 EDT
I bet this is a duplicate of 142813... Since this is Linux specific, it's likely the file names in the provider are specified in a non-case sensitive manner?
Comment 5 Tom Macdougall CLA 2006-05-25 10:01:16 EDT
I reproduced this problem on Windows XP using english and RTL (i.e. -dir rtl). It appears that the problem is specific to the images. Not all images in the popup bar disappear on mouse over. I replaced the other images with one that worked and the error did not occur. 
Comment 6 Steven R. Shaw CLA 2006-06-01 10:48:32 EDT
RC5 candidate
Comment 7 Tom Macdougall CLA 2006-06-05 16:32:16 EDT
Created attachment 43527 [details]
patch for PopupBarEditPolicy

The attached patch repaints the popup bar in its entirety if the control is mirrored (e.g. RTL) otherwise only the label (icon and enclosing rectangle) is repainted.
Comment 8 Steven R. Shaw CLA 2006-06-06 08:52:20 EDT
Mohammed - you can commit this...
Comment 9 Tom Macdougall CLA 2006-06-06 15:56:56 EDT
Created attachment 43638 [details]
new patch for PopupBarEditPolicy

Dynamic check for RTL
Comment 10 Mohammed Mostafa CLA 2006-06-08 11:13:32 EDT
One concern about the fix; 
aclling getParent().getParent().repaint means we are calling repaint on the diagram. this could be an issue
Comment 11 Tom Macdougall CLA 2006-06-12 14:10:10 EDT
Created attachment 44166 [details]
patch for DiagramPopupBarEditPolicy

Better performing patch that does not repaint the diagram. If the image is an SWT.ICON type and the control is mirrored then the image is reconstructed and the transparent pixels are replaced with diagram background colored pixels.
Comment 12 Tom Macdougall CLA 2006-06-14 13:38:21 EDT
Created attachment 44429 [details]
patch for DiagramPopupBarEditPolicy

The converted images are now added to the imagesToBeDisposed list and are cleaned up when the popup bar is torn down.
Comment 13 Tom Macdougall CLA 2006-06-14 14:21:28 EDT
Code has been committed.
Comment 14 CDE Administration CLA 2006-06-14 15:40:48 EDT
Checked with Build 0613, and the problem is still there.
Comment 15 Tom Macdougall CLA 2006-06-14 15:53:37 EDT
It was delivered today and has not been built yet.
Comment 16 Richard Gronback CLA 2008-08-13 13:05:44 EDT
[target cleanup] 1.0 RC5 was the original target milestone for this bug
Comment 17 Eclipse Webmaster CLA 2010-07-19 12:28:31 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug