protected boolean isValidPrefix(String prefix) { if (super.isValidPrefix(prefix)) return true; String word= getDisplayString(); if (isInJavadoc()) { int idx = word.indexOf("{@link "); //$NON-NLS-1$ if (idx==0) { word = word.substring(7); } else { idx = word.indexOf("{@value "); //$NON-NLS-1$ if (idx==0) { word = word.substring(8); } } } return isPrefix(prefix, word); } }
@Override protected boolean isValidPrefix(String prefix) { if (super.isValidPrefix(prefix)) return true; String word= TextProcessor.deprocess(getDisplayString()); if (fProposal.getKind() == CompletionProposal.CONSTRUCTOR_INVOCATION) { int start= word.indexOf(JavaElementLabels.CONCAT_STRING) + JavaElementLabels.CONCAT_STRING.length(); word= word.substring(start); return isPrefix(prefix, word) || isPrefix(prefix, new String(fProposal.getName())); } if (isInJavadoc()) { int idx = word.indexOf("{@link "); //$NON-NLS-1$ if (idx==0) { word = word.substring(7); } else { idx = word.indexOf("{@value "); //$NON-NLS-1$ if (idx==0) { word = word.substring(8); } } } return isPrefix(prefix, word); }
@Override protected boolean isValidPrefix(String prefix) { if (super.isValidPrefix(prefix)) return true; String word= TextProcessor.deprocess(getDisplayString()); if (fProposal.getKind() == CompletionProposal.CONSTRUCTOR_INVOCATION) { int start= word.indexOf(JavaElementLabels.CONCAT_STRING) + JavaElementLabels.CONCAT_STRING.length(); word= word.substring(start); return isPrefix(prefix, word) || isPrefix(prefix, new String(fProposal.getName())); } if (isInJavadoc()) { int idx = word.indexOf("{@link "); //$NON-NLS-1$ if (idx==0) { word = word.substring(7); } else { idx = word.indexOf("{@value "); //$NON-NLS-1$ if (idx==0) { word = word.substring(8); } } } return isPrefix(prefix, word); }