Loading classes in Xbase-based DSL with interpreter [message #1802421] |
Fri, 08 February 2019 15:01 |
Hallvard Traetteberg Messages: 673 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
I've developed a DSL based on Xbase and have written a Java model inferrer that seems to correctly resolve classes that the enclosing project depends on. In particular, it finds classes and methods in a registered extension class.
I've also written an interpreter and an action to invoke it in the DSL editor. The interpreter, however, seems to use the classloader of the DSL UI project, so it differs from what the editor resolves. I know I can add the extension class (or the bundle it's in) to the UI project dependencies, but I also want it to pick up the classes in the enclosing project, i.e. the same as those seen by the editor. I notice the interpreter has a setClassLoader method, is there a pre-made classloader I can use to get the desired effect?
Regards,
Hallvard
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02769 seconds