Bug 7122 Action Cleanup/Dispose
It would nice to have a package that was strictly for actions...just like jdt debug ui. org.eclipse.debug.iternal.ui.actions
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
else if (context.equals(TemplateContext.JAVADOC))
			return 1;
		else
			return -1;
	}
	
	protected void okPressed() {
		fTemplate.setName(fNameText.getText());
		fTemplate.setDescription(fDescriptionText.getText());
		fTemplate.setContext(fContextCombo.getText());
		fTemplate.setPattern(fPatternEditor.getTextWidget().getText());
		
		super.okPressed();
	}
	
	private void updateButtons() {		
		boolean valid= fNameText.getText().trim().length() != 0;
		StatusInfo status= new StatusInfo();
		
		if (!valid) {
			if (fSuppressError)
				status.setError(""); 							
			else
				status.setError(TemplateMessages.getString("EditTemplateDialog.error.noname")); 
 		} else if (fVerifier.hasErrors()) {
 			status.setError(fVerifier.getErrorMessage());	
		}
		updateStatus(status);
	}
}