Can't regenerate with GMF 1.0.1 [message #58659] |
Tue, 03 October 2006 09:13  |
Eclipse User |
|
|
|
Originally posted by: contact.noelios.com
Hi,
I've just upgraded to Eclipse/Callisto 3.2.1 and when I try to
regenerate my "*.gmfgen" files from the map files, I get some weird
errors (see below).
Any idea how to fix them?
Thanks,
Jerome
Diagnosis of
org.eclipse.gmf.codegen.gmfgen.impl.GenEditorGeneratorImpl@1f523a3 {platform:/resource/com.supplyinsight.designer/model/source. gmfgen#Source}
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
The feature is already initialized by another 'GenFeatureValueSpec'
in the sequence
|
|
|
|
|
Re: Can't regenerate with GMF 1.0.1 [message #58785 is a reply to message #58761] |
Tue, 03 October 2006 10:40   |
Eclipse User |
|
|
|
Jerome,
You can 'initialize two different attributes of the same element in a map
file'.
But you can not initialize the same attribute multiple times in a single
FeatureSeqInitializer
instance. There always was such a constraint.
Could you post please a corresponding fragment from your gmfgen, which
causes the problems?
/Radek
On Tue, 03 Oct 2006 16:30:43 +0200, Jerome Louvel <contact@noelios.com>
wrote:
> Hi Radek,
>
> That's true, I have multiple sections like that in my *.gmfgen file:
>
> <domainInitializer
> xsi:type="gmfmap:FeatureSeqInitializer">
> <initializers
> body="ReaderType::Alien">
> <feature
> xsi:type="ecore:EAttribute"
> href="model.ecore#//Reader/type"/>
> </initializers>
> <initializers
> body="'Reader'">
> <feature
> xsi:type="ecore:EAttribute"
> href="model.ecore#//Reader/name"/>
> </initializers>
> </domainInitializer>
>
> Now my question is: how can we initialize two different attributes of
> the same element in a map file?
>
> Thanks,
> Jerome
>
>
> Radek Dvorak a écrit :
>> Hi Jerome,
>> It looks like your *.gmfgen contains a GenFeatureSeqInitializer with
>> multiple GenFeatureValueSpec
>> elements bound to the same feature.
>> Regards,
>> /Radek
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
Can't initialize multiple attributes (Was: Can't regenerate with GMF 1.0.1) [message #58810 is a reply to message #58785] |
Tue, 03 October 2006 10:52   |
Eclipse User |
|
|
|
Originally posted by: contact.noelios.com
Radek,
Ok, this is probably not a 1.0 -> 1.0.1 related issue then. I now
remember that I was adding these extra initializations just before
upgrading: sorry for the confusion.
As for the fragment, the one that I gave in my previous email has the
problem:
- first attribute: "model.ecore#//Reader/type"
- second attribute: "model.ecore#//Reader/name"
Am I missing something obvious?
Thanks,
Jerome
Radek Dvorak wrote :
> Jerome,
>
> You can 'initialize two different attributes of the same element in a
> map file'.
> But you can not initialize the same attribute multiple times in a single
> FeatureSeqInitializer
> instance. There always was such a constraint.
>
> Could you post please a corresponding fragment from your gmfgen, which
> causes the problems?
>
> /Radek
>
> On Tue, 03 Oct 2006 16:30:43 +0200, Jerome Louvel <contact@noelios.com>
> wrote:
>
>> Hi Radek,
>>
>> That's true, I have multiple sections like that in my *.gmfgen file:
>>
>> <domainInitializer
>> xsi:type="gmfmap:FeatureSeqInitializer">
>> <initializers
>> body="ReaderType::Alien">
>> <feature
>> xsi:type="ecore:EAttribute"
>> href="model.ecore#//Reader/type"/>
>> </initializers>
>> <initializers
>> body="'Reader'">
>> <feature
>> xsi:type="ecore:EAttribute"
>> href="model.ecore#//Reader/name"/>
>> </initializers>
>> </domainInitializer>
>>
>> Now my question is: how can we initialize two different attributes of
>> the same element in a map file?
>>
>> Thanks,
>> Jerome
|
|
|
Re: Can't initialize multiple attributes (Was: Can't regenerate with GMF 1.0.1) [message #58887 is a reply to message #58810] |
Tue, 03 October 2006 11:24   |
Eclipse User |
|
|
|
What I had in mind is a fragment of your gmfgen model as your original =
post contains
'Diagnosis of =
org.eclipse.gmf.codegen.gmfgen.impl.GenEditorGeneratorImpl@1f523a3{platf=
orm:/resource/com.supplyinsight.designer/model/source.gmfgen #Source}'
Your gmfmap part looks OK, so I believe there is some sort of discrepanc=
y =
in the gmfgen.
Or do you get any problem markers also for the .gmfmap model?
/Radek
On Tue, 03 Oct 2006 16:52:31 +0200, Jerome Louvel <contact@noelios.com> =
=
wrote:
> Radek,
>
> Ok, this is probably not a 1.0 -> 1.0.1 related issue then. I now =
> remember that I was adding these extra initializations just before =
> upgrading: sorry for the confusion.
>
> As for the fragment, the one that I gave in my previous email has the =
=
> problem:
> - first attribute: "model.ecore#//Reader/type"
> - second attribute: "model.ecore#//Reader/name"
>
> Am I missing something obvious?
>
> Thanks,
> Jerome
>
>
> Radek Dvorak wrote :
>> Jerome,
>> You can 'initialize two different attributes of the same element in=
a =
>> map file'.
>> But you can not initialize the same attribute multiple times in a =
>> single FeatureSeqInitializer
>> instance. There always was such a constraint.
>> Could you post please a corresponding fragment from your gmfgen, whi=
ch =
>> causes the problems?
>> /Radek
>> On Tue, 03 Oct 2006 16:30:43 +0200, Jerome Louvel =
>> <contact@noelios.com> wrote:
>>
>>> Hi Radek,
>>>
>>> That's true, I have multiple sections like that in my *.gmfgen file:=
>>>
>>> <domainInitializer
>>> xsi:type=3D"gmfmap:FeatureSeqInitializer">
>>> <initializers
>>> body=3D"ReaderType::Alien">
>>> <feature
>>> xsi:type=3D"ecore:EAttribute"
>>> href=3D"model.ecore#//Reader/type"/>
>>> </initializers>
>>> <initializers
>>> body=3D"'Reader'">
>>> <feature
>>> xsi:type=3D"ecore:EAttribute"
>>> href=3D"model.ecore#//Reader/name"/>
>>> </initializers>
>>> </domainInitializer>
>>>
>>> Now my question is: how can we initialize two different attributes o=
f =
>>> the same element in a map file?
>>>
>>> Thanks,
>>> Jerome
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05323 seconds