Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » same qualifiedName in ecore files
same qualifiedName in ecore files [message #648741] Fri, 14 January 2011 11:05 Go to next message
chuck  is currently offline chuck Friend
Messages: 160
Registered: July 2010
Senior Member
i have a problem...when i lunch my editor i have 2 ecore metamodel in workspace where are specified PrimitiveTypes in both files....when i use, for example type Integer my editor give me "Couldn't resolve reference to EDataType 'Integer'....

many thx
Re: same qualifiedName in ecore files [message #648748 is a reply to message #648741] Fri, 14 January 2011 12:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
Hi,

as always: more context please.
What are you doing? Can you provide some Sample Code? ...

Update: had a look at org.eclipse.xtext.ecore.EcoreResourceDescription seems a bug since only a simple name is exported there.
	private static final class Switch extends EcoreSwitch<IEObjectDescription> {
		@Override
		public IEObjectDescription caseENamedElement(ENamedElement object) {
			return new EObjectDescription(object.getName(), object, null);
		}
	}



~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 14 January 2011 12:41]

Report message to a moderator

Re: same qualifiedName in ecore files [message #648800 is a reply to message #648748] Fri, 14 January 2011 14:48 Go to previous messageGo to next message
chuck  is currently offline chuck Friend
Messages: 160
Registered: July 2010
Senior Member
thx... the problem is that...now i solved renaming in one of two metamodel Integer type...because is the same conceptually... i don't know if there is another resolution...
Re: same qualifiedName in ecore files [message #648828 is a reply to message #648800] Fri, 14 January 2011 16:41 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
Hi,

the other soltutions is to change the way how xtext creates IEObjectDescriptions for EDataTypes.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:mwe2 workflow and EMF stuff
Next Topic:[MWE2] How to execute components in parallel?
Goto Forum:
  


Current Time: Sat Apr 27 01:45:13 GMT 2024

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

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

Back to the top