|Deactivating a tool [message #236892]
||Wed, 11 July 2007 09:13
| Marian Schedenig
Registered: July 2009
I have added a mouse listener to my PaletteView. If the user double
clicks on a creation tool entry, I manually trigger my element creation
code. Afterwards, I want to deactivate the double clicked tool entry
(and revert to the default tool).
When I set the edit domain's active tool to the default tool inside the
double click listener (or the palette's active tool entry to the default
entry), the tool's activate() method does get called, but in turn causes
the previously selected tool (i.e. the one that was double clicked) to
get re-activated, with the result that double clicking a tool ultimately
selects that tool as well.
I've tried deactivating the tool in all possible ways I could find, but
always with the same result. I'm not sure if the problem is a wrong
method call on my part, or if the fact that I'm trying to do this from a
double click listener is the cause.
Any insights are appreciated.
Powered by FUDForum
. Page generated in 0.02784 seconds