I think you can add any component to eclipse coolbars at runtime; the tool 
extension point is more for things that control the map.

-- 
Jody Garnett


On Thursday, 16 June 2011 at 11:04 PM, Jaime Lop wrote:

> Hello everyone,
> 
> I want to add a toggle button to the main uDig toolbar. Is that possible? 
> 
> I can create a normal action button like this but I cannot find any way to 
> make it a toggle action button:
> 
> <extension
>  point="net.refractions.udig.project.ui.tool">
> <actionTool
>  class="com.test.ShowHideLabelsTool"
>  icon="icons/btn_show-hide_icon.gif"
>  id="com.test.showlabels"
>  name="Show/Hide labeks"
>  onToolbar="true"
>  tooltip="Show/Hide labels">
> <enablement></enablement>
> </actionTool>
> </extension>
> 
> Regards,
> Jaime
> _______________________________________________
> 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

Reply via email to