|
|
|
|
|
Re: Another Content Assist doubt [message #851244 is a reply to message #851214] |
Fri, 20 April 2012 19:57 |
|
public class MyDslProposalProvider extends AbstractMyDslProposalProvider {
@Override
public void completeUnitType_Name(EObject model, Assignment assignment,
ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
acceptor.accept(createCompletionProposal("YouAreTheGuiWhoKnowsWhatAUnitTypeNameIs", context));
super.completeUnitType_Name(model, assignment, context, acceptor);
}
@Override
public void complete_EString(EObject model, RuleCall ruleCall,
ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
acceptor.accept(createCompletionProposal("ThisIsAnEString", context));
acceptor.accept(createCompletionProposal("\"ThisIsAnEStringToo\"", context));
super.complete_EString(model, ruleCall, context, acceptor);
}
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.24473 seconds