getSite().registerContextMenu(JavaPlugin.getDefault().getPluginId() + ".outline", manager, fOutlineViewer);
	public void createControl(Composite parent) {				Tree tree= new Tree(parent, SWT.MULTI);		JavaElementLabelProvider lprovider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_PARAMETERS | JavaElementLabelProvider.SHOW_OVERLAY_ICONS | JavaElementLabelProvider.SHOW_TYPE);				fOutlineViewer= new JavaOutlineViewer(tree);				fOutlineViewer.setContentProvider(new ChildrenProvider());		fOutlineViewer.setLabelProvider(lprovider);				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);				getSite().registerContextMenu(JavaPlugin.getDefault().getPluginId() + ".outline", manager, fOutlineViewer);		getSite().setSelectionProvider(fOutlineViewer);				IStatusLineManager statusLineManager= getSite().getActionBars().getStatusLineManager();		if (statusLineManager != null) {			StatusBarUpdater updater= new StatusBarUpdater(statusLineManager);			fOutlineViewer.addSelectionChangedListener(updater);		}				registerToolbarActions();						fActionGroups= new ContextMenuGroup[] { new GenerateGroup(), new JavaSearchGroup(), new ReorgGroup() };				fOutlineViewer.setInput(fInput);			fOutlineViewer.getControl().addKeyListener(new KeyAdapter() {			public void keyPressed(KeyEvent e) {				handleKeyPressed(e);			}		});	}