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
Hello,

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,
Tom
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: 14665
Registered: July 2009
Senior Member
hi,

can you elaborate the package structure thing

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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Single Ecore domain model, two conflicting serializations, now what?
Next Topic:Warnings when compiling xtext with Maven
Goto Forum:
  


Current Time: Fri Apr 19 22:50:32 GMT 2024

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

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

Back to the top