bars.setGlobalActionHandler(ITextEditorActionConstants.UNDO, fUndo); bars.setGlobalActionHandler(ITextEditorActionConstants.REDO, fRedo);
	public void createControl(Composite parent) {				Tree tree= new Tree(parent, SWT.MULTI);		ILabelProvider lprovider= new AppearanceAwareLabelProvider(			AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS |  JavaElementLabels.F_APP_TYPE_SIGNATURE,			AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS,			AppearanceAwareLabelProvider.getDecorators(true, new OverrideIndicatorLabelDecorator(null))		);		fOutlineViewer= new JavaOutlineViewer(tree);				fOutlineViewer.setContentProvider(new ChildrenProvider());		fOutlineViewer.setLabelProvider(new DecoratingLabelProvider(lprovider, PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator()));				Object[] listeners= fSelectionChangedListeners.getListeners();		for (int i= 0; i < listeners.length; i++) {			fSelectionChangedListeners.remove(listeners[i]);			fOutlineViewer.addSelectionChangedListener((ISelectionChangedListener) listeners[i]);		}						MenuManager manager= new MenuManager(fContextMenuID, fContextMenuID);		manager.setRemoveAllWhenShown(true);		manager.addMenuListener(new IMenuListener() {			public void menuAboutToShow(IMenuManager manager) {				contextMenuAboutToShow(manager);			}		});		fMenu= manager.createContextMenu(tree);		tree.setMenu(fMenu);				IPageSite site= getSite();		site.registerContextMenu(JavaPlugin.getDefault().getPluginId() + ".outline", manager, fOutlineViewer); //$NON-NLS-1$		site.setSelectionProvider(fOutlineViewer);		// we must create the groups after we have set the selection provider to the site		fOpenAction= new OpenAction(site);		site.getSelectionProvider().addSelectionChangedListener(fOpenAction);		fActionGroups= new CompositeActionGroup(new ActionGroup[] {				new OpenViewActionGroup(this), 				new ShowActionGroup(this), 				fCCPActionGroup= new CCPActionGroup(this),				new RefactorActionGroup(this), 				new GenerateActionGroup(this),				new JavaSearchActionGroup(this)});						// register global actions		IActionBars bars= site.getActionBars();				bars.setGlobalActionHandler(JdtActionConstants.SHOW_PREVIOUS_PROBLEM, fPreviousError);		bars.setGlobalActionHandler(JdtActionConstants.SHOW_NEXT_PROBLEM, fNextError);		bars.setGlobalActionHandler(JdtActionConstants.SHOW_JAVA_DOC, fShowJavadoc);		bars.setGlobalActionHandler(IJavaEditorActionConstants.TOGGLE_PRESENTATION, fTogglePresentation);		bars.setGlobalActionHandler(IJavaEditorActionConstants.TOGGLE_TEXT_HOVER, fToggleTextHover);				fActionGroups.fillActionBars(bars);		bars.setGlobalActionHandler(JdtActionConstants.OPEN, fOpenAction);		IStatusLineManager statusLineManager= site.getActionBars().getStatusLineManager();		if (statusLineManager != null) {			StatusBarUpdater updater= new StatusBarUpdater(statusLineManager);			fOutlineViewer.addSelectionChangedListener(updater);		}				registerToolbarActions();						fOutlineViewer.setInput(fInput);			fOutlineViewer.getControl().addKeyListener(new KeyAdapter() {			public void keyPressed(KeyEvent e) {				handleKeyReleased(e);			}		});				initDragAndDrop();	}