#138 EasyExplore throws class cast exception with Eclipse WTP

open
nobody
None
5
2006-02-19
2006-02-19
No

This happens when you edit an XML file with WTP XML
editor, and select stuffs in the problem view...

java.lang.ClassCastException:
org.eclipse.wst.xml.core.internal.document.ElementImplat
org.sf.easyexplore.actions.EasyBaseAction.selectionChanged(EasyBaseAction.java:108)
at
org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:200)
at
org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:271)
at
org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:292)
at
org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156)
at
org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionService.java:62)
at
org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:76)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.part.MultiPageSelectionProvider.fireSelectionChanged(MultiPageSelectionProvider.java:74)
at
org.eclipse.ui.part.MultiPageEditorSite.handleSelectionChanged(MultiPageEditorSite.java:309)
at
org.eclipse.ui.part.MultiPageEditorSite$1.selectionChanged(MultiPageEditorSite.java:250)
at
org.eclipse.wst.sse.ui.StructuredTextEditor$6.run(StructuredTextEditor.java:658)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.fireSelectionChanged(StructuredTextEditor.java:656)
at
org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.handleSelectionChanged(StructuredTextEditor.java:705)
at
org.eclipse.wst.sse.ui.StructuredTextEditor$4.selectionChanged(StructuredTextEditor.java:631)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at
org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at
org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at
org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2285)
at
org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3517)
at
org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:801)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1428)
at
org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation(StructuredTextViewer.java:359)
at
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at
org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at
org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
at
org.eclipse.core.commands.Command.execute(Command.java:311)
at
org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:550)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:493)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:117)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at
org.eclipse.swt.widgets.Display.filterEvent(Display.java:919)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at
org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880)
at
org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1190)
at
org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3135)
at
org.eclipse.swt.widgets.Control.windowProc(Control.java:3038)
at
org.eclipse.swt.widgets.Display.windowProc(Display.java:3751)
at
org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
Method)
at
org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2756)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
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)

Discussion