Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] programmatically selecting a modal tool

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



Back to the top