Java Code Examples for org.eclipse.ui.internal.WorkbenchWindow#getMenuBarManager()

The following examples show how to use org.eclipse.ui.internal.WorkbenchWindow#getMenuBarManager() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PluginConfigManage.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
@SuppressWarnings("restriction")
public PluginConfigManage() {
	pluginXmlLocation = ResourcesPlugin.getWorkspace().getRoot().getLocation()
			.append(PluginConstants.PC_pluginConfigLocation).toOSString();
	WorkbenchWindow window = (WorkbenchWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	parentManager = window.getMenuBarManager();
	shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
}
 
Example 2
Source File: PluginConfigManage.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
@SuppressWarnings("restriction")
public PluginConfigManage() {
	pluginXmlLocation = ResourcesPlugin.getWorkspace().getRoot().getLocation()
			.append(PluginConstants.PC_pluginConfigLocation).toOSString();
	WorkbenchWindow window = (WorkbenchWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	parentManager = window.getMenuBarManager();
	shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
}
 
Example 3
Source File: PluginConfigManage.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
@SuppressWarnings("restriction")
public PluginConfigManage(String pluginXmlLocation) {
	this.pluginXmlLocation = pluginXmlLocation;
	WorkbenchWindow window = (WorkbenchWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	parentManager = window.getMenuBarManager();
}
 
Example 4
Source File: PluginConfigManage.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
@SuppressWarnings("restriction")
public PluginConfigManage(String pluginXmlLocation) {
	this.pluginXmlLocation = pluginXmlLocation;
	WorkbenchWindow window = (WorkbenchWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	parentManager = window.getMenuBarManager();
}