Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to make tools update their state when the active tool changes?
How to make tools update their state when the active tool changes? [message #213806] Tue, 11 April 2006 10:11 Go to next message
Thomas Maier is currently offline Thomas MaierFriend
Messages: 117
Registered: July 2009
Senior Member
Hi all,

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. Is this bug already known? 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. Shall I report this as a bug or
is that already known?

Thanks and regards, Thomas.
Re: How to make tools update their state when the active tool changes? [message #215963 is a reply to message #213806] Thu, 11 May 2006 14:51 Go to previous message
Thomas Maier is currently offline Thomas MaierFriend
Messages: 117
Registered: July 2009
Senior Member
Nobody?

Thomas Maier wrote:
> Hi all,
>
> 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. Is this bug already known? 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. Shall I report this as a bug or
> is that already known?
>
> Thanks and regards, Thomas.
>
Previous Topic:Key bindings: what to use instead of getKeyBindingService().registerAction(action)?
Next Topic:Extending ManhattanConnectionRouter
Goto Forum:
  


Current Time: Fri Apr 26 04:05:30 GMT 2024

Powered by FUDForum. Page generated in 0.02703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top