Community
Participate
Working Groups
In my GEF editor, I have bound actions that select tools to keys. The actions call paletteViewer.setActiveTool(...). However, when I press a key while the mouse is over a diagram and the select tool is active, first the mouse pointer turns into an "X" (this is Linux here), indicating that "I cannot do that here" (create a new object, e.g.). When I move the mouse a little bit (1 pixel is enough), the mouse pointer turns into something indicating that I can perform the tool's action. (May I call another method to work around this and update the "tool state" manually?) Furthermore, when I activate a tool (no matter whether I am clicking on the palette or pressing the corresponding key) while the mouse pointer is outside the diagram, and then carefully (pixel by pixel) enter the diagram, first the pointer turns into an "X" and after moving one more pixel, everything is fine again. So this somehow looks to me as if the "tool state" is updated on mouse move events only but not on focus-in events or when the active tool changes.