Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360982 - [GEF] GEF editor: Wrong backgroung color on palette tool automatic unload
Summary: [GEF] GEF editor: Wrong backgroung color on palette tool automatic unload
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: Incubator (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 2.3 M3   Edit
Assignee: Arnaud MERGEY CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-14 10:55 EDT by Arnaud MERGEY CLA
Modified: 2014-03-30 13:49 EDT (History)
0 users

See Also:


Attachments
unload tool with wrong backroung (12.21 KB, image/png)
2011-10-14 10:58 EDT, Arnaud MERGEY CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud MERGEY CLA 2011-10-14 10:55:52 EDT
In a GEF editor with palette, when a tool is configured with AbstractTool.PROPERTY_UNLOAD_WHEN_FINISHED to true, when the tool is unloaded, default tool takes selection as expected, but previously unselected tool bacground takes on hover background, that is a bit confusing

To reproduce, launch gef RAP demo, on Logic tab create a label using the palette, Select tool backround becomes blue, label tool becomes orange, but it should be white.

I attach a screenshot to show this issue.

If it can help, by debugging I noticed in org.eclipse.gef.internal.ui.palette.editparts.ToolEntryEditPart.ToolEntryToggle.paintFigure(Graphics), the unloaded tool backround change because model.isMouseOver() return true.
Comment 1 Arnaud MERGEY CLA 2011-10-14 10:58:00 EDT
Created attachment 205205 [details]
unload tool with wrong backroung
Comment 2 Arnaud MERGEY CLA 2014-03-30 13:49:15 EDT
Caused by a side effect of mouse over feedback management.
Disable it, as mouse entered and mouse exit are not supported in RAP, feedback was not shown anyway 

Fixed wit commit 80ad50b6872b3b1829ecd2c1543d20f0e3014461