Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » weird behavior from the navigator(s) ?
weird behavior from the navigator(s) ? [message #195288] Wed, 02 July 2008 06:24 Go to next message
Eclipse UserFriend
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 #195355 is a reply to message #195288] Wed, 02 July 2008 07:23 Go to previous messageGo to next message
Eclipse UserFriend
Hello Mous,

Try setting "generateDomainModelNavigator" property to "false" for all the
subdiagrams. This property sould be on only for one "main" diagram of this
meta-model.

-----------------
Alex Shatalin
Re: weird behavior from the navigator(s) ? [message #195372 is a reply to message #195355] Wed, 02 July 2008 07:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Thanks Alex!

As efficient as usual! It works! :D

Regards
Re: weird behavior from the navigator(s) ? [message #195560 is a reply to message #195288] Thu, 03 July 2008 05:35 Go to previous messageGo to next message
Eclipse UserFriend
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 07:49 Go to previous message
Eclipse UserFriend
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
Previous Topic:How can modify my model element after every save
Next Topic:dynamic property combo fill
Goto Forum:
  


Current Time: Fri Jul 04 10:21:51 EDT 2025

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

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

Back to the top