Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Feature 'eAnnotations' not found.
Feature 'eAnnotations' not found. [message #1858311] Tue, 28 March 2023 12:46 Go to next message
John Henbergs is currently offline John HenbergsFriend
Messages: 239
Registered: October 2020
Senior Member
Hi ,

I am using the Ecore based metamodel of a UML profile, and when I try to access it in XTend I get the error "Feature 'eAnnotations' not found.". Could it be because in the header it is registered
"xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML""
but the Eannotations are referencing 2.0.0?
" <eAnnotations xmi:id="_uZK_NBHVEdu19OChlR9tHg" source="http://www.eclipse.org/uml2/2.0.0/UML">"?

If so, where can I find that version of UML to also register it in Xtend?
I have registered the 3.0.0 version in Xtend.

Thank you in advance!
Re: Feature 'eAnnotations' not found. [message #1858344 is a reply to message #1858311] Wed, 29 March 2023 18:11 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Very unlikely. The eAnnotation source string is usually dated from the time of first use and never changed thereafter.

However the use of "xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"" rather than xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" suggests a very old version of UML2 that probably predates the first version of Xtend.

As always, if you don't provide a repro, it can be very hard for replies to be more than guesswork.

My best guess is that Xtend has not called UMLResourcesUtil.init() which is not surprising since Xtend is not a UML supporting tool.

Regards

Ed Willink
Previous Topic:Associations to EReferences in UML2 profile to .ecore/.genmodel
Next Topic:Programatically load and save sequence diagram
Goto Forum:
  


Current Time: Tue Apr 16 06:22:15 GMT 2024

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

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

Back to the top