Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Converting EMF in XMI to GMF
Converting EMF in XMI to GMF [message #211764] Fri, 21 November 2008 11:57 Go to next message
Eclipse UserFriend
Hello community,
We are trying to migrate our existing model in EMF to GMF so that
we can use the graphical format of GMF in place of EMF tree editor. But we
want to is convert the models already in xmi format to their graphical
representation in GMF. Please I will like to know if is possible and how
can it be done. Nice meeting you all as this is my first time here.

Thanks.
Re: Converting EMF in XMI to GMF [message #211771 is a reply to message #211764] Fri, 21 November 2008 12:17 Go to previous messageGo to next message
Eclipse UserFriend
Hello David,

You can define graphical representation for your model and generate diagram
editor for it. "Initialize_XXX_Diagram" popup menu action will be generated
as a part of the diagram code, so you'll be able to create new diagram associatd
with the model stored in existing .<yourModel> xmi file.

-----------------
Alex Shatalin
Re: Converting EMF in XMI to GMF [message #211778 is a reply to message #211771] Fri, 21 November 2008 12:37 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for ur reply Alex,
I am totally new to GMF.pls can u give me some tips on how to define the
graphical representation for the model and generate a diagram editor. Thanks
alot


On 21/11/2008 18:17, in article
3c3172e6288028cb1a1c869da6e4@news.eclipse.org, "Alex Shatalin"
<vano@borland.com> wrote:

> Hello David,
>
> You can define graphical representation for your model and generate diagram
> editor for it. "Initialize_XXX_Diagram" popup menu action will be generated
> as a part of the diagram code, so you'll be able to create new diagram
> associatd
> with the model stored in existing .<yourModel> xmi file.
>
> -----------------
> Alex Shatalin
>
>
Re: Converting EMF in XMI to GMF [message #211786 is a reply to message #211778] Fri, 21 November 2008 13:05 Go to previous messageGo to next message
Eclipse UserFriend
Hello David,

I suggest you reading tutorials first: http://wiki.eclipse.org/GMF_Documentation.

-----------------
Alex Shatalin
Re: Converting EMF in XMI to GMF [message #211961 is a reply to message #211786] Mon, 24 November 2008 12:55 Go to previous messageGo to next message
Eclipse UserFriend
Thanks a lot. I have gone thru the tutorials and generated the plugin from
gmf generator. Now how can I get the already existing xmi in emf to new GMF
format.. Thanks


On 21/11/2008 19:05, in article
3c3172e6288068cb1a233ad3697c@news.eclipse.org, "Alex Shatalin"
<vano@borland.com> wrote:

> Hello David,
>
> I suggest you reading tutorials first:
> http://wiki.eclipse.org/GMF_Documentation.
>
> -----------------
> Alex Shatalin
>
>
Re: Converting EMF in XMI to GMF [message #212018 is a reply to message #211961] Tue, 25 November 2008 06:17 Go to previous messageGo to next message
Eclipse UserFriend
Hello David,
> from gmf generator. Now how can I get the already existing xmi in emf
> to new GMF format.. Thanks
So, if existing xmi files were stored by EMF (you can open each of these
files using EMF-generated editor for your EMF model) then you can right-click
on this file in project explorer and call "Initialize_XXX_Diagram" action
to get corresponding diagram file initialized with the model elements stored
inside selected model file.

-----------------
Alex Shatalin
Re: Converting EMF in XMI to GMF [message #212217 is a reply to message #212018] Wed, 26 November 2008 06:27 Go to previous messageGo to next message
Eclipse UserFriend
Yes thanks .. I have done the Initialize_XXX_Diagram on the file n it did
the conversion to diagram. But the diagrams are not still showing. Maybe I
have gotten something wrong in the gmfgraph file. Anyway thanks for your
support.


On 25/11/2008 12:17, in article
3c3172e62894c8cb1d0ee1b9daaa@news.eclipse.org, "Alex Shatalin"
<vano@borland.com> wrote:

> Hello David,
>> from gmf generator. Now how can I get the already existing xmi in emf
>> to new GMF format.. Thanks
> So, if existing xmi files were stored by EMF (you can open each of these
> files using EMF-generated editor for your EMF model) then you can right-click
> on this file in project explorer and call "Initialize_XXX_Diagram" action
> to get corresponding diagram file initialized with the model elements stored
> inside selected model file.
>
> -----------------
> Alex Shatalin
>
>
do an xslt every time model will be saved [message #212233 is a reply to message #212217] Wed, 26 November 2008 12:31 Go to previous message
Eclipse UserFriend
Originally posted by: mattia.lambertini.studio.unibo.it

Hi,

I want to know if is possible to change the basic behaviour of the
function that "save" and "load" the instances of my model.
I want to transform the instance of the model that i am working on in
another format using an xslt transformation and save a copy in my
project every time i type ctrl+s.

And i can do an xslt every time i open a file so the file that i am
opening become a correct instance of my model?

I just want to know if is it possible.
Previous Topic:Creating an editor that is not freeform
Next Topic:[Announce] GMF 2.2.0 I200811191931 is available
Goto Forum:
  


Current Time: Thu Jul 17 20:07:27 EDT 2025

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

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

Back to the top