Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » XML annotations
XML annotations [message #162553] Sat, 24 November 2007 15:28 Go to next message
Eclipse UserFriend
Originally posted by: smjo85.gmail.com

Hello,

My .ecore file has annotations in order to modify XML file (GMF
generation).

The .ecore is:
- Top
- rel:X
- X

And my XML file is:
<rel/> when I click X in the diagram.

How can I use <X/> instead of <rel/>?

I used annotation but it did not operate.

regards,
John Smith
Re: XML annotations [message #162561 is a reply to message #162553] Sat, 24 November 2007 16:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

John,

Are you using the generated resource resource factory to create the
resources used to load and save your instance? If you added the
annotations after already having generated the model's plugin.xml you
should delete the MANIFEST.MF and the plugin.xml and regenerate them to
ensure your generated factory is being registered.


John Smith wrote:
> Hello,
>
> My .ecore file has annotations in order to modify XML file (GMF
> generation).
>
> The .ecore is:
> - Top
> - rel:X
> - X
>
> And my XML file is:
> <rel/> when I click X in the diagram.
>
> How can I use <X/> instead of <rel/>?
> I used annotation but it did not operate.
>
> regards,
> John Smith
>
Re: XML annotations [message #162721 is a reply to message #162561] Mon, 26 November 2007 12:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

Hello,

I have a problem with the resourcec factory, I added annotation to my
ecore model and then I generated the model code. when generating and
runing the diagram, the file which contain the model elements
"default.logic" use the xmi format and not xml and I'm sure that GMF
dont use the generated factory so
How can I force him to use the desired factory ?? and I'm asking if GMF
use a default factory ??

thx in advance !
Ali


Ed Merks a écrit :
> John,
>
> Are you using the generated resource resource factory to create the
> resources used to load and save your instance? If you added the
> annotations after already having generated the model's plugin.xml you
> should delete the MANIFEST.MF and the plugin.xml and regenerate them to
> ensure your generated factory is being registered.
>
>
> John Smith wrote:
>> Hello,
>>
>> My .ecore file has annotations in order to modify XML file (GMF
>> generation).
>>
>> The .ecore is:
>> - Top
>> - rel:X
>> - X
>>
>> And my XML file is:
>> <rel/> when I click X in the diagram.
>>
>> How can I use <X/> instead of <rel/>?
>> I used annotation but it did not operate.
>>
>> regards,
>> John Smith
>>
Re: XML annotations [message #162729 is a reply to message #162721] Mon, 26 November 2007 13:39 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Ali,

This is more of a GMF question now but I thought they supported
separating out the diagram information and the model information into
separate resources and in your model's resource uses the extension
you've registered for your factory, the framework should use your
registered factory to read it. If you look at your generate resource
factory, you'll see that it sets a bunch of options and you could set
those options on any resource, even the one GMF is using be default.


Ali Akar wrote:
> Hello,
>
> I have a problem with the resourcec factory, I added annotation to my
> ecore model and then I generated the model code. when generating and
> runing the diagram, the file which contain the model elements
> "default.logic" use the xmi format and not xml and I'm sure that GMF
> dont use the generated factory so
> How can I force him to use the desired factory ?? and I'm asking if
> GMF use a default factory ??
>
> thx in advance !
> Ali
>
>
> Ed Merks a écrit :
>> John,
>>
>> Are you using the generated resource resource factory to create the
>> resources used to load and save your instance? If you added the
>> annotations after already having generated the model's plugin.xml you
>> should delete the MANIFEST.MF and the plugin.xml and regenerate them
>> to ensure your generated factory is being registered.
>>
>>
>> John Smith wrote:
>>> Hello,
>>>
>>> My .ecore file has annotations in order to modify XML file (GMF
>>> generation).
>>>
>>> The .ecore is:
>>> - Top
>>> - rel:X
>>> - X
>>>
>>> And my XML file is:
>>> <rel/> when I click X in the diagram.
>>>
>>> How can I use <X/> instead of <rel/>?
>>> I used annotation but it did not operate.
>>>
>>> regards,
>>> John Smith
>>>
Previous Topic:Adding layout manager
Next Topic:GMF and RAP
Goto Forum:
  


Current Time: Mon May 12 09:59:11 EDT 2025

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

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

Back to the top