how to customize the XtextBuilder [message #1009557] |
Fri, 15 February 2013 05:07  |
Eclipse User |
|
|
|
Hi,
I have a language (Xyzzy) up and running and want to tweak the builder for it.
I subclassed the XtextBuilder to XyzzyBuilder and added the following to XyzzyRuntimeModule:
public Class<? extends IncrementalProjectBuilder> bindIncrementalProjectBuilder() {
return XyzzyBuilder.class;
}
But now I am getting a lot of these errors:
1) No implementation for org.eclipse.core.runtime.IExtensionRegistry was bound.
while locating org.eclipse.core.runtime.IExtensionRegistry
for field at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.extensionRegistry(Unknown Source)
while locating org.eclipse.xtext.builder.impl.RegistryBuilderParticipant
for field at org.eclipse.xtext.builder.impl.XtextBuilder.participant(Unknown Source)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:55)
1 error
I am not too familiar with Guice yet so I might be forgetting something or doing something stupid. I found Xtext's SharedModule class that seems to play a role here but I have no idea how to make it fly. I even tried this (giving me the same errors):
public Class<? extends IncrementalProjectBuilder> bindIncrementalProjectBuilder() {
return XtextBuilder.class; // return original builder !!
}
Any hints or pointers?
Thanks,
Tom
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04119 seconds