Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » [GMF|OAW] imcomplete gmfmap metamodel
[GMF|OAW] imcomplete gmfmap metamodel [message #381813] Mon, 18 February 2008 22:53 Go to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
I am generating gmfmap models from an other model using oAW/xTend and the
EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
operations and properties for some gmfmap elements. these are at least:

mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
mappings::CanvasMapping::setPalette(tooldef::Palette)
mappings::LinkMapping::setTool(tooldef::CreationTool)
mappings::NodeMapping::setTool(tooldef::CreationTool)

mappings::LabelMapping::features

All of these are accessible when executing the oaw workflow but they are
marked as errors in editor. other features do work as expected (I havn't
tried all). I don't know if the error is in oaw or gmf.

Regards

Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #381814 is a reply to message #381813] Tue, 19 February 2008 10:44 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Enrico,

Are you using OAW code generator included into GMF or original version?
Which GMF version do you use?

-----------------
Alex Shatalin
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #381815 is a reply to message #381813] Tue, 19 February 2008 11:43 Go to previous messageGo to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
hi enrico,

at least for the first 2 there's no such _method_ in the map metamodel.
There's a compartment _attribute_ in compartment mapping, so you might
want to try myCompartmentMapping.compartment = myCompartment.

does this help?

-stefan


Enrico Schnepel wrote:
> I am generating gmfmap models from an other model using oAW/xTend and the
> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
> operations and properties for some gmfmap elements. these are at least:
>
> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
> mappings::CanvasMapping::setPalette(tooldef::Palette)
> mappings::LinkMapping::setTool(tooldef::CreationTool)
> mappings::NodeMapping::setTool(tooldef::CreationTool)
>
> mappings::LabelMapping::features
>
> All of these are accessible when executing the oaw workflow but they are
> marked as errors in editor. other features do work as expected (I havn't
> tried all). I don't know if the error is in oaw or gmf.
>
> Regards
>
> Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #381816 is a reply to message #381813] Tue, 19 February 2008 12:04 Go to previous messageGo to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
for some reason, my response isn't displayed- here again:

hi enrico,

at least for the first 2 there's no such _method_ in the map metamodel.
There's a compartment _attribute_ in compartment mapping, so you might
want to try myCompartmentMapping.compartment = myCompartment.

does this help?

-stefan

Enrico Schnepel wrote:
> I am generating gmfmap models from an other model using oAW/xTend and the
> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
> operations and properties for some gmfmap elements. these are at least:
>
> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
> mappings::CanvasMapping::setPalette(tooldef::Palette)
> mappings::LinkMapping::setTool(tooldef::CreationTool)
> mappings::NodeMapping::setTool(tooldef::CreationTool)
>
> mappings::LabelMapping::features
>
> All of these are accessible when executing the oaw workflow but they are
> marked as errors in editor. other features do work as expected (I havn't
> tried all). I don't know if the error is in oaw or gmf.
>
> Regards
>
> Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #381817 is a reply to message #381814] Tue, 19 February 2008 13:05 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Hello Alex,

I am using an xtend model-to-model transformation to generate the
gmf-graph and gmf-map models out of my own model. the rest of the
gmf-workflow is the same.

I am using the following versions:
- GMF 1.0.100(20070912)/1.1.0(20070809)/2.0.1(20070921) all with build
id 2.0.1
- EMF 2.3.1(20070925)
- Eclipse Europa + all stable Updates

Regards,
Enrico

Alex Shatalin schrieb:
> Hello Enrico,
>
> Are you using OAW code generator included into GMF or original version?
> Which GMF version do you use?
>
> -----------------
> Alex Shatalin
>
>
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #381818 is a reply to message #381815] Tue, 19 February 2008 13:19 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Hello Stefan,

the way to set a reference (and attributes too) in an emf-object in
xtend/oaw is by calling the setter for this attribute. but the reference
(for reading the value) itself does not exist either. so
myCompartmentMapping.compartment = myCompartment makes a error "no
viable alternative at input 'compartment'" and
myCompartmentMapping.compartment the error "Unknown
mappings::CompartmentMapping property, variable, type or enumeration
literal 'compartment'". the latter one does work in the runtime, but not
in the editor.

Regards
Enrico

SKuhn schrieb:
> hi enrico,
>
> at least for the first 2 there's no such _method_ in the map metamodel.
> There's a compartment _attribute_ in compartment mapping, so you might
> want to try myCompartmentMapping.compartment = myCompartment.
>
> does this help?
>
> -stefan
>
>
> Enrico Schnepel wrote:
>> I am generating gmfmap models from an other model using oAW/xTend and the
>> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
>> operations and properties for some gmfmap elements. these are at least:
>>
>> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
>> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
>> mappings::CanvasMapping::setPalette(tooldef::Palette)
>> mappings::LinkMapping::setTool(tooldef::CreationTool)
>> mappings::NodeMapping::setTool(tooldef::CreationTool)
>>
>> mappings::LabelMapping::features
>>
>> All of these are accessible when executing the oaw workflow but they are
>> marked as errors in editor. other features do work as expected (I havn't
>> tried all). I don't know if the error is in oaw or gmf.
>>
>> Regards
>>
>> Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #381822 is a reply to message #381818] Thu, 21 February 2008 14:01 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
has anyone an idea?

Regards

Enrico

Enrico Schnepel schrieb:
> Hello Stefan,
>
> the way to set a reference (and attributes too) in an emf-object in
> xtend/oaw is by calling the setter for this attribute. but the reference
> (for reading the value) itself does not exist either. so
> myCompartmentMapping.compartment = myCompartment makes a error "no
> viable alternative at input 'compartment'" and
> myCompartmentMapping.compartment the error "Unknown
> mappings::CompartmentMapping property, variable, type or enumeration
> literal 'compartment'". the latter one does work in the runtime, but not
> in the editor.
>
> Regards
> Enrico
>
> SKuhn schrieb:
>> hi enrico,
>>
>> at least for the first 2 there's no such _method_ in the map
>> metamodel. There's a compartment _attribute_ in compartment mapping,
>> so you might want to try myCompartmentMapping.compartment =
>> myCompartment.
>>
>> does this help?
>>
>> -stefan
>>
>>
>> Enrico Schnepel wrote:
>>> I am generating gmfmap models from an other model using oAW/xTend and
>>> the
>>> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
>>> operations and properties for some gmfmap elements. these are at least:
>>>
>>> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
>>> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
>>> mappings::CanvasMapping::setPalette(tooldef::Palette)
>>> mappings::LinkMapping::setTool(tooldef::CreationTool)
>>> mappings::NodeMapping::setTool(tooldef::CreationTool)
>>>
>>> mappings::LabelMapping::features
>>>
>>> All of these are accessible when executing the oaw workflow but they are
>>> marked as errors in editor. other features do work as expected (I havn't
>>> tried all). I don't know if the error is in oaw or gmf.
>>>
>>> Regards
>>>
>>> Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #381825 is a reply to message #381813] Fri, 22 February 2008 14:28 Go to previous message
Stefan Bley is currently offline Stefan BleyFriend
Messages: 23
Registered: July 2009
Junior Member
Enrico Schnepel schrieb:
> I am generating gmfmap models from an other model using oAW/xTend and the
> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
> operations and properties for some gmfmap elements. these are at least:
>
> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
> mappings::CanvasMapping::setPalette(tooldef::Palette)
> mappings::LinkMapping::setTool(tooldef::CreationTool)
> mappings::NodeMapping::setTool(tooldef::CreationTool)
>
> mappings::LabelMapping::features
>
> All of these are accessible when executing the oaw workflow but they are
> marked as errors in editor. other features do work as expected (I havn't
> tried all). I don't know if the error is in oaw or gmf.
>
> Regards
>
> Enrico

Hi Enrico,

you could ask that on the openArchitectureWare forum, maybe they can
help you
http://www.openarchitectureware.org/forum

Regards, Stevy
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #606533 is a reply to message #381813] Tue, 19 February 2008 10:44 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Enrico,

Are you using OAW code generator included into GMF or original version?
Which GMF version do you use?

-----------------
Alex Shatalin
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #606534 is a reply to message #381813] Tue, 19 February 2008 11:43 Go to previous message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
hi enrico,

at least for the first 2 there's no such _method_ in the map metamodel.
There's a compartment _attribute_ in compartment mapping, so you might
want to try myCompartmentMapping.compartment = myCompartment.

does this help?

-stefan


Enrico Schnepel wrote:
> I am generating gmfmap models from an other model using oAW/xTend and the
> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
> operations and properties for some gmfmap elements. these are at least:
>
> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
> mappings::CanvasMapping::setPalette(tooldef::Palette)
> mappings::LinkMapping::setTool(tooldef::CreationTool)
> mappings::NodeMapping::setTool(tooldef::CreationTool)
>
> mappings::LabelMapping::features
>
> All of these are accessible when executing the oaw workflow but they are
> marked as errors in editor. other features do work as expected (I havn't
> tried all). I don't know if the error is in oaw or gmf.
>
> Regards
>
> Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #606535 is a reply to message #381813] Tue, 19 February 2008 12:04 Go to previous message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
for some reason, my response isn't displayed- here again:

hi enrico,

at least for the first 2 there's no such _method_ in the map metamodel.
There's a compartment _attribute_ in compartment mapping, so you might
want to try myCompartmentMapping.compartment = myCompartment.

does this help?

-stefan

Enrico Schnepel wrote:
> I am generating gmfmap models from an other model using oAW/xTend and the
> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
> operations and properties for some gmfmap elements. these are at least:
>
> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
> mappings::CanvasMapping::setPalette(tooldef::Palette)
> mappings::LinkMapping::setTool(tooldef::CreationTool)
> mappings::NodeMapping::setTool(tooldef::CreationTool)
>
> mappings::LabelMapping::features
>
> All of these are accessible when executing the oaw workflow but they are
> marked as errors in editor. other features do work as expected (I havn't
> tried all). I don't know if the error is in oaw or gmf.
>
> Regards
>
> Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #606536 is a reply to message #381814] Tue, 19 February 2008 13:05 Go to previous message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Hello Alex,

I am using an xtend model-to-model transformation to generate the
gmf-graph and gmf-map models out of my own model. the rest of the
gmf-workflow is the same.

I am using the following versions:
- GMF 1.0.100(20070912)/1.1.0(20070809)/2.0.1(20070921) all with build
id 2.0.1
- EMF 2.3.1(20070925)
- Eclipse Europa + all stable Updates

Regards,
Enrico

Alex Shatalin schrieb:
> Hello Enrico,
>
> Are you using OAW code generator included into GMF or original version?
> Which GMF version do you use?
>
> -----------------
> Alex Shatalin
>
>
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #606537 is a reply to message #381815] Tue, 19 February 2008 13:19 Go to previous message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Hello Stefan,

the way to set a reference (and attributes too) in an emf-object in
xtend/oaw is by calling the setter for this attribute. but the reference
(for reading the value) itself does not exist either. so
myCompartmentMapping.compartment = myCompartment makes a error "no
viable alternative at input 'compartment'" and
myCompartmentMapping.compartment the error "Unknown
mappings::CompartmentMapping property, variable, type or enumeration
literal 'compartment'". the latter one does work in the runtime, but not
in the editor.

Regards
Enrico

SKuhn schrieb:
> hi enrico,
>
> at least for the first 2 there's no such _method_ in the map metamodel.
> There's a compartment _attribute_ in compartment mapping, so you might
> want to try myCompartmentMapping.compartment = myCompartment.
>
> does this help?
>
> -stefan
>
>
> Enrico Schnepel wrote:
>> I am generating gmfmap models from an other model using oAW/xTend and the
>> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
>> operations and properties for some gmfmap elements. these are at least:
>>
>> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
>> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
>> mappings::CanvasMapping::setPalette(tooldef::Palette)
>> mappings::LinkMapping::setTool(tooldef::CreationTool)
>> mappings::NodeMapping::setTool(tooldef::CreationTool)
>>
>> mappings::LabelMapping::features
>>
>> All of these are accessible when executing the oaw workflow but they are
>> marked as errors in editor. other features do work as expected (I havn't
>> tried all). I don't know if the error is in oaw or gmf.
>>
>> Regards
>>
>> Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #606541 is a reply to message #381818] Thu, 21 February 2008 14:01 Go to previous message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
has anyone an idea?

Regards

Enrico

Enrico Schnepel schrieb:
> Hello Stefan,
>
> the way to set a reference (and attributes too) in an emf-object in
> xtend/oaw is by calling the setter for this attribute. but the reference
> (for reading the value) itself does not exist either. so
> myCompartmentMapping.compartment = myCompartment makes a error "no
> viable alternative at input 'compartment'" and
> myCompartmentMapping.compartment the error "Unknown
> mappings::CompartmentMapping property, variable, type or enumeration
> literal 'compartment'". the latter one does work in the runtime, but not
> in the editor.
>
> Regards
> Enrico
>
> SKuhn schrieb:
>> hi enrico,
>>
>> at least for the first 2 there's no such _method_ in the map
>> metamodel. There's a compartment _attribute_ in compartment mapping,
>> so you might want to try myCompartmentMapping.compartment =
>> myCompartment.
>>
>> does this help?
>>
>> -stefan
>>
>>
>> Enrico Schnepel wrote:
>>> I am generating gmfmap models from an other model using oAW/xTend and
>>> the
>>> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
>>> operations and properties for some gmfmap elements. these are at least:
>>>
>>> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
>>> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
>>> mappings::CanvasMapping::setPalette(tooldef::Palette)
>>> mappings::LinkMapping::setTool(tooldef::CreationTool)
>>> mappings::NodeMapping::setTool(tooldef::CreationTool)
>>>
>>> mappings::LabelMapping::features
>>>
>>> All of these are accessible when executing the oaw workflow but they are
>>> marked as errors in editor. other features do work as expected (I havn't
>>> tried all). I don't know if the error is in oaw or gmf.
>>>
>>> Regards
>>>
>>> Enrico
Re: [GMF|OAW] imcomplete gmfmap metamodel [message #606544 is a reply to message #381813] Fri, 22 February 2008 14:28 Go to previous message
Stefan Bley is currently offline Stefan BleyFriend
Messages: 23
Registered: July 2009
Junior Member
Enrico Schnepel schrieb:
> I am generating gmfmap models from an other model using oAW/xTend and the
> EmfRegistryMetaModel. it is annoying to see that oaw doesn't find some
> operations and properties for some gmfmap elements. these are at least:
>
> mappings::CompartmentMapping::setCompartment(gmfgraph::Compa rtment)
> mappings::CanvasMapping::setDiagramCanvas(gmfgraph::Canvas)
> mappings::CanvasMapping::setPalette(tooldef::Palette)
> mappings::LinkMapping::setTool(tooldef::CreationTool)
> mappings::NodeMapping::setTool(tooldef::CreationTool)
>
> mappings::LabelMapping::features
>
> All of these are accessible when executing the oaw workflow but they are
> marked as errors in editor. other features do work as expected (I havn't
> tried all). I don't know if the error is in oaw or gmf.
>
> Regards
>
> Enrico

Hi Enrico,

you could ask that on the openArchitectureWare forum, maybe they can
help you
http://www.openarchitectureware.org/forum

Regards, Stevy
Previous Topic:Custom Figures & Two Figures for one EditPart
Next Topic:[Announce] Eclipse/OMG Symposium at EclipseCon 2008
Goto Forum:
  


Current Time: Fri Nov 28 12:40:36 GMT 2014

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

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