[udig-devel] create a command

Andrea Antonello andrea.antonello at gmail.com
Wed May 30 01:42:01 PDT 2007


Alright, I need some explanation on tools creation, else I will end up
to fill the whole UI of Udig with randomly ordered JGrass commands.

Example:
I want to create a set of tools able to import and export different map
formats into and out of the JGrass workspace.
So what I do is:

1) Create a category: so I
- supply an id
- have no idea on what to say for commandId, since there will be a bunch
of command in this category
- give the icon path
- give a nice name
- have no idea about what the selectionProvider does
- have no idea about what the applicabilityId is

2) Create an actionTool: so I
- set the ID and the tooltip and the name and the class and the icon
- choose whether to put it on the toolbar (where?) or not
- supply the id of the just created category
- don't know how to handle commandIDs, commandHandler and menuPath even
if they sound like very good to tune configuration.


Con someone please light my way?

Thanks,
Andrea


More information about the udig-devel mailing list