EditTemplateDialog dialog= new EditTemplateDialog(getShell(), template, true); if (dialog.open() == dialog.OK) { fTableViewer.refresh(template); fTableViewer.setChecked(template, template.isEnabled()); fTableViewer.setSelection(new StructuredSelection(template)); }
edit(template);
	private void edit() {		IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection();		Template template= (Template) selection.getFirstElement();		EditTemplateDialog dialog= new EditTemplateDialog(getShell(), template, true);		if (dialog.open() == dialog.OK) {			fTableViewer.refresh(template);			fTableViewer.setChecked(template, template.isEnabled());			fTableViewer.setSelection(new StructuredSelection(template));					}	}