[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Switch Active Tool Programmatically
|
Oh you're right.
In order to set it active you have to call run() on the tool that you
want to activate.
Jesse
On Mar 27, 2007, at 5:45 PM, Mary Khan wrote:
Thanks for your response. There is a getTool(String id) and a
getActiveTool(), but no setters for IToolManager.
-MT Khan
----- Original Message -----
From: "Jesse Eichar" <jeichar@xxxxxxxxxxxxxxx>
To: "User-friendly Desktop Internet GIS" <udig-
devel@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, March 27, 2007 4:11:02 PM (GMT-0500) America/New_York
Subject: Re: [udig-devel] Switch Active Tool Programmatically
There is indeed a way. The ToolManager provides a method for setting
the active tool. I think it takes an ID.
ApplicationGIS.getToolManager() will return the tool manager.
Jesse
On Mar 27, 2007, at 11:23 AM, Mary Khan wrote:
Does anybody know if there is a way to switch which tool is active
programmatically ? I know you can get the ToolManager and get the
active tool, but there seems to be no way to set a tool as active
that I have found.
Thanks,
MT Khan
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel