Bug 17292 Inconsistent Undo behaviour for Cut/Copy/Paste in outline
Build 20020521 (freeze 1) 1) Open a java editor on some class 2) In the content outline, select a method and do Ctrl+X to cut 3) Notice in the menus, Edit->Undo and Refactor->Undo are disabled 4) Now select the type node in the content outline, and Ctrl+V to paste 5) Still, neither Undo action is enabled 6) Now click inside the editor area to give it focus. 7) Now "Edit->Undo" is possible. So, the problems are: 1) Undo is not consistent, it's available for Paste but not Cut. 2) Even when undo is possible, it only becomes enabled when the editor is activated.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
}
		});
		fMenu= manager.createContextMenu(tree);
		tree.setMenu(fMenu);
		
		IPageSite site= getSite();
		site.registerContextMenu(JavaPlugin.getDefault().getPluginId() + ".outline", manager, fOutlineViewer); 
		site.setSelectionProvider(fOutlineViewer);
		
		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)});
				
		
		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);