[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.tmf] ContentAssist

Hi ,
I have the sample grammar :
Model : "context "name=ID op=ID;
I want to customise the autocompletion code for the attribute name. So I override the completeModel_Name operation as below:

public void completeModel_StringDescription (Model model,Assignment assignment,ContentAssistContext context,ICompletionProposalAcceptor acceptor) {

ICompletionProposal completionProposal =createCompletionProposal("name1", context);
ICompletionProposal completionProposal 2=createCompletionProposal("name2", context);
acceptor.accept(completionProposal);
acceptor.accept(completionProposal2);
}
But in the editor I sttil have 'Name-ID' in autocompletion window besides "name1" and "name2"
How I can remove "Name-ID" ?