Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-users] Which way to extend the map editor ?

Hi,

There actually isnt a really easy way to do this. Two ways that are options are:

define a org.eclipse.ui.popupMenus extension. The trick with this is that only certain tools have a popup menu. And each tool can define what the "selection" is. The popupMenus activate when the defined type of object is selected. You will have to figure out what is selected for the different tools. For example if you want to activate on IFilter objects (The object that is selected when the selection tool is active) then you create a popupMenu for IFilter. To make your life easier you could create your own tool and have it popup a menu specific for your purpose.

The other option is to create an operation. Again it activates on certain items but it has a more flexible resolution manager than popupMenu. But again it is active for a certain type of object.


Jesse

On 8-Aug-08, at 2:58 PM, Gian Uberto Lauri wrote:

Hello all,

I would like to add a popup menu to the map editor. Which way is the
best one ? Thanks in advance.

--
/\           ___                                    Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____               African word
 //--\| | \|  |   Integralista GNUslamico            meaning "I can
\/                   e coltivatore diretto               not install
                              di software                   Debian"
_______________________________________________
udig-users mailing list
udig-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.refractions.net/mailman/listinfo/udig-users



Back to the top