Bug 31229 code templates pref page: opening a dialog on typing is unexpected [code manipulation]
20030206 when i start typing (or even press an arrow key) in the template preview a dialog pops up it's unexpected and unusual
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeTemplateBlock.java
try {
			fTemplates.save();
		} catch (CoreException e) {
			JavaPlugin.log(e);
			openWriteErrorDialog(e);
		}		
		return true;
	}
	
	public void performCancel() {
		try {
			fTemplates.reset();			
		} catch (CoreException e) {
			openReadErrorDialog(e);
		}
	}
	
	private void openReadErrorDialog(CoreException e) {
		String title= PreferencesMessages.getString("CodeTemplateBlock.error.read.title"); 
		String message= PreferencesMessages.getString("CodeTemplateBlock.error.read.message"); 
		ExceptionHandler.handle(e, getShell(), title, message);		
	}
	
	private void openWriteErrorDialog(CoreException e) {
		String title= PreferencesMessages.getString("CodeTemplateBlock.error.write.title"); 
		String message= PreferencesMessages.getString("CodeTemplateBlock.error.write.message"); 
		ExceptionHandler.handle(e, getShell(), title, message);	
	}	
}