Skip to main content



      Home
Home » Modeling » EMF » EMF instance
EMF instance [message #657829] Fri, 04 March 2011 04:11 Go to next message
Eclipse UserFriend
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 04:18] by Moderator

Re: EMF instance [message #657891 is a reply to message #657829] Fri, 04 March 2011 09:05 Go to previous messageGo to next message
Eclipse UserFriend
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?
icon14.gif  Re: EMF instance [message #657904 is a reply to message #657891] Fri, 04 March 2011 09:54 Go to previous message
Eclipse UserFriend
thx Ed
Previous Topic:Emf property sheet problem
Next Topic:masterdetails update treeviewer
Goto Forum:
  


Current Time: Sun Jul 27 10:12:37 EDT 2025

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

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

Back to the top