Jody, thanks for that hint!

I thought the extension point requires extensions of SimpleTool since it is defined in the extension point xml: <meta.attribute kind="java" basedOn="net.refractions.udig.project.ui.tool.SimpleTool"/>

but the Zoomtool is just based on the AbstractModalTool. So I changed it in my tools. It works and no context menu.

Cheers, Matthias


Am 15.09.2011 15:29, schrieb Jody Garnett:
Not all tools have a context menu; have a look at the zoom tool for
example?

Can I ask what actions are shown in the context menu which you would
like to remove? There may be another way...

--
Jody Garnett

On Thursday, 15 September 2011 at 5:13 AM, Matthias Lendholt wrote:

Hey,

I want to add some modal tools to my application. This is quite simple
using the extension point "net.refractions.udig.project.ui.tool".
Unfortunately the SimpleTool (which is the base class for all modal
tools) automatically opens a context menu (third mouse button) in
"public final void mousePressed( MapMouseEvent e )" which cannot be
overwritten. Is there any legal way to create a ModalTool without any
context menu?
The context menu (created in MapEditor) contains several actions which
should not be visible in my application.

Cheers,
Matthias
_______________________________________________
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

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to