Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF instance
EMF instance [message #657829] Fri, 04 March 2011 09:11 Go to next message
No real name is currently offline No real nameFriend
Messages: 42
Registered: December 2010
Member
when I create an instance EMF with wizard, my.library file is written in this form:

<?xml version="1.0" encoding="UTF-8"?>
<library:Library xmlns:library="http://www.example.eclipse.org/Library">
<name>libst</name>
<writers>
<name>Jeff Zoline</name>
</writers>
<books>
<title>green line</title>
<pages>250</pages>
<author>Jeff Zoline</author>
</books>
</library:Library>


but when I create it programmatically, my.library file is written in this form:


<?xml version="1.0" encoding="ASCII"?>
<library:Library xmlns:library="http://www.example.eclipse.org/Library" name="libst">
<writers name="Jeff Zoline"/>
<books title="green line" pages="250" author="Jeff Zoline"/>
</library:Library>






So how can I have the file my.library programmatically like creating with wizard?

[Updated on: Fri, 04 March 2011 09:18]

Report message to a moderator

Re: EMF instance [message #657891 is a reply to message #657829] Fri, 04 March 2011 14:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33146
Registered: July 2009
Senior Member
It all comes down to which resource factory is creating which type of
resource with which options. The changes you show below are most likely
affected by the use of OPTION_EXTENDED_META_DATA.


ST wrote:
> when I create an instance EMF with wizard, my.library file is written
> in this form:
>
> <?xml version="1.0" encoding="ASCII"?>
> <library:Library
> xmlns:library="http://www.example.eclipse.org/Library" name="libst">
> <writers name="mar"/>
> <books title="green line" author="mik5"/>
> </library:Library>
>
>
> but when I create it programmatically, my.library file is written in
> this format:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <library:Library xmlns:library="http://www.example.eclipse.org/Library">
> <writers>
> <name>vict</name>
> </writers>
> <books>
> <title>mis</title>
> <pages>25</pages>
> <author>vic</author>
> </books>
> </library:Library>
>
>
>
> So how can I have the file my.library programmatically like creating
> with wizard?


Ed Merks
Professional Support: https://www.macromodeling.com/
icon14.gif  Re: EMF instance [message #657904 is a reply to message #657891] Fri, 04 March 2011 14:54 Go to previous message
No real name is currently offline No real nameFriend
Messages: 42
Registered: December 2010
Member
thx Ed
Previous Topic:Emf property sheet problem
Next Topic:masterdetails update treeviewer
Goto Forum:
  


Current Time: Sat May 11 01:25:22 GMT 2024

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

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

Back to the top