Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How do I get a IEObjectDescription from EObject?
How do I get a IEObjectDescription from EObject? [message #700125] Fri, 22 July 2011 21:34 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Hi all,

I have an own implementation of ResourceDescriptionManager.
Since I migrated to xtext 2.0.0 one method is missing:
Iterable<IEObjectDescription> result = transform(contents, new Function<EObject, IEObjectDescription>() {
public IEObjectDescription apply(EObject from) {
EObjectDescription.create(from., element)
return createIEObjectDescription(from);
}
});


the createIEObjectDescription(...) is not found any more.

What can I use instead?

Thanks for your help

Best regards
Markus
Re: How do I get a IEObjectDescription from EObject? [message #700134 is a reply to message #700125] Fri, 22 July 2011 21:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13876
Registered: July 2009
Senior Member
Hi,

EObjectDescription.create(name, element) gets you an IEObjectDescription
so what do you want to do more?

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How do I get a IEObjectDescription from EObject? [message #700694 is a reply to message #700134] Sat, 23 July 2011 22:43 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Hi

Thank you for your reply,

yes, I saw, but what shall I put in as parameter name (FQN, Simple name....). Is this a functional parameter which has impact to feature or is this just informational.

Parameter eobject is clear.

Thanks for your help
Regards
Markus
Re: How do I get a IEObjectDescription from EObject? [message #700696 is a reply to message #700694] Sat, 23 July 2011 22:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13876
Registered: July 2009
Senior Member
Hi,

this is the name under which the object is put to the index and thus can be referenced, so of course it is not informal. so use the name you want to reference the stuff with.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Sat, 23 July 2011 22:48]

Report message to a moderator

Re: How do I get a IEObjectDescription from EObject? [message #701195 is a reply to message #700696] Sun, 24 July 2011 19:48 Go to previous message
Markus Oley is currently offline Markus OleyFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Ok,
thank you,
that helped me a lot..

Regards
Markus
Previous Topic:Ecore to JvmTypes mapping
Next Topic:Restricting the scope / code suggestion
Goto Forum:
  


Current Time: Sun Apr 11 05:17:13 GMT 2021

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

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

Back to the top