ITemplateEditor formatter= new JavaFormatter();
String lineDelimiter= null; try { lineDelimiter= getDocument().getLineDelimiter(0); } catch (BadLocationException e) { }  if (lineDelimiter == null) lineDelimiter= PLATFORM_LINE_DELIMITER;  ITemplateEditor formatter= new JavaFormatter(lineDelimiter);
	public TemplateBuffer evaluate(Template template) throws CoreException {		if (!canEvaluate(template))			return null;				TemplateTranslator translator= new TemplateTranslator();		TemplateBuffer buffer= translator.translate(template.getPattern());//		if (buffer == null)//			throw CoreException(...);		getContextType().edit(buffer, this);					ITemplateEditor formatter= new JavaFormatter();		formatter.edit(buffer, this);		return buffer;	}