fShowViewMenuHandlerSubmission= new HandlerSubmission(null, getShell(), null, fShowViewMenuAction.getActionDefinitionId(), new ActionHandler(fShowViewMenuAction), Priority.MEDIUM); PlatformUI.getWorkbench().getCommandSupport().addHandlerSubmission(fShowViewMenuHandlerSubmission);
addHandlerAndKeyBindingSupport();
	protected Control createTitleMenuArea(Composite parent) {		fViewMenuButtonComposite= (Composite) super.createTitleMenuArea(parent);		// If there is a header, then the filter text must be created		// underneath the title and menu area.		if (hasHeader()) {			fFilterText= createFilterText(parent);		}		// Create a key binding for showing the dialog menu		// 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() {				showDialogMenu();			}		};		fShowViewMenuAction.setEnabled(true);		fShowViewMenuAction.setActionDefinitionId("org.eclipse.ui.window.showViewMenu"); //$NON-NLS-1$		// Register action with command support		fShowViewMenuHandlerSubmission= new HandlerSubmission(null, getShell(), null, fShowViewMenuAction.getActionDefinitionId(), new ActionHandler(fShowViewMenuAction), Priority.MEDIUM);		PlatformUI.getWorkbench().getCommandSupport().addHandlerSubmission(fShowViewMenuHandlerSubmission);		return fViewMenuButtonComposite;	}