[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] programmatically selecting a modal tool
|
In fact I've found another problem with this method. The new tool
becomes active, and it remains active forever (even if I select another
modal tool manually) until I actually select this tool manually and then
select another one. Is there a better way to do this?
Graham.
Graham Davis wrote:
I'm trying to programmatically select a modal tool. I've found a code
snippet suggested by Jesse not too long ago, but there is still an issue:
IToolManager manager = ApplicationGIS.getToolManager();
IAction action = manager.getToolAction(MoveImageTool.TOOLID,
"net.refractions.udig.imagegeoreferencing.tools"); //$NON-NLS-1$
action.run();
This will activate the tool fine, but the cursor does not change. My
cursor is still showing the one from the previously active tool. I
tried also fetching the tool with the ToolManager and setting it to
enabled, but that does not change the cursor either. Any idea how I
can get the cursor to properly change?
--
Graham Davis
Refractions Research Inc.
gdavis@xxxxxxxxxxxxxxx