Skip to main content



      Home
Home » Modeling » UML2 » Feature 'eAnnotations' not found.
Feature 'eAnnotations' not found. [message #1858311] Tue, 28 March 2023 08:46 Go to next message
Eclipse UserFriend
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 14:11 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 17:41:11 EDT 2025

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

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

Back to the top