Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Switch Active Tool Programmatically

Thank you so much for your help! It solved my problem.

-MT Khan

----- Original Message -----
From: "Jesse Eichar" <jeichar@xxxxxxxxxxxxxxx>
To: "User-friendly Desktop Internet GIS" <udig-devel@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, March 28, 2007 1:52:00 PM (GMT-0500) America/New_York
Subject: Re: [udig-devel] Switch Active Tool Programmatically

I've been informed that there are two poorly named methods:

findTool() and getTool().  I've asked richard to deprecate getTool()  
and rename it to getToolAction()  it is the getTool() or getToolAction 
() methods that need to be called, NOT findTool().

Jesse

On Mar 27, 2007, at 5:52 PM, Jesse Eichar wrote:

> 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
>
> _______________________________________________
> 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



Back to the top