[udig-devel] Toolbar icon functionality
Vitali Diatchkov
vitali at arbonaut.com
Wed Jun 13 09:13:55 PDT 2007
There are two types of tools in UDIG: action tools and modal tools.
What you are talking about is likely an action tool. Action tool is placed
on the toolbar like a button without any menu: you press the button , the
action is performed. Modal tools are tools that work over the map editor
with mouse events. Action tools just force the execution of its
functionality without mouse events.
To create action tool use appropriate extension point (actionTool extension
item) and extend AbstractActionTool class.
In this case the tools appears on the toolbar in a right way - as a button
that forces an action, nothing more.
Vitali.
> -----Original Message-----
> From: udig-devel-bounces at lists.refractions.net [mailto:udig-devel-
> bounces at lists.refractions.net] On Behalf Of James Anderson
> Sent: Wednesday, June 13, 2007 7:03 PM
> To: udig-devel at lists.refractions.net
> Subject: [udig-devel] Toolbar icon functionality
>
> Hello all,
>
> Whenever I insert a new plug-in into uDig the icon is displayed as a
> drop-down icon. Does anyone know how to develop an icon that the user can
> simply click and not use the drop-down icon?
>
> I'm guessing it's somewhere in the MANIFEST.MF file possibly when you
> initialise the AbstractActionTool. If anyone knows where you do this then
> please get in touch with me.
>
> James.
>
> _________________________________________________________________
> The next generation of Hotmail is here! http://www.newhotmail.co.uk/
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
More information about the udig-devel
mailing list