Bug 80126 [assist] CompletionRequestor.setIgnored should allow POTENTIAL_METHOD_DECLARATION
20041203 The code in CompletionRequestor.setIgnored should be updated as new constants POTENTIAL_METHOD_DECLARATION and METHOD_NAME_REFERENCE are larger than VARIABLE_DECLARATION public final void setIgnored(int completionProposalKind, boolean ignore) { if (completionProposalKind < CompletionProposal.ANONYMOUS_CLASS_DECLARATION || completionProposalKind > CompletionProposal.VARIABLE_DECLARATION) { throw new IllegalArgumentException(); }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/SimilarElementsRequestor.java
}
	}
	
	private void addType(char[] typeNameSig, int flags, int relevance) {
		String fullName= new String(Signature.toCharArray(Signature.getTypeErasure(typeNameSig)));
		if (TypeFilter.isFiltered(fullName)) {
			return;
		}
		if (Flags.isAnnotation(flags)) {
			return;
		}
		if (NameMatcher.isSimilarName(fName, Signature.getSimpleName(fullName))) {
			int kind= CLASSES;
			if (Flags.isInterface(flags)) {
				 kind= INTERFACES;
			}
			addResult(new SimilarElement(kind, fullName, relevance));
		}
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.jdt.core.CompletionRequestor#accept(org.eclipse.jdt.core.CompletionProposal)
	 */
	public void accept(CompletionProposal proposal) {
		if (proposal.getKind() == CompletionProposal.TYPE_REF) {
			addType(proposal.getSignature(), proposal.getFlags(), proposal.getRelevance());
		}
	}	
}