Bug 96924 [content assist] don't show templates in restricted situations
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateProposal.java
} catch (TemplateException e1) {
				fSelectedRegion= fRegion;
				return;
			}
			int start= getReplaceOffset();
			int end= getReplaceEndOffset();
			end= Math.max(end, offset);
			
			IDocument document= viewer.getDocument();
			String templateString= templateBuffer.getString();
			document.replace(start, end - start, templateString);
			
			LinkedModeModel model= new LinkedModeModel();
			TemplateVariable[] variables= templateBuffer.getVariables();
			MultiVariableGuess guess= fContext instanceof CompilationUnitContext ? ((CompilationUnitContext) fContext).getMultiVariableGuess() : null;
			boolean hasPositions= false;
			for (int i= 0; i != variables.length; i++) {
				TemplateVariable variable= variables[i];
				if (variable.isUnambiguous())
					continue;
				LinkedPositionGroup group= new LinkedPositionGroup();
				int[] offsets= variable.getOffsets();
				int length= variable.getLength();
				LinkedPosition first;
				if (guess != null && variable instanceof MultiVariable) {
					first= new VariablePosition(document, offsets[0] + start, length, guess, (MultiVariable) variable);
					guess.addSlave((VariablePosition) first);
				} else {
					String[] values= variable.getValues();
					ICompletionProposal[] proposals= new ICompletionProposal[values.length];