There are a number of pages in our developers guide on this topic; the answer 
depends on where the menu bar contribution came from. The easiest thing to do 
is not include net.refractions.udig.project.ui.edit (which is what the 
tutorials on how to embed uDig in an existing Eclipse RCP app do). 

The other thing to do is shut off the actionSets which enable the menu 
contributions from other plugins. For more information please see the 
"CustomApp" tutorial, it is covered both in the tutorial and in the "things to 
try" section.

There is also a more general purpose eclipse method for controlling user 
interface contributions by filtering plugin.xml files on load.

For more information please see the developers guide (where this is a popular 
topic):
- http://udig.refractions.net/confluence/display/DEV/How+to+turn+stuff+off
- http://udig.refractions.net/confluence/display/DEV/How+do+I+turn+off+menus

-- 
Jody Garnett


On Tuesday, 28 August 2012 at 5:34 PM, Yu Lang Chiang wrote:

> I want to hide the "Map" menu and some "Layer" menu item , and i have checked 
>  code & configuration file in some packages, like net.refractions.udig.ui. 
> But still don't know how to do it...... Can someone give me a hint?
> _______________________________________________
> 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