Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF Import project/child from an XML file
EMF Import project/child from an XML file [message #1708928] Tue, 22 September 2015 14:10 Go to next message
Teohari Simona is currently offline Teohari SimonaFriend
Messages: 40
Registered: September 2015
Member
Hello guys,

I have an XSD file from which I obtain an ecore model and a genmodel. From this I want to be able to run the application and click on "Import project" from the model explorer and load data from an XML file (based on the previous schema) and not from an XMI file. I know that this is a newbie question, but can you please help me? Just an overview would be sufficient. On web I can see many things but I cannot put them into a clear flow.
Do I need to design a new SWT main app in which I will have this load and save XML?

Thank you very much,
Simona T.
Re: EMF Import project/child from an XML file [message #1708949 is a reply to message #1708928] Tue, 22 September 2015 17:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30553
Registered: July 2009
Senior Member
You could try this tutorial with your own schema instead of the sample
from the tutorial.

On 22/09/2015 4:10 PM, Teohari Simona wrote:
> Hello guys,
>
> I have an XSD file from which I obtain an ecore model and a genmodel.
> From this I want to be able to run the application and click on
> "Import project" from the model explorer and load data from an XML
> file (based on the previous schema) and not from an XMI file. I know
> that this is a newbie question, but can you please help me? Just an
> overview would be sufficient. On web I can see many things but I
> cannot put them into a clear flow.
> Do I need to design a new SWT main app in which I will have this load
> and save XML?
>
> Thank you very much,
> Simona T.
>
Re: EMF Import project/child from an XML file [message #1708980 is a reply to message #1708949] Wed, 23 September 2015 06:36 Go to previous messageGo to next message
Teohari Simona is currently offline Teohari SimonaFriend
Messages: 40
Registered: September 2015
Member
Thank you for the response, but which tutorial are you referring to? Do you have a link?
Re: EMF Import project/child from an XML file [message #1708993 is a reply to message #1708980] Wed, 23 September 2015 07:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30553
Registered: July 2009
Senior Member
Oops, forgot the link:
https://www.eclipse.org/articles/Article-EMF-goes-RCP/rcp.html

This tutorial explains how to generate an RCP application. If you just
want to generate an editor that runs in the IDE, that's of course
possible too. That's what's generated if you don't modify the GenModel
properties to specify you want an RCP application instead....

On 23/09/2015 8:36 AM, Teohari Simona wrote:
> Thank you for the response, but which tutorial are you referring to?
> Do you have a link?
Previous Topic:Applying ATL Transformation
Next Topic:EMF Forms notification in e4
Goto Forum:
  


Current Time: Tue Oct 22 22:32:49 GMT 2019

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

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

Back to the top