JavaCompletionProposal newProposal= new GenericJavaTypeProposal(typeProposal, start, length, getCompilationUnit(), image, label, getTextViewer()); newProposal.setProposalInfo(new TypeProposalInfo(getJavaProject(), typeProposal));
JavaCompletionProposal newProposal= new GenericJavaTypeProposal(typeProposal, getContext(), start, length, getCompilationUnit(), image, label); if (project != null) newProposal.setProposalInfo(new TypeProposalInfo(project, typeProposal));
	protected IJavaCompletionProposal createTypeProposal(CompletionProposal typeProposal) {		if (!proposeGenerics())			return super.createTypeProposal(typeProposal);		String completion= String.valueOf(typeProposal.getCompletion());		// don't add parameters for import-completions		if (completion.length() > 0 && completion.endsWith(";")) //$NON-NLS-1$			return super.createTypeProposal(typeProposal);		int start= typeProposal.getReplaceStart();		int length= getLength(start, typeProposal.getReplaceEnd());		Image image= getImage(getLabelProvider().createImageDescriptor(typeProposal));		String label= getLabelProvider().createLabel(typeProposal);				JavaCompletionProposal newProposal= new GenericJavaTypeProposal(typeProposal, start, length, getCompilationUnit(), image, label, getTextViewer());		newProposal.setProposalInfo(new TypeProposalInfo(getJavaProject(), typeProposal));				newProposal.setTriggerCharacters(TYPE_TRIGGERS);		return newProposal;	}