Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » annotation references(references in annotations are not supported)
annotation references [message #558227] Fri, 10 September 2010 11:30 Go to next message
Colin Snook is currently offline Colin Snook
Messages: 17
Registered: July 2009
Location: University of Southampton
Junior Member
Hi,

I thought I'd try Emfatic.. However, it does not work correctly with my ecore model due to the EAnnotations I have. My annotations are for adding references to other meta-classes. They have no details.

I saw...
Detail-less annotations [message #128743] from 2008.
Is this still not resolved?

However, even if I add a dummy detail, my references are discarded by Emfatic.
Re: annotation references [message #558566 is a reply to message #558227] Mon, 13 September 2010 10:04 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4014
Registered: July 2009
Senior Member
Hi Colin

You might want to try http://wiki.eclipse.org/MDT/OCLinEcore which has a
more OMG-like syntax that supports OCL and has, what I think is a, more
natural presentation of associations.

Still a WIP evolving to full UML class-like support for Indigo.

Regards

Ed Willink

On 10/09/2010 16:30, Colin Snook wrote:
> Hi,
>
> I thought I'd try Emfatic.. However, it does not work correctly with my
> ecore model due to the EAnnotations I have. My annotations are for
> adding references to other meta-classes. They have no details.
>
> I saw...
> Detail-less annotations [message #128743] from 2008.
> Is this still not resolved?
>
> However, even if I add a dummy detail, my references are discarded by
> Emfatic.
>
Re: annotation references [message #558642 is a reply to message #558566] Mon, 13 September 2010 14:49 Go to previous messageGo to next message
Colin Snook is currently offline Colin Snook
Messages: 17
Registered: July 2009
Location: University of Southampton
Junior Member
Ed,

Thanks for the suggestion but I already tried OCLinEcore and that doesn't seem to work either:

When I open my ecore file with OCLinEcore it shows my annotation references (which are to a meta-class within a sub-package in another ecore model) but it cannot resolve them and flags them as errors and if I save it throws them away.

Multiple markers at this line
- Couldn't resolve reference to ModelElementCS 'Machine'.
- The feature 'ref' of 'org.eclipse.ocl.examples.xtext.base.baseCST.impl.ModelEleme ntCSRefImpl @19fbfd3a {platform:/resource/ac.soton.eventb.iumlb.domain/model/iumlb .ecore#//@packages.0/@classifiers.0/@annotations.0/@referenc es.0}'
contains an unresolved proxy ' org.eclipse.ocl.examples.xtext.base.baseCST.impl.BoundClassC SImpl@1d82e71{platform:/resource/ac.soton.eventb.iumlb.domai n/model/iumlb.ecore#xtextLink_:://@packages.0/@classifiers.0 /@annotations.0/@references.0::http://www.eclipse.org/ocl/3. 0.0/BaseCST«ModelElementCSRef«0::/0}'


3.0.0.v201005061704

Colin

Re: annotation references [message #558644 is a reply to message #558227] Mon, 13 September 2010 14:56 Go to previous messageGo to next message
Colin Snook is currently offline Colin Snook
Messages: 17
Registered: July 2009
Location: University of Southampton
Junior Member
Actually, I think I may have installed an old version of Emfatic
( 0.3.0.200810132307) which is recommended here: http://wiki.eclipse.org/Emfatic. But i can't find a newer release.


Re: annotation references [message #558999 is a reply to message #558642] Wed, 15 September 2010 05:38 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4014
Registered: July 2009
Senior Member
Hi Colin

> Thanks for the suggestion but I already tried OCLinEcore and that
> doesn't seem to work either:

There are a few (rather embarassing) OCLinEcore bug fixes in MDT/OCL 3.0.1.

Can you send me your Ecore (in confidence if you like) to
ed_at_willink_dot_me_dot_uk so that I can include another interesting
Ecore in my test suite?

Regards

Ed Willink
Re: annotation references [message #623192 is a reply to message #558566] Mon, 13 September 2010 14:49 Go to previous messageGo to next message
Colin Snook is currently offline Colin Snook
Messages: 17
Registered: July 2009
Location: University of Southampton
Junior Member
Ed,

Thanks for the suggestion but I already tried OCLinEcore and that doesn't seem to work either:

When I open my ecore file with OCLinEcore it shows my annotation references (which are to a meta-class within a sub-package in another ecore model) but it cannot resolve them and flags them as errors and if I save it throws them away.

Multiple markers at this line
- Couldn't resolve reference to ModelElementCS 'Machine'.
- The feature 'ref' of mailto: 'org.eclipse.ocl.examples.xtext.base.baseCST.impl.ModelEleme ntCSRefImpl @19fbfd3a {platform:/resource/ac.soton.eventb.iumlb.domain/model/iumlb .ecore#//@packages.0/@classifiers.0/@annotations.0/@referenc es.0}'
contains an unresolved proxy ' org.eclipse.ocl.examples.xtext.base.baseCST.impl.BoundClassC SImpl@1d82e71{platform:/resource/ac.soton.eventb.iumlb.domai n/model/iumlb.ecore#xtextLink_:://@packages.0/@classifiers.0 /@annotations.0/@references.0::http://www.eclipse.org/ocl/3. 0.0/BaseCST«ModelElementCSRef«0::/0}'


3.0.0.v201005061704

Colin
Re: annotation references [message #623209 is a reply to message #623192] Wed, 15 September 2010 05:38 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4014
Registered: July 2009
Senior Member
Hi Colin

> Thanks for the suggestion but I already tried OCLinEcore and that
> doesn't seem to work either:

There are a few (rather embarassing) OCLinEcore bug fixes in MDT/OCL 3.0.1.

Can you send me your Ecore (in confidence if you like) to
ed_at_willink_dot_me_dot_uk so that I can include another interesting
Ecore in my test suite?

Regards

Ed Willink
Re: annotation references [message #634234 is a reply to message #623192] Wed, 20 October 2010 16:48 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4014
Registered: July 2009
Senior Member
Hi Colin

> When I open my ecore file with OCLinEcore it shows my annotation
> references (which are to a meta-class within a sub-package in another
> ecore model) but it cannot resolve them and flags them as errors and if
> I save it throws them away.

Thanks for sending the repro. Finally gpt round to looking at it.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=328288 raised.

Regards

Ed Willink
Previous Topic:[EMF Refactor] Reference searches
Next Topic:how to load an XML-Instance into Ecore and access its attribute values
Goto Forum:
  


Current Time: Fri Aug 01 09:57:09 EDT 2014

Powered by FUDForum. Page generated in 0.02411 seconds