|
Re: customise plugin.xml [message #1746033 is a reply to message #1745460] |
Thu, 20 October 2016 16:32  |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Xtext uses dependency injection to set up the infrastructure of your language.
The MyLanguageExtensionFactory makes sure that the injector is used to create an instance of the implementationClass at runtime.
In order to get your implementation in, you have to extend PsiStructureViewFactory, and bind your implementation to the class PsiStructureViewFactory in the MyLanguageIdeaModule, e.g. by adding
Class<? extends PsiStructureViewFactory> bindPsiStructureViewFactory() {
return MyLanguageStructureViewFactory
}
See also the Xtext documentation on dependency injection.
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Powered by
FUDForum. Page generated in 0.02303 seconds