Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Xtend: How to collect all visible instances of xpand::Type?(I need to retrieve all the visible xpand2::Type elements.)
Xtend: How to collect all visible instances of xpand::Type? [message #491620] Thu, 15 October 2009 09:33 Go to next message
C is currently offline CFriend
Messages: 3
Registered: October 2009
Junior Member
Hi all,

I need to retrieve all the visible elements of xpand2::Type and not ecore::EClass. Basically, I need to collect in a list of all my ecore metaobjects, but in the form of xpand2::Type and not ecore::EClass. How to achieve this?

Another question: is there a way to get an xpand2::Type element given the corresponding ecore::EClass?

Cheers,
Cédric

[Updated on: Thu, 15 October 2009 09:33]

Report message to a moderator

Re: Xtend: How to collect all visible instances of xpand::Type? [message #492228 is a reply to message #491620] Mon, 19 October 2009 14:04 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
xpand2::Type is the type for all types (comparable to java.lang.Class)
There's no way to get all instances of a certain type.

What exactly do you want to achieve?

Sven


C schrieb:
> Hi all,
>
> I need to retrieve all the visible elements of xpand2::Type and not
> ecore::EClass. Basically, I need to collect in a list all my ecore
> metaobjects, but in the form of xpand2::Type and not ecore::EClass. How
> to achieve this?
>
> Another question: is there a way to get an xpand2::Type element given
> the corresponding ecore::EClass?
>
> Cheers,
> Cédric


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:Any update site for plugin org.eclipse.emf.mwe.ewm.core ?
Next Topic:How to escape ${expr} in JET templates?
Goto Forum:
  


Current Time: Sat Oct 12 15:52:20 GMT 2024

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

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

Back to the top