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 C
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 Efftinge
Messages: 1769
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


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
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: Fri Oct 31 09:58:29 GMT 2014

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

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