Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Implicit static extensions(like all the [...]Extensions classes in org.eclipse.xtext.xbase.lib)
Implicit static extensions [message #1749410] Tue, 06 December 2016 12:00 Go to next message
Thomas Kohler is currently offline Thomas KohlerFriend
Messages: 15
Registered: November 2016
Junior Member

I'm looking for the correct way to implicit import several classes as static extensions to my xbase based DSL.

For example classes like "org.eclipse.xtext.xbase.lib.ListExtensions" from the "org.eclipse.xtext.xbase.lib.jar" are implicit imported, but own classes have to be imported using an import statement like "import static extension my.libraries.LibXyz.*" to be visible in xbase Expressions.

I want to determine the possible static extension classes out of the package hirachy and a special mark on entities/classes which provide implicit static extensions.

Thank you,
Re: Implicit static extensions [message #1749411 is a reply to message #1749410] Tue, 06 December 2016 12:24 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14496
Registered: July 2009
Senior Member

can you elaborate the package structure thing

simply subclass and bind ImplicitlyImportedFeatures could work.
alternatively you might dig into FeatureScopes class

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Single Ecore domain model, two conflicting serializations, now what?
Next Topic:Warnings when compiling xtext with Maven
Goto Forum:

Current Time: Sat Jun 03 19:11:36 GMT 2023

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

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

Back to the top