ClassCastException in NavigatorContentProvider [message #136199] |
Fri, 15 June 2007 06:40  |
Eclipse User |
|
|
|
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 13:54  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03114 seconds