Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Writing files to be imported as EMF models...
Writing files to be imported as EMF models... [message #930622] Tue, 02 October 2012 13:49 Go to next message
joseph reddington is currently offline joseph reddingtonFriend
Messages: 16
Registered: January 2012
Junior Member
So I tried asking this question at SE (can't give link because too new to this site) - but didn't get very far - I suspect there might be a good chance of a response here...

I'd like to generate an Eclipse EMF model in a custom tool (entirely outside of eclipse) and then save it to a format that eclipse can import and use as an EMF model. I'm looking for recommendations of what format might be a good candiate. It would be great if the format could be of a type can is stored in a text file and is (fairly) humon-readable. Also it would be good if there was, in some sense, a grammar available for the format...

Any ideas?
Re: Writing files to be imported as EMF models... [message #930705 is a reply to message #930622] Tue, 02 October 2012 14:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Joseph,<br>
<br>
Some type of XML format seems a good candidate.  All models can
serialized to and from an XMI representation.  Also, you can produce
an Ecore model from an XML Schema and then you'll be able to read
and write instances that conform to the schema:<br>
<blockquote><a
href="http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html">Tutorial:
Generating an EMF Model using XML Schema</a><br>
</blockquote>
And of course a schema is a grammar that can be used to validate the
XML, and there's well-defined standard, so that seems a good
approach.<br>
<br>
<br>
<div class="moz-cite-prefix">On 02/10/2012 3:49 PM, joseph
reddington wrote:<br>
</div>
<blockquote cite="mid:k4erdf$jcr$1@xxxxxxxxe.org" type="cite">So
I tried asking this question at SE (can't give link because too
new to this site) - but didn't get very far - I suspect there
might be a good chance of a response here... <br>
I'd like to generate an Eclipse EMF model in a custom tool
(entirely outside of eclipse) and then save it to a format that
eclipse can import and use as an EMF model. I'm looking for
recommendations of what format might be a good candiate. It would
be great if the format could be of a type can is stored in a text
file and is (fairly) humon-readable. Also it would be good if
there was, in some sense, a grammar available for the format...
<br>
<br>
Any ideas?
<br>
</blockquote>
<br>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Writing files to be imported as EMF models... [message #930728 is a reply to message #930705] Tue, 02 October 2012 15:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

XML is clearly the best choice, but if human readability is very
important you can choose from Xcore, OCLinEcore or Emfatic as well.

Regards

Ed Willink

On 02/10/2012 16:58, Ed Merks wrote:
> Joseph,
>
> Some type of XML format seems a good candidate. All models can
> serialized to and from an XMI representation. Also, you can produce
> an Ecore model from an XML Schema and then you'll be able to read and
> write instances that conform to the schema:
>
> Tutorial: Generating an EMF Model using XML Schema
> <http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html>
>
> And of course a schema is a grammar that can be used to validate the
> XML, and there's well-defined standard, so that seems a good approach.
>
>
> On 02/10/2012 3:49 PM, joseph reddington wrote:
>> So I tried asking this question at SE (can't give link because too
>> new to this site) - but didn't get very far - I suspect there might
>> be a good chance of a response here...
>> I'd like to generate an Eclipse EMF model in a custom tool (entirely
>> outside of eclipse) and then save it to a format that eclipse can
>> import and use as an EMF model. I'm looking for recommendations of
>> what format might be a good candiate. It would be great if the format
>> could be of a type can is stored in a text file and is (fairly)
>> humon-readable. Also it would be good if there was, in some sense, a
>> grammar available for the format...
>>
>> Any ideas?
>
Re: Writing files to be imported as EMF models... [message #931333 is a reply to message #930728] Wed, 03 October 2012 05:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Ed,

Yes, it wasn't clear if he meant Ecore models or instances of Ecore
models...


On 02/10/2012 5:25 PM, Ed Willink wrote:
> Hi
>
> XML is clearly the best choice, but if human readability is very
> important you can choose from Xcore, OCLinEcore or Emfatic as well.
>
> Regards
>
> Ed Willink
>
> On 02/10/2012 16:58, Ed Merks wrote:
>> Joseph,
>>
>> Some type of XML format seems a good candidate. All models can
>> serialized to and from an XMI representation. Also, you can produce
>> an Ecore model from an XML Schema and then you'll be able to read and
>> write instances that conform to the schema:
>>
>> Tutorial: Generating an EMF Model using XML Schema
>> <http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html>
>>
>> And of course a schema is a grammar that can be used to validate the
>> XML, and there's well-defined standard, so that seems a good approach.
>>
>>
>> On 02/10/2012 3:49 PM, joseph reddington wrote:
>>> So I tried asking this question at SE (can't give link because too
>>> new to this site) - but didn't get very far - I suspect there might
>>> be a good chance of a response here...
>>> I'd like to generate an Eclipse EMF model in a custom tool (entirely
>>> outside of eclipse) and then save it to a format that eclipse can
>>> import and use as an EMF model. I'm looking for recommendations of
>>> what format might be a good candiate. It would be great if the
>>> format could be of a type can is stored in a text file and is
>>> (fairly) humon-readable. Also it would be good if there was, in some
>>> sense, a grammar available for the format...
>>>
>>> Any ideas?
>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Writing files to be imported as EMF models... [message #936907 is a reply to message #931333] Mon, 08 October 2012 13:14 Go to previous message
joseph reddington is currently offline joseph reddingtonFriend
Messages: 16
Registered: January 2012
Junior Member
Thank you kindly everyone - for all of you help Smile
Previous Topic:Problem with the DawnAcoreDiagramEditor Class
Next Topic:Display other properties in EMF tree editor
Goto Forum:
  


Current Time: Wed Apr 24 21:08:05 GMT 2024

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

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

Back to the top