Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Deactivating a tool
Deactivating a tool [message #236892] Wed, 11 July 2007 09:13
Marian Schedenig is currently offline Marian SchedenigFriend
Messages: 25
Registered: July 2009
Junior Member

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.

Previous Topic:create graphicview
Next Topic:How to create Multiline figure
Goto Forum:

Current Time: Mon Aug 15 17:21:22 GMT 2022

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

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

Back to the top