Custom enablement of uDig tools

View: New views
2 Messages — Rating Filter:   Alert me  

Custom enablement of uDig tools

by Jokela Pirkka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Were writing a custom application based on uDig 1.2 and we'd like to use the uDig tools, but add some more logic in to the enablement controls.

I've noticed that the tools are in net.refractions.udig.tools.edit and the tools are configured in the plugin.xml there. Also I understand that we need to create some new (property) options for the (enablement) element in the tool extension configuration.

The problem for me is that I'd like to use the net.refractions.udig.tools.edit -plugin as-is and just rewrite the tool configuration is some other plugin.xml, but how can I stop the net.refractions.udig.tools.edit plugin from adding all the tools to the toolbar? Or even edit the (enablement) section of the configuration?

Thanks a lot,

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

Re: Custom enablement of uDig tools

by Arto Pastinen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

One option (which i used) is to create plugin_customization.ini file
to your application plugin, and in this case define
net.refractions.udig.project.ui/toolManager=mypackage.MyToolManager
keyword, and extend that MyToolManager class from
net.refractions.udig.project.ui.internal.tool.display.ToolManager.

There you can reimplement filterTool method, there is some wiki for
extra information but i cant remember where.

- Artsi


2009/10/27 Jokela Pirkka <Pirkka.Jokela@...>:

> Hi all,
>
> Were writing a custom application based on uDig 1.2 and we'd like to use the uDig tools, but add some more logic in to the enablement controls.
>
> I've noticed that the tools are in net.refractions.udig.tools.edit and the tools are configured in the plugin.xml there. Also I understand that we need to create some new (property) options for the (enablement) element in the tool extension configuration.
>
> The problem for me is that I'd like to use the net.refractions.udig.tools.edit -plugin as-is and just rewrite the tool configuration is some other plugin.xml, but how can I stop the net.refractions.udig.tools.edit plugin from adding all the tools to the toolbar? Or even edit the (enablement) section of the configuration?
>
> Thanks a lot,
>
>                Pirkka Jokela
> _______________________________________________
> 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