[Xbase] Auto-extensions [message #1005783] |
Mon, 28 January 2013 12:23  |
Eclipse User |
|
|
|
Hello,
7 Languages For The JVM "Little Tortoise" language make use of an static auto-extension for Math and ColorConstants classes:
http://www.eclipse.org/Xtext/7languagesDoc.html#tortoise_additons
All imported extension methods from those two classes are static. This is equivalent to:
import static extension java.lang.Math
import static extension org.eclipse.draw2d.ColorConstants
My question is, how to add non-static auto-extension? Something like:
class MyClass {
extension MyExtensionClass = new MyExtensionClass
}
Thank you very much!
Regards,
Boris Brodski
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05196 seconds