net.refractions.udig.ui
Class UDIGMenuBuilder
java.lang.Object
net.refractions.udig.ui.UDIGMenuBuilder
- All Implemented Interfaces:
- MenuBuilder
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
Method Summary |
void |
fillCoolBar(ICoolBarManager coolBar,
IWorkbenchWindow window)
Instructs this class to configure and fill the provided ICoolBarManager
with actions and buttons. |
void |
fillMenuBar(IMenuManager menuBar,
IWorkbenchWindow window)
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 |
UDIGMenuBuilder
public UDIGMenuBuilder()
fillMenuBar
public void fillMenuBar(IMenuManager menuBar,
IWorkbenchWindow window)
- 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)
- 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