Community
Participate
Working Groups
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.
Created attachment 205205 [details] unload tool with wrong backroung
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