Content assistant: don't show default proposal [message #997446] |
Mon, 07 January 2013 14:47 |
|
Good monday,
I'm looking for a way to hide some default proposals in content assistant.
Would also be useful to know how to override the behavior of default proposals. For example: "IF" proposal writes "IF" but I want to write "IF()".
How can realize it?
Very thank you!
EDIT: I need this also for XExpression: I've try to ovveride method without call super, but does not change anything.
[Updated on: Mon, 07 January 2013 14:59] Report message to a moderator
|
|
|
Re: Content assistant: don't show default proposal [message #997453 is a reply to message #997446] |
Mon, 07 January 2013 15:26 |
|
Solved for keyword with this method:
@Override
public void completeKeyword(Keyword keyword,
ContentAssistContext contentAssistContext,
ICompletionProposalAcceptor acceptor) {
if(keyword.getValue().equals("IF") || keyword.getValue().equals("DO") || keyword.getValue().equals("WHILE")){
return;
}
super.completeKeyword(keyword, contentAssistContext, acceptor);
}
and then I've wrote my proposals in right position with my specifics.
Remain XExpressions.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02660 seconds