Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF logic example help
GMF logic example help [message #202628] Wed, 20 August 2008 12:16 Go to next message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

Hi,

I am at the beginning of learning to use GMF.
I had a look at the Logic Example. But I didnt find the model files
(.ecore, .gmfgraph, .gmftool, .gmfmap etc.), only the executable Editor....

Can somebody tell me where i can find them?

Regards,
Manoj
Re: GMF logic example help [message #202644 is a reply to message #202628] Wed, 20 August 2008 12:24 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Manoj,

Logic Example is hand-written one.

-----------------
Alex Shatalin
Re: GMF logic example help [message #202652 is a reply to message #202644] Wed, 20 August 2008 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

Thanks Alex,

Actually, my problem is something like the following-
1. I have an Editor (mapped to canvas),which will hold only one Circuit.
2. A Circuit class (with an attribute name & a reference of other
Circuit (relation is 0..*)

When I am generating the diagram code, it is allowing me to draw ONLY
one Circuit, but not other children circuit inside the first one.

I have also gone through the GMF_Tutorial 2, but unable to implement the
same.

Looking for some serious help.

Moreover I have got another question - may be it is not the right place
to request, still - could you please tell me - how to integrate the
created diagram with existing project. So that I can use only the Editor?

Sorry for writing such a long mail.

Regards,
Manoj

Alex Shatalin wrote:
> Hello Manoj,
>
> Logic Example is hand-written one.
>
> -----------------
> Alex Shatalin
>
>
Re: GMF logic example help [message #202658 is a reply to message #202652] Wed, 20 August 2008 12:55 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Manoj,

> 2. A Circuit class (with an attribute name & a reference of other
> Circuit (relation is 0..*)
Is it a containment reference? Did you create ChildReference below main NodeMapping
for Circuit?

> place to request, still - could you please tell me - how to integrate
> the created diagram with existing project. So that I can use only the
> Editor?
Well, you can open GMF-generated diagram editor using eclipse API and editor
input parameter. Currently only FileEditorInput and URIEditorInput are supported
by generated code. If you need to include editor as a separate page into
another editor this article can be helpful for you: http://www.eclipse.org/articles/article.php?file=Article-Int egrating-EMF-GMF-Editors/index.html

-----------------
Alex Shatalin
Re: GMF logic example help [message #202674 is a reply to message #202658] Wed, 20 August 2008 13:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

Alex,

I didn't do it earlier.
Could you please tell me - what are the steps, will I have to follow
from this point? (ChildReference below main NodeMapping for Circuit)

Thanks again for giving me ideas.

Regards,
Manoj

Alex Shatalin wrote:
> Hello Manoj,
>
>> 2. A Circuit class (with an attribute name & a reference of other
>> Circuit (relation is 0..*)
>
> Is it a containment reference? Did you create ChildReference below main
> NodeMapping for Circuit?
>
>> place to request, still - could you please tell me - how to integrate
>> the created diagram with existing project. So that I can use only the
>> Editor?
>
> Well, you can open GMF-generated diagram editor using eclipse API and
> editor input parameter. Currently only FileEditorInput and
> URIEditorInput are supported by generated code. If you need to include
> editor as a separate page into another editor this article can be
> helpful for you:
> http://www.eclipse.org/articles/article.php?file=Article-Int egrating-EMF-GMF-Editors/index.html
>
>
> -----------------
> Alex Shatalin
>
>
Re: GMF logic example help [message #202682 is a reply to message #202674] Wed, 20 August 2008 14:09 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Manoj,

You have to create correct .gmfmap description of your diagram. I suppose
the folowing structure should be there:
- TopNodeReference (for top-level Circuits)
- NodeMapping (for Circuit)
- ChildReference (for child Circuit) with "referencedChild" property
pointing to the "NodeMapping" above.

And I can suggest you to try following existing tutorials once more to get
the basic understanding of gmfmap structure.

-----------------
Alex Shatalin
Re: GMF logic example help [message #202707 is a reply to message #202682] Wed, 20 August 2008 14:19 Go to previous message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

Thanks Alex.

I have already tried, its working.
One small problem is there - child circuits occupying total width of the
parent. I can not place/re-arrange them according to my choice.

Thanks again for giving such a nice idea.

Regards,
Manoj

Alex Shatalin wrote:
> Hello Manoj,
>
> You have to create correct .gmfmap description of your diagram. I
> suppose the folowing structure should be there:
> - TopNodeReference (for top-level Circuits)
> - NodeMapping (for Circuit)
> - ChildReference (for child Circuit) with "referencedChild"
> property pointing to the "NodeMapping" above.
>
> And I can suggest you to try following existing tutorials once more to
> get the basic understanding of gmfmap structure.
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:Change backgroud and palet colors
Next Topic:Connection from an element to itself (Changing of where the target gets connected)
Goto Forum:
  


Current Time: Thu Apr 25 10:53:03 GMT 2024

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

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

Back to the top