Skip to main content



      Home
Home » Modeling » TMF (Xtext) » TMF and GMF
TMF and GMF [message #33699] Tue, 24 March 2009 12:57 Go to next message
Eclipse UserFriend
Hi,

Does xtext support generating corresponding GMF plugins? Since the EMF
ecore file can be used to create a GMF plugin, the question is, would the
outcome TMF and GMF plugins be synchronised at runtime? For example, when
we edit the GMF diagram, does it automatically update the TMF text file
and vice versa? Is the same applied to an EMF editor?
Re: TMF and GMF [message #33733 is a reply to message #33699] Tue, 24 March 2009 14:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi Auerliano,

yes, you can edit a model that was created with an Xtext editor with a
GMF Editor. It is stored in plain text.
However, Xtext supports some features, that other editors are not aware
of (namely classpath URIs). Furthermore some issues with serialization
are still pending. But if you try to avoid problematic constructs in
your concrete textual syntax, then you can use generic (EMF), graphical
(GMF) and textual (Xtext) editors in parallel.

Regards,
Sebastian


Auerliano schrieb:
> Hi,
>
> Does xtext support generating corresponding GMF plugins? Since the EMF
> ecore file can be used to create a GMF plugin, the question is, would
> the outcome TMF and GMF plugins be synchronised at runtime? For example,
> when we edit the GMF diagram, does it automatically update the TMF text
> file and vice versa? Is the same applied to an EMF editor?
>
>
Re: TMF and GMF [message #33767 is a reply to message #33733] Tue, 24 March 2009 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Sebastian Zarnekow wrote:

Hi Sebastian,

When you say 'it is stored in plain text', do you mean the xml file shared
between EMF, GMF and TMF editors? When I create a *.dmodel file for the
domainmodel example, I don't see any xml file being created as well, but
EMF and GMF do share the xml file. Am I missing something?

> Hi Auerliano,

> yes, you can edit a model that was created with an Xtext editor with a
> GMF Editor. It is stored in plain text.
> However, Xtext supports some features, that other editors are not aware
> of (namely classpath URIs). Furthermore some issues with serialization
> are still pending. But if you try to avoid problematic constructs in
> your concrete textual syntax, then you can use generic (EMF), graphical
> (GMF) and textual (Xtext) editors in parallel.

> Regards,
> Sebastian


> Auerliano schrieb:
>> Hi,
>>
>> Does xtext support generating corresponding GMF plugins? Since the EMF
>> ecore file can be used to create a GMF plugin, the question is, would
>> the outcome TMF and GMF plugins be synchronised at runtime? For example,
>> when we edit the GMF diagram, does it automatically update the TMF text
>> file and vice versa? Is the same applied to an EMF editor?
>>
>>
Re: TMF and GMF [message #33801 is a reply to message #33767] Wed, 25 March 2009 03:14 Go to previous message
Eclipse UserFriend
Hi Auerliano,

no I didn't mean an XML file, but the dmodel-file itself.

It should be possible to open the dmodel-file with the generic ecore
editor, modify it and press save.

Regards,
Sebastian

Auerliano schrieb:
> Sebastian Zarnekow wrote:
>
> Hi Sebastian,
>
> When you say 'it is stored in plain text', do you mean the xml file
> shared between EMF, GMF and TMF editors? When I create a *.dmodel file
> for the domainmodel example, I don't see any xml file being created as
> well, but EMF and GMF do share the xml file. Am I missing something?
>
>> Hi Auerliano,
>
>> yes, you can edit a model that was created with an Xtext editor with a
>> GMF Editor. It is stored in plain text.
>> However, Xtext supports some features, that other editors are not
>> aware of (namely classpath URIs). Furthermore some issues with
>> serialization are still pending. But if you try to avoid problematic
>> constructs in your concrete textual syntax, then you can use generic
>> (EMF), graphical (GMF) and textual (Xtext) editors in parallel.
>
>> Regards,
>> Sebastian
>
>
>> Auerliano schrieb:
>>> Hi,
>>>
>>> Does xtext support generating corresponding GMF plugins? Since the
>>> EMF ecore file can be used to create a GMF plugin, the question is,
>>> would the outcome TMF and GMF plugins be synchronised at runtime? For
>>> example, when we edit the GMF diagram, does it automatically update
>>> the TMF text file and vice versa? Is the same applied to an EMF editor?
>>>
>>>
>
>
Previous Topic:[xtext] Retrieving root DSL EObject from the generated DSL editor
Next Topic:Bugzilla
Goto Forum:
  


Current Time: Sun Sep 14 04:00:58 EDT 2025

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

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

Back to the top