Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » ClassCastException in NavigatorContentProvider
ClassCastException in NavigatorContentProvider [message #136199] Fri, 15 June 2007 10:40 Go to next message
Norbert  Schöpke is currently offline Norbert SchöpkeFriend
Messages: 63
Registered: July 2009
Member
Hello
I have weird problem with my generated diagram navigator.
When I open a diagram node in the navigator tree (by clicking the + icon) a ClassCastException occurs in
XXX_NavigatorContentProvider.selectViewsByType(Collection views, String type).
Since I use diagram partitioning and have model and diagrams in same file, this "views" collection contains one model
node, one diagram node for the "root" or overview diagram plus one diagram node for each partitioned diagram.
The CCE is thrown when casting the model node to View (I'll post the stacktrace as separate reply).
While debugging my GMF editor, the exception seems to be swallowed and the model node is shown in the tree as normal.
However when starting the editor as runtime, it hangs upon opening the tree.

Two questions:
1. What might be causing this CCE?
2. How can I hide all the diagram nodes from the tree view, can I do that in the .gmfgen? I only want to show the model.

Norbert Schöpke
Re: ClassCastException in NavigatorContentProvider [message #139578 is a reply to message #136199] Tue, 26 June 2007 17:54 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Norbert,

> The CCE is thrown when casting the model node to View (I'll post the
> stacktrace as separate reply).
Can you please post a stacktrace here?

> 1. What might be causing this CCE?
Have to have at least exception stacktrace to answer this question. :-)

> 2. How can I hide all the diagram nodes from the tree view, can I do
> that in the .gmfgen? I only want to show the model.
It is not possible to generate domain model navigator and not generate diagram
navigator now, but you can try to remove all the childReferences from GenNavcigator
object in your .gmfgen model then generated navigator should be empty.

Another onption is - you can switch off content provider for diagram files
on runtime using Project Explorer filters.

-----------------
Alex Shatalin
Previous Topic:an error when generate gmfgen model from gmfmap model
Next Topic:defined by default appearance unchangeable?
Goto Forum:
  


Current Time: Wed Jan 15 04:52:29 GMT 2025

Powered by FUDForum. Page generated in 0.03595 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top