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

Bug 360982

Summary: [GEF] GEF editor: Wrong backgroung color on palette tool automatic unload
Product: [RT] RAP Reporter: Arnaud MERGEY <a_mergey>
Component: IncubatorAssignee: Arnaud MERGEY <a_mergey>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 2.3 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
unload tool with wrong backroung none

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