Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Integration with GMF Editor(Xtext and GMF)
Integration with GMF Editor [message #803589] Tue, 21 February 2012 14:43 Go to next message
k dot is currently offline k dotFriend
Messages: 4
Registered: February 2012
Junior Member
Hi erveryone this is my first post.

Since 3 days im trying to integrate the xtext editor into my GMF diagramm editor.
I planed to design a model with GMF and Xtext. There a some interesting things too, like XtextCellEditor but first i want to do it the simple way Very Happy

I found some interesting stuff in the eclipsehelp-files but this seems to be outdated.
This example only works in Helios and lower but not for Indigo (3.7). So i tried to find and understand all the changes but i dont know realy how to start. The Changes.txt dont says where to find all the changes ...

After some trys and more googleling i found an article and an other example in an old eclipse magazin (03.11) "TMF meets GMF". But first the example only runs under Helios and i cant find the described (Listinings 1-6) changes in the example files.

Finally I would be very happy if i could see the model in xtext instead of the xmi-model.

Sorry for my very bad english!
Re: Integration with GMF Editor [message #804285 is a reply to message #803589] Wed, 22 February 2012 12:29 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Hi Felix

first: note that GMF did not make it to the Indigo release. This is why
the documentation may be a bit outdated: It was not clear against which
version of GMF to build and if that would be relevant in the future at
all. In the meantime it has been restaffed and will be on for Juno.

The Eclipse article is a different approach to the same problem. I am
not sure whether you will get more support form the authors. So I'd
propose to try the Xtext documented way.

Can you be more precise about what does no longer work in Indigo as
described in the Xtext docs?

Best regards
Jan


Am 21.02.12 15:43, schrieb Felix Koehler:
> Hi erveryone this is my first post.
> Since 3 days im trying to integrate the xtext editor into my GMF
> diagramm editor.
> I planed to design a model with GMF and Xtext. There a some interesting
> things too, like XtextCellEditor but first i want to do it the simple
> way :d
>
> I found some interesting stuff in the eclipsehelp-files but this seems
> to be outdated.
> This example only works in Helios and lower but not for Indigo (3.7). So
> i tried to find and understand all the changes but i dont know realy how
> to start. The Changes.txt dont says where to find all the changes ...
>
> After some trys and more googleling i found an article and an other
> example in an old eclipse magazin (03.11) "TMF meets GMF". But first the
> example only runs under Helios and i cant find the described (Listinings
> 1-6) changes in the example files.
>
> Finally I would be very happy if i could see the model in xtext instead
> of the xmi-model.
>
> Sorry for my very bad english!


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Integration with GMF Editor [message #804305 is a reply to message #804285] Wed, 22 February 2012 13:01 Go to previous messageGo to next message
k dot is currently offline k dotFriend
Messages: 4
Registered: February 2012
Junior Member
In Indigo the hole example dont work, cause i think the libaries changed a bit.

My plan is, i want to use a GMF-Editor and my DSL-Editor to define my model.
So i can open my example.dmodel_diagram with my gmf-editor and example.dmodel with my xtext editor.
It is not necessary to edit at the same time without a save.

Thanks for ur help, also thank for help on the other channels (ur blog and twitter ... Smile


P.S.: I didn't realize that GMF is not in the indigo release ? There already some plans to integrate it again or continue ? Are there some alternatives for GMF in Indigo =?




EDIT
I found my way ... As stupid i am, i didnt saw when i rightclicked my .mydsl file there is an command initialize diagramm file -_-

now im going to fix my xtext files, so i can save the diagramm.

im totally flashed ... Btw. for other who have the same problem. u have to create first ur example.mydsl file and then rightclick it and do not create the diagram with the wizard first

[Updated on: Wed, 22 February 2012 14:28]

Report message to a moderator

Re: Integration with GMF Editor [message #805056 is a reply to message #804305] Thu, 23 February 2012 09:31 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Am 22.02.12 14:01, schrieb Felix Koehler:
> In Indigo the hole example dont work, cause i think the libaries changed
> a bit.

Yep, the example is outdated and no longer shipped with Xtext, but the
docs should still hold.

> My plan is, i want to use a GMF-Editor and my DSL-Editor to define my
> model. So i can open my example.dmodel_diagram with my gmf-editor and
> example.dmodel with my xtext editor.
> It is not necessary to edit at the same time without a save.

In this case, the docs should give you all the information you need.
http://www.eclipse.org/Xtext/documentation/2_1_0/210-emf-integration.php

>
> Thanks for ur help, also thank for help on the other channels (ur blog
> and twitter ... :)
>
>
> P.S.: I didn't realize that GMF is not in the indigo release ? There
> already some plans to integrate it again or continue ? Are there some
> alternatives for GMF in Indigo =?
>

As I said, GMF is back on the release train for Juno.
Alternatives are plain GEF or Graphiti.


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:referencing other xtext files in standalone execution of IGenerator
Next Topic:Using "weird" character literals
Goto Forum:
  


Current Time: Fri Apr 19 21:58:23 GMT 2024

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

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

Back to the top