weird behavior from the navigator(s) ? [message #195288] |
Wed, 02 July 2008 10:24 |
Eclipse User |
|
|
|
Originally posted by: zippo29.hotmail.fr
Hi again!
I am working now on Eclipse3.3 and I am experiencing a weird behavior from
the navigator(s) of my project. I have created a main editor and
partitionned it into 2 sub-editors following the hierarchy. Th e weird
thing is that each navigator of my subeditorss recreate the diagram I am
working on:
Metamodel X : ClasseA -> has a main editor
ClasseB -> has a sub-editor
ClasseC -> has a sub-editor
ClasseD
In the ProjectExplorer view I have 2 files: default.x and
default.x_diagram. I begin to create my model. I save and then when click
on default.x, I have something like this :
+ default.x
+ClasseA
+ClasseA
+ClasseA
I have done some tests. It appears only if a navigator exists and I have
as many nodes as the navigators. I did some changes in the genmodel but it
did not change anything.
Does someone experienced the same problem or has a solution?
Thanks in adavnce
|
|
|
|
|
Re: weird behavior from the navigator(s) ? [message #195560 is a reply to message #195288] |
Thu, 03 July 2008 09:35 |
Eclipse User |
|
|
|
Originally posted by: zippo29.hotmail.fr
Hello!
I post here because it's also a weird behavior of the navigator! In fact,
I have posted here:
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg13246.html
a question about how to open sub editors from the navigator.
By this time, i was working on Eclipse3.4_GMF2.1M6a. Now I am working on
Eclipse3.3 with the stable release of GMF.
I have always had the same behavior from the navigator (no direct access
to sub-diagrams).Today, I discovered that my navigator created something
like this:
default.x_diagram
+A-a node for the root of the main editor
+ child node
+child node (B1 and B2 are a children of this node)-
Note : I double clik on the last node to open a sub-editor where I create
B1 and B2. No access to this one!
+B1-a node for the root of the sub-editor
+ child node
+child node
+B2-a node for the root of the sub-editor
+ child node
+child node
And by double cliking on the A or B I have access to the corresponding
diagram.
It would be a great news if I knew how the original problem "resolved
it-self".
Can someone give me a kind of clue on how gmf did this ? I think there is
an property in the gmfgen that did it but I don't know wich one.
|
|
|
Re: weird behavior from the navigator(s) ? [message #195616 is a reply to message #195560] |
Thu, 03 July 2008 11:49 |
Eclipse User |
|
|
|
Originally posted by: zippo29.hotmail.fr
Resolved it!!
If you give the sub editor the same file extension (in the sub-editor
gmfgen ) as the main editor (in the editor gmfgen )the navigator shows the
sub diagrams that exist.
but I don't really understand any-way ... If I understand it before some
one explain it, i will post here.
Thanks all
|
|
|
Powered by
FUDForum. Page generated in 0.03533 seconds