String getTemplateString() {
		String templateString = null;

		Template template = getSelectedTemplate();
		if (template != null) {
			TemplateContextType contextType = GlassmakerUIPlugin.getDefault().getTemplateContextRegistry().getContextType(CardContextType.CONTEXT_TYPE);
			IDocument document = new Document();
			TemplateContext context = new DocumentTemplateContext(contextType, document, 0, 0);
			try {
				TemplateBuffer buffer = context.evaluate(template);
				templateString = buffer.getString();
			}
			catch (Exception e) {
				GlassmakerUIPlugin.logError("Could not create template for new html", e); 
			}
		}

		return templateString;
	}
String getTemplateString() {
		String templateString = null;

		Template template = getSelectedTemplate();
		if (template != null) {
			TemplateContextType contextType = GlassmakerUIPlugin.getDefault().getTemplateContextRegistry().getContextType(CardContextType.CONTEXT_TYPE);
			IDocument document = new Document();
			TemplateContext context = new DocumentTemplateContext(contextType, document, 0, 0);
			try {
				TemplateBuffer buffer = context.evaluate(template);
				templateString = buffer.getString();
			}
			catch (Exception e) {
				GlassmakerUIPlugin.logError("Could not create template for new html", e); 
			}
		}

		return templateString;
	}
String getTemplateString ( ) { String templateString = null ; Template template = getSelectedTemplate ( ) ; if ( template != null ) { TemplateContextType contextType = GlassmakerUIPlugin . getDefault ( ) . getTemplateContextRegistry ( ) . getContextType ( CardContextType . CONTEXT_TYPE ) ; IDocument document = new Document ( ) ; TemplateContext context = new DocumentTemplateContext ( contextType , document , 0 , 0 ) ; try { TemplateBuffer buffer = context . evaluate ( template ) ; templateString = buffer . getString ( ) ; } catch ( Exception e ) { GlassmakerUIPlugin . logError ( "Could not create template for new html" , e ) ; } } return templateString ; }
Returns template string to insert.

@return String to insert or null if none is to be inserted
Returns template string to insert .