data.setTemplate(newTemplate);
data.setTemplate(dialog.getTemplate());
	private void edit(TemplatePersistenceData data) {		Template newTemplate= new Template(data.getTemplate());		EditTemplateDialog dialog= new EditTemplateDialog(getShell(), newTemplate, true, false, JavaPlugin.getDefault().getCodeTemplateContextRegistry());		if (dialog.open() == Window.OK) {			// changed			data.setTemplate(newTemplate);			fCodeTemplateTree.refresh(data);			fCodeTemplateTree.selectElements(new StructuredSelection(data));		}	}