Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Common Navigator ClassCastException
Common Navigator ClassCastException [message #334920] Tue, 10 March 2009 09:00 Go to next message
Gary Leask is currently offline Gary Leask
Messages: 28
Registered: July 2009
Junior Member
I used the org.eclipse.ui.viewer extension point and the Common
Navigator View template to create a Navigator.

When I created template in Eclipse 3.3 the code in ran correctly.

When I crate the code in Eclipse 3.5 I got the following error.


SafeDelegateTreeContentProvider:
Content[org.eclipse.ui.navigator.resourceContent, "Resources"]
java.lang.ClassCastException: org.eclipse.ui.navigator.MyCommonNavigator
at
org.eclipse.ui.internal.navigator.workingsets.WorkingSetsCon tentProvider.init(WorkingSetsContentProvider.java:78)
at
org.eclipse.ui.internal.navigator.extensions.SafeDelegateTre eContentProvider.init(SafeDelegateTreeContentProvider.java:1 70)
at
org.eclipse.ui.internal.navigator.extensions.NavigatorConten tExtension.internalGetContentProvider(NavigatorContentExtens ion.java:140)
at
org.eclipse.ui.internal.navigator.NavigatorContentServiceCon tentProvider.getParent(NavigatorContentServiceContentProvide r.java:435)
at
org.eclipse.ui.internal.navigator.framelist.TreeViewerFrameS ource.getParentFrame(TreeViewerFrameSource.java:118)
at
org.eclipse.ui.internal.navigator.framelist.TreeViewerFrameS ource.getFrame(TreeViewerFrameSource.java:100)
at
org.eclipse.ui.internal.navigator.framelist.UpAction.getPare ntFrame(UpAction.java:44)
at
org.eclipse.ui.internal.navigator.framelist.UpAction.update( UpAction.java:79)
at
org.eclipse.ui.internal.navigator.framelist.UpAction.<init>(UpAction.java:40)
at
org.eclipse.ui.internal.navigator.CommonNavigatorActionGroup .makeActions(CommonNavigatorActionGroup.java:103)SafeDelegat eTreeContentProvider:
Content[org.eclipse.ui.navigator.resources.workingSets, "Working Sets"]

at
org.eclipse.ui.internal.navigator.CommonNavigatorActionGroup . <init>(CommonNavigatorActionGroup.java:86)


Is there an update that fixes this problem or are there code changes
that I need to make with the new Release?

Gary
Re: Common Navigator ClassCastException [message #334926 is a reply to message #334920] Tue, 10 March 2009 11:11 Go to previous message
Francis Upton IV is currently offline Francis Upton IV
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
This is fixed in any current IBuild and will be in 3.5M6.

Gary Leask wrote:
> I used the org.eclipse.ui.viewer extension point and the Common
> Navigator View template to create a Navigator.
>
> When I created template in Eclipse 3.3 the code in ran correctly.
>
> When I crate the code in Eclipse 3.5 I got the following error.
>
>
> SafeDelegateTreeContentProvider:
> Content[org.eclipse.ui.navigator.resourceContent, "Resources"]
> java.lang.ClassCastException: org.eclipse.ui.navigator.MyCommonNavigator
> at
> org.eclipse.ui.internal.navigator.workingsets.WorkingSetsCon tentProvider.init(WorkingSetsContentProvider.java:78)
>
> at
> org.eclipse.ui.internal.navigator.extensions.SafeDelegateTre eContentProvider.init(SafeDelegateTreeContentProvider.java:1 70)
>
> at
> org.eclipse.ui.internal.navigator.extensions.NavigatorConten tExtension.internalGetContentProvider(NavigatorContentExtens ion.java:140)
>
> at
> org.eclipse.ui.internal.navigator.NavigatorContentServiceCon tentProvider.getParent(NavigatorContentServiceContentProvide r.java:435)
>
> at
> org.eclipse.ui.internal.navigator.framelist.TreeViewerFrameS ource.getParentFrame(TreeViewerFrameSource.java:118)
>
> at
> org.eclipse.ui.internal.navigator.framelist.TreeViewerFrameS ource.getFrame(TreeViewerFrameSource.java:100)
>
> at
> org.eclipse.ui.internal.navigator.framelist.UpAction.getPare ntFrame(UpAction.java:44)
>
> at
> org.eclipse.ui.internal.navigator.framelist.UpAction.update( UpAction.java:79)
>
> at
> org.eclipse.ui.internal.navigator.framelist.UpAction.<init>(UpAction.java:40)
>
> at
> org.eclipse.ui.internal.navigator.CommonNavigatorActionGroup .makeActions(CommonNavigatorActionGroup.java:103)SafeDelegat eTreeContentProvider:
> Content[org.eclipse.ui.navigator.resources.workingSets, "Working Sets"]
>
> at
> org.eclipse.ui.internal.navigator.CommonNavigatorActionGroup . <init>(CommonNavigatorActionGroup.java:86)
>
>
>
> Is there an update that fixes this problem or are there code changes
> that I need to make with the new Release?
>
> Gary


--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)

http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm

http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases


You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go


Previous Topic:How to add the red wave line?
Next Topic:Huge memory consumption of Infocenter
Goto Forum:
  


Current Time: Fri Jul 25 16:02:19 EDT 2014

Powered by FUDForum. Page generated in 0.01565 seconds