ResourceSorter 3.2 upwards compatability to 3.3 [message #325845] |
Thu, 28 February 2008 14:41  |
Eclipse User |
|
|
|
Originally posted by: none.gmail.com
Hello all,
I have a plugin built with 3.2 that has a view with a custom sorter that
extends the ResourceSorter class. When running the plugin in 3.3 I get
the exception pasted below when I click on a node in my view. The
exception is caused by the 3.3 platform attempting to cast my custom
viewer into a ResourceComparator, which was introduced to take the place
of the ResourceSorter in the 3.3 build. I checked the plugin migration
guide, and there is no mention of this incompatibility. There is a
mention in the API that the ResourceSorter has been deprecated though.
Anyone know a workaround?
Thanks.
Error:
eclipse.buildId=unknown
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product
com.iwaysoftware.integration.tools.integration_tools
Command-line arguments: -product
com.iwaysoftware.integration.tools.integration_tools -data C:\Documents
and
Settings\Administrator\Desktop\eclipse.3.3\workspace/../runt ime-iway_branded_ide.product
-dev file:C:/Documents and
Settings/Administrator/Desktop/eclipse.3.3/workspace/.metada ta/.plugins/org.eclipse.pde.core/iway_branded_ide.product/de v.properties
-os win32 -ws win32 -arch x86
Error
Thu Feb 28 12:14:15 EST 2008
Problems occurred when invoking code from plug-in: "org.eclipse.jface".
java.lang.ClassCastException:
com.iwaysoftware.integration.tools.views.IntegrationViewSort er cannot be
cast to org.eclipse.ui.views.navigator.ResourceComparator
at
org.eclipse.ui.views.navigator.ResourceNavigator.getComparat or(ResourceNavigator.java:592)
at
org.eclipse.ui.views.navigator.SortAndFilterActionGroup.upda teActionBars(SortAndFilterActionGroup.java:61)
at
org.eclipse.ui.views.navigator.MainActionGroup.updateActionB ars(MainActionGroup.java:319)
at
org.eclipse.ui.views.navigator.ResourceNavigator.updateActio nBars(ResourceNavigator.java:1315)
at
org.eclipse.ui.views.navigator.ResourceNavigator.handleSelec tionChanged(ResourceNavigator.java:732)
at
org.eclipse.ui.views.navigator.ResourceNavigator$4.selection Changed(ResourceNavigator.java:423)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2047)
at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1138)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1168)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:227)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.ja va:221)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02573 seconds