fixedText.length(),
collector );
IJavaCompletionProposal[] proposals = collector.getJavaCompletionProposals();
for ( int i = 0; i < proposals.length; i++ ) {
if ( proposals[i] instanceof AbstractJavaCompletionProposal ) {
AbstractJavaCompletionProposal javaProposal = (AbstractJavaCompletionProposal) proposals[i];
int replacementOffset = documentOffset - (fixedText.length() - javaProposal.getReplacementOffset());
javaProposal.setReplacementOffset( replacementOffset );
if ( javaProposal instanceof LazyJavaTypeCompletionProposal ) {
String completionPrefix = javaText.substring( javaText.length() - javaProposal.getReplacementLength() );
int dotIndex = completionPrefix.lastIndexOf( '.' );
// match up to the last dot in order to make higher level matching still work (camel case...)
if ( dotIndex != -1 ) {
javaProposal.setReplacementString( ((LazyJavaTypeCompletionProposal) javaProposal).getQualifiedTypeName() );
}
}
if ( !filterObjectMethods || !(proposals[i] instanceof JavaMethodCompletionProposal) ) {
results.add( proposals[i] );
}