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 ?

What I mean by tool is the uDig net.refractions.project.ui.tool extension point. It allows you to make the tools in the Editor toolbar. They define a ISelectionProvider that is responsible for declaring what the "currently selected" item is. For example the Edit tool might have a geometry as the selection but the Selection tool might have a Filter that describes the selected features.

And dont worry about the language problems. I am in Lausanne and my french is so embarrassing that I hate even mentioning that I have some :)

For extending the map Editor. Tools are one way. Operations are another. popup menus are another. These are all extension points. You can add ActionSets or Commands or menus for the main menu...

I'm sure there are other ways but those are the main ones. Tools and operations are the recommended way.


Jesse


On 8-Aug-08, at 6:38 PM, Gian Uberto Lauri wrote:

"JE" == Jesse Eichar <jeichar.w@xxxxxxxxx> writes:

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

JE> define a org.eclipse.ui.popupMenus extension.  The trick with this
JE> is that only certain tools have a popup menu.  And each tool can
JE> define what the "selection" is.

With tool, you mean the editor/view  or the object inside the editor ?
Or with tool you mean one of the tools available in the editor ?

I tried to add one to the generic eclipse (org.eclipse.ui.editor) but
did not work, and I'm starting to understand why...

Forgive me for my questions, I am not a native English speaker andI am
pretty  new to uDig,  so certain  sentences that  are clear  as spring
water  for  some with  experience  with  uDig may  be  a  bit hard  to
understand for me.

JE> The popupMenus activate when the
JE> defined type of object is selected.

This could be more a "feature" than a problem.

Thank you very much!

--
/\           ___                                    Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____               African word
 //--\| | \|  |   Integralista GNUslamico            meaning "I can
\/                   e coltivatore diretto               not install
                              di software                   Debian"



Back to the top