How do I change the Matcher at ContentAssistContext? [message #701652] |
Mon, 25 July 2011 11:56 |
|
Hi anybody,
I want to migrate our modeling-project to indigo and found a
code that looks like a workaround:
In overriden method
complete_JavaRefType(EObject model, RuleCall ruleCall, ContentAssistContext context,
ICompletionProposalAcceptor acceptor) {
try {
PrefixMatcher matcher = new PrefixMatcher() {
@Override
public boolean isCandidateMatchingPrefix(String name, String prefix) {
name = name.replaceAll("\\^", "");
prefix = prefix.replaceAll("\\^", "");
return original.isCandidateMatchingPrefix(name, prefix);
}
};
context.setMatcher(matcher);
ITypeProposalAcceptor typeProposalAcceptor = new DefaultTypeProposalAcceptor(context, acceptor);
completeJavaType(model, feature, context.getPrefix(), typeProposalAcceptor);
} finally {
context.setMatcher(original);
}
That dowsn't compile anymore in 2.0.0, because setMatcher not available anymore.
How can I make this workaround work again or how can I get rid of it?
Thanks for your help
Best regards
Markus
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02078 seconds