JavaCompletionProposal proposal= new JavaCompletionProposal(newText, offset, length, image, labelText, 0); proposal.setProposalInfo(proposalInfo); proposal.setTriggerCharacters( new char[] { '#' }); return proposal;
return new CompletionProposal(newText, offset, length, newText.length(), image, labelText, null, info);
	private JavaCompletionProposal createCompletion(String newText, String oldText, String labelText, Image image, ProposalInfo proposalInfo) {		int offset= fCurrentPos - oldText.length();		int length= fCurrentLength + oldText.length();		if (fCurrentLength == 0)			length= findReplaceEndPos(fDocument, newText, oldText, fCurrentPos) - offset;							JavaCompletionProposal proposal= new JavaCompletionProposal(newText, offset, length, image, labelText, 0);		proposal.setProposalInfo(proposalInfo);		proposal.setTriggerCharacters( new char[] { '#' });		return proposal;	}