XML annotations [message #162553] |
Sat, 24 November 2007 15:28  |
Eclipse User |
|
|
|
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 #162729 is a reply to message #162721] |
Mon, 26 November 2007 13:39  |
Eclipse User |
|
|
|
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
>>>
|
|
|
Powered by
FUDForum. Page generated in 0.04872 seconds