Community
Participate
Working Groups
When I try to o;pen the Outline view I immediately get an error message: "Unable to create view: org.eclipse.ui.operations." and then a stack trace (under "Details"): java.lang.ClassCastException: org.eclipse.ui.operations.UndoActionHandler at org.eclipse.jdt.internal.ui.javaeditor.JavaOutlinePage.<init>(JavaOutlinePage.java:902) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createOutlinePage(JavaEditor.java:2408) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.getAdapter(JavaEditor.java:2477) at org.eclipse.ui.views.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:128) at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:315) at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:613) at org.eclipse.ui.part.PageBookView.showBootstrapPart(PageBookView.java:756) at org.eclipse.ui.part.PageBookView.createPartControl(PageBookView.java:397) at org.eclipse.ui.views.contentoutline.ContentOutline.createPartControl(ContentOutline.java:118) at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:305) at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:180) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:551) at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1655) at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:930) at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:913) at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3144) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3141) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3119) at org.eclipse.ui.internal.ShowViewAction.run(ShowViewAction.java:76) at org.eclipse.jface.action.Action.runWithEvent(Action.java:996) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:844) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3058) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2691) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1716) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1680) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:365) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948)
Works for me. Please provide more details/steps.
Just tried various scenarios using I20050617-0010 and could not reproduce the error. Carl, please give more details. From code inspection and if the stack trace is from 3.1 RC2 it looks like the error happens when getting the "ShowJavaDoc" action: fShowJavadoc= (TextEditorAction) fEditor.getAction("ShowJavaDoc"); //$NON-NLS-1$ A wrong action seems to be at that place. Looks as if some other editor/plug-in made a mistake here and plugged in a wrong action. Do you see the problem using plain Eclipse SDK? Can you attach the full .log file? Please reopen after attaching the additional information.
Cannot reproduce on I20050617-0010-linux-gtk either.
Please also tell us which JRE you're using, see the following link for details how to gather all that information: http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-text-home/development/bug-incomplete.htm
Eclipse 3.1RC2 on linux x86 gtk and Linux x86_64 gtk with phpeclipse 1.1.4. Whenever my editor window with a php editor tab in it receives focus from X, a popup is displayed that reads "An error has occurred. See error log for more details" comes up. This happens almost every time the window is focussed. In the error log, this comes up: java.lang.ClassCastException: org.eclipse.ui.operations.UndoActionHandler at net.sourceforge.phpeclipse.phpeditor.JavaOutlinePage.<init>(JavaOutlinePage.java:888) at net.sourceforge.phpeclipse.phpeditor.PHPEditor.createOutlinePage(PHPEditor.java:3513) at net.sourceforge.phpeclipse.phpeditor.PHPEditor.getAdapter(PHPEditor.java:3726) at net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor.getAdapter(PHPUnitEditor.java:2558) at org.eclipse.ui.views.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:128) at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:315) at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:613) at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1038) at org.eclipse.core.runtime.Platform.run(Platform.java:775) at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:58) at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70) at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171) at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56) at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:108) at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2855) at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2467) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:249) at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:88) at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:214) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1045) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1026) at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1012) at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2432) at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:1881) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1354) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3386) at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4759) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1026) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1149) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2528) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1716) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1680) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:365) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) IIRC, phpeclipse is based off JDT, so this bug may be present in the plugin, but wtf do I know, I'm no java developer. Anyhow, how it gets fixed, as it's extremely annoying.
We can't do anything re comment 5. You have to file/report this against the PHP editor.
Get rid of deprecated state.
.