code: private Template getSelectedTemplate() {
  		Template template = null;
  		IStructuredSelection selection = (IStructuredSelection) fTableViewer.getSelection();
  
  		if (selection.size() == 1) {
  			template = (Template) selection.getFirstElement();
  		}
  		return template;
  	}
docs: Get the currently selected template.
  
  @return