net.refractions.udig.ui
Class UDIGMenuBuilder

java.lang.Object
  extended by net.refractions.udig.ui.UDIGMenuBuilder
All Implemented Interfaces:
MenuBuilder

Deprecated.

public class UDIGMenuBuilder
extends java.lang.Object
implements MenuBuilder

This class builds the menus for the uDig application, it is being replaced with org.eclipse.ui.menus.

When uDig is run as a plugin, this class would need to be called by something other than the WorkbenchAdvisor in order to setup the menus. Some of these menus might be possible to let Eclipse manage through an extension point.

NewContribution should probably be moved to a factory class (e.g. UDIGContributionFactory). This would be similar to the way ContributionItemFactory works for the "Open Perspecive" and "Show View" submenus.

To enable this class please include the following in your plugin.xml:
 <extension point="net.refractions.udig.ui.menuBuilders">
    <menuBuilder
        class="net.refractions.udig.ui.UDIGMenuBuilder"
        id="net.refractions.udig.ui.uDigMenuBuilder"/>
 </extension>
 

Since:
1.0.1
Author:
cole.markham

Field Summary
 
Fields inherited from interface net.refractions.udig.ui.MenuBuilder
ATTR_CLASS, ATTR_ID, XPID
 
Constructor Summary
UDIGMenuBuilder()
          Deprecated.  
 
Method Summary
 void fillCoolBar(ICoolBarManager coolBar, IWorkbenchWindow window)
          Deprecated. Instructs this class to configure and fill the provided ICoolBarManager with actions and buttons.
 void fillMenuBar(IMenuManager menuBar, IWorkbenchWindow window)
          Deprecated. Instructs this class that it should configure and fill the provided IMenuManager with menus and actions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDIGMenuBuilder

public UDIGMenuBuilder()
Deprecated. 
Method Detail

fillMenuBar

public void fillMenuBar(IMenuManager menuBar,
                        IWorkbenchWindow window)
Deprecated. 
Description copied from interface: MenuBuilder
Instructs this class that it should configure and fill the provided IMenuManager with menus and actions.

Specified by:
fillMenuBar in interface MenuBuilder
Parameters:
menuBar -
window - The window that contains this menu

fillCoolBar

public void fillCoolBar(ICoolBarManager coolBar,
                        IWorkbenchWindow window)
Deprecated. 
Description copied from interface: MenuBuilder
Instructs this class to configure and fill the provided ICoolBarManager with actions and buttons.

Specified by:
fillCoolBar in interface MenuBuilder
Parameters:
coolBar -
window - The window that contains the CoolBar