Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [oaw] metamodel referencing
[oaw] metamodel referencing [message #375957] Fri, 16 February 2007 20:20 Go to next message
Hans Boerstra is currently offline Hans BoerstraFriend
Messages: 48
Registered: July 2009
Member
We have a metamodel for our DSL that references the UML2 metamodel.
When we refer to a UML2 metamodel element like this
http://www.eclipse.org/uml2/2.0.0/UML#//Property
It works fine when using a model based on this metamodel in a oaw workflow.
The standard ecore editor saves the UML2 references like this however:
.../../../plugin/org.eclipse.uml2.uml/model/UML.ecore#//Prop erty
and that trips up the oaw workflow with an exception like stated below.

Is there a way to make these relative metamodel references work in oaw?
I did put my vote up in bugzilla for emf to have a choice between relative
or absolute referencing registered plugin models, but in the mean time it
would be great if you could support the relative referencing as well.


Regards,

Hans



1663 ERROR WorkflowRunner -
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value
'MyElementName' is not legal.
(file:/C:/Documents%20and%20Settings/Hans/Eclipse%203.3%20pr ojects/my.generator.project/bin/model/test.model,
3, 105)
.......
at org.openarchitectureware.emf.XmiReader.invoke(XmiReader.java :83)
at
org.openarchitectureware.workflow.container.CompositeCompone nt.internalInvoke(CompositeComponent.java:81)
at
org.openarchitectureware.workflow.container.CompositeCompone nt.invoke(CompositeComponent.java:69)
at
org.openarchitectureware.workflow.WorkflowRunner.executeWork flow(WorkflowRunner.java:236)
at
org.openarchitectureware.workflow.WorkflowRunner.run(Workflo wRunner.java:177)
at
org.openarchitectureware.workflow.WorkflowRunner.main(Workfl owRunner.java:126)
Re: [oaw] metamodel referencing [message #375960 is a reply to message #375957] Tue, 20 February 2007 19:27 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1771
Registered: July 2009
Senior Member
Hi Hans,

this is a known bug.

Sven

Hans Boerstra wrote:
> We have a metamodel for our DSL that references the UML2 metamodel.
> When we refer to a UML2 metamodel element like this
> http://www.eclipse.org/uml2/2.0.0/UML#//Property
> It works fine when using a model based on this metamodel in a oaw workflow.
> The standard ecore editor saves the UML2 references like this however:
> ../../../plugin/org.eclipse.uml2.uml/model/UML.ecore#//Prope rty
> and that trips up the oaw workflow with an exception like stated below.
>
> Is there a way to make these relative metamodel references work in oaw?
> I did put my vote up in bugzilla for emf to have a choice between relative
> or absolute referencing registered plugin models, but in the mean time it
> would be great if you could support the relative referencing as well.
>
>
> Regards,
>
> Hans
>
>
>
> 1663 ERROR WorkflowRunner -
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value
> 'MyElementName' is not legal.
> (file:/C:/Documents%20and%20Settings/Hans/Eclipse%203.3%20pr ojects/my.generator.project/bin/model/test.model,
> 3, 105)
> ......
> at org.openarchitectureware.emf.XmiReader.invoke(XmiReader.java :83)
> at
> org.openarchitectureware.workflow.container.CompositeCompone nt.internalInvoke(CompositeComponent.java:81)
> at
> org.openarchitectureware.workflow.container.CompositeCompone nt.invoke(CompositeComponent.java:69)
> at
> org.openarchitectureware.workflow.WorkflowRunner.executeWork flow(WorkflowRunner.java:236)
> at
> org.openarchitectureware.workflow.WorkflowRunner.run(Workflo wRunner.java:177)
> at
> org.openarchitectureware.workflow.WorkflowRunner.main(Workfl owRunner.java:126)
>
>


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: [oaw] metamodel referencing [message #562643 is a reply to message #375957] Tue, 20 February 2007 19:27 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1771
Registered: July 2009
Senior Member
Hi Hans,

this is a known bug.

Sven

Hans Boerstra wrote:
> We have a metamodel for our DSL that references the UML2 metamodel.
> When we refer to a UML2 metamodel element like this
> http://www.eclipse.org/uml2/2.0.0/UML#//Property
> It works fine when using a model based on this metamodel in a oaw workflow.
> The standard ecore editor saves the UML2 references like this however:
> ../../../plugin/org.eclipse.uml2.uml/model/UML.ecore#//Prope rty
> and that trips up the oaw workflow with an exception like stated below.
>
> Is there a way to make these relative metamodel references work in oaw?
> I did put my vote up in bugzilla for emf to have a choice between relative
> or absolute referencing registered plugin models, but in the mean time it
> would be great if you could support the relative referencing as well.
>
>
> Regards,
>
> Hans
>
>
>
> 1663 ERROR WorkflowRunner -
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value
> 'MyElementName' is not legal.
> (file:/C:/Documents%20and%20Settings/Hans/Eclipse%203.3%20pr ojects/my.generator.project/bin/model/test.model,
> 3, 105)
> ......
> at org.openarchitectureware.emf.XmiReader.invoke(XmiReader.java :83)
> at
> org.openarchitectureware.workflow.container.CompositeCompone nt.internalInvoke(CompositeComponent.java:81)
> at
> org.openarchitectureware.workflow.container.CompositeCompone nt.invoke(CompositeComponent.java:69)
> at
> org.openarchitectureware.workflow.WorkflowRunner.executeWork flow(WorkflowRunner.java:236)
> at
> org.openarchitectureware.workflow.WorkflowRunner.run(Workflo wRunner.java:177)
> at
> org.openarchitectureware.workflow.WorkflowRunner.main(Workfl owRunner.java:126)
>
>


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:[Announce] A Proposal and Prototype for an Eclipse Model Registry
Next Topic:xText Startup Questions
Goto Forum:
  


Current Time: Mon Dec 22 10:42:35 GMT 2014

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

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