Home » Modeling » TMF (Xtext) » TMF and GMF 
| TMF and GMF [message #33699] | 
Tue, 24 March 2009 12:57   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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? 
>>> 
>>> 
>  
>
 |  
 |  
  |   
Goto Forum:
 
 Current Time: Mon Nov 03 20:37:16 EST 2025 
 Powered by  FUDForum. Page generated in 0.05021 seconds  
 |