content assist problem [message #868603] |
Wed, 02 May 2012 09:29 |
|
Hi
I wonder if I can do a thing! Suppose I have my interface and want to instantiate in IMyinterfaces MyDslProposalProvider I did this thing ... I'll post my code
public class MyDslProposalProvider extends AbstractMyDslProposalProvider {
Injector injector=Guice.createInjector();
IMyinterfaces nameistance=injector.getInstance(IMyinterfaces.class)
//after
@Override
public void completeAttributo_Name(EObject model, Assignment assignment,
ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
for (String proposal :nameistance.getProposalFor(ProposalType.ATTRIBBUTE)) {
acceptor.accept(createCompletionProposal(proposal, context));
}
}
First of all I could do this thing .... is right?? or how should I do?
The infrastructure is built correctly, but when I start the application
appropriately tells me that there are these errors
1 [main] ERROR org.xtext.example.mydsl.ui.MyDslExecutableExtensionFactory - com.google.inject.ProvisionException: Guice provision errors:
1) No implementation for org.xtext.example.mydsl.ui.contentassist.IMyinterfaces was bound.
I think because the implementation is lacking .... how am I to do? where can I implement in order to test if it works!
Excuse me but what the documentation does not understand much!!
thanks
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04869 seconds