Skip to main content

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

I am a little baffled by that.  You should be able to do it as you say.  Double check your ids.  

On Thu, Sep 30, 2010 at 11:08 AM, Elvie DSouza <elvie.d@xxxxxxxxxxx> wrote:
Hi,
 
I am trying to activate a modal tool programmatically using :
 

ApplicationGIS.getToolManager.getToolAction(

<Tool ID>, <Tool category>).run();

 

This is giving a null pointer exception. I printed the tool categories using :

 

List<ModalToolCategory> categories = ApplicationGIS.getToolManager.getModalToolCategories();

 

and found that the category of the tool I am trying to activate doesnot exists in the list. However, this tool is available on the toolbar and can be activated when selected from there.

 

Please help.

 

Thanks

Elvie


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top