[Solved] How to configure a custom QualifiedNameProvider? [message #879797] |
Thu, 31 May 2012 21:28 |
Scott Finnie Messages: 94 Registered: October 2011 |
Member |
|
|
I've created a custom QualifiedName provider (extends DefaultDeclarativeQualifiedNameProvider) and configured in the Runtime module as follows:
public class OoaRuntimeModule extends org.domainmodels.AbstractOoaRuntimeModule {
@Override
public void configure(Binder binder) {
super.configure(binder);
binder
.bind(IQualifiedNameProvider.class)
.to(OoaQualifiedNameProvider.class);
}
}
When I try to create a runtime instance however Guice throws an exception:
1) A binding to org.eclipse.xtext.naming.IQualifiedNameProvider was already configured at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:55).
at org.domainmodels.OoaRuntimeModule.configure(OoaRuntimeModule.java:27)
I tried commenting out the fragment in the .mwe2 file but to no avail.
//fragment = exporting.QualifiedNamesFragment {}
What am I missing? Thanks.
[Updated on: Fri, 01 June 2012 07:36] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02954 seconds