Bug 9640 template pref page: more vars should be availale in javadoc mode
vars like: package project sometimes even type (rarely method) are useful also in javadoc context
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java
*/
	public ICompletionProposal[] getResults() {
		return (ICompletionProposal[]) fProposals.toArray(new ICompletionProposal[fProposals.size()]);
	}
	/**
	 * Inspects the context of the compilation unit around <code>completionPosition</code>
	 * and feeds the collector with proposals.
	 * @param viewer             the text viewer
	 * @param completionPosition the context position in the document of the text viewer
	 * @param unit               the compilation unit (may be <code>null</code>)
	 */
	public void complete(ITextViewer viewer, int completionPosition, ICompilationUnit sourceUnit)
		throws JavaModelException
	{
	    IDocument document= viewer.getDocument();
	    
		
		if (LinkedPositionManager.hasActiveManager(document))
			return;
		JavaContext context= new JavaContext(fContextType, document.get(), completionPosition, sourceUnit);
		Template[] templates= Templates.getInstance().getTemplates();
		int start= context.getStart();
		int end= context.getEnd();
		IRegion region= new Region(start, end - start);
		for (int i= 0; i != templates.length; i++)
			if (context.canEvaluate(templates[i]))
				fProposals.add(new TemplateProposal(templates[i], context, region, viewer, fLabelProvider.getColumnImage(templates[i], 0)));
	}
}