viewMenuButton.setToolTipText(XReferenceUIPlugin.getResourceString("XReferenceInplaceDialog.viewMenu.toolTipText"));
viewMenuButton.setToolTipText(XRefMessages.XReferenceInplaceDialog_viewMenu_toolTipText);
	private void createViewMenu(Composite parent) {		toolBar = new ToolBar(parent, SWT.FLAT);		ToolItem viewMenuButton = new ToolItem(toolBar, SWT.PUSH, 0);		GridData data = new GridData();		data.horizontalAlignment = GridData.END;		data.verticalAlignment = GridData.BEGINNING;		toolBar.setLayoutData(data);		viewMenuButton.setImage(JavaPluginImages				.get(JavaPluginImages.IMG_ELCL_VIEW_MENU));		viewMenuButton.setDisabledImage(JavaPluginImages				.get(JavaPluginImages.IMG_DLCL_VIEW_MENU));		viewMenuButton.setToolTipText(XReferenceUIPlugin.getResourceString("XReferenceInplaceDialog.viewMenu.toolTipText")); //$NON-NLS-1$		//Used to enable the menu to be accessed from the keyboard		// Key binding service		IWorkbenchPart part= JavaPlugin.getActivePage().getActivePart();		IWorkbenchPartSite site= part.getSite();		fKeyBindingService=  site.getKeyBindingService();		// Remember current scope and then set window context.		fKeyBindingScopes= fKeyBindingService.getScopes();		fKeyBindingService.setScopes(new String[] {IWorkbenchContextSupport.CONTEXT_ID_WINDOW});		// Create show view menu action		fShowViewMenuAction= new Action("showViewMenu") { //$NON-NLS-1$			/*			 * @see org.eclipse.jface.action.Action#run()			 */			public void run() {				showViewMenu();			}		};		fShowViewMenuAction.setEnabled(true);		fShowViewMenuAction.setActionDefinitionId("org.eclipse.ui.window.showViewMenu"); //$NON-NLS-1$		// Register action with command support		fShowViewMenuHandlerSubmission= new HandlerSubmission(null, dialogShell, null, fShowViewMenuAction.getActionDefinitionId(), new ActionHandler(fShowViewMenuAction), Priority.MEDIUM);		PlatformUI.getWorkbench().getCommandSupport().addHandlerSubmission(fShowViewMenuHandlerSubmission);				viewMenuButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				showViewMenu();			}		});	}