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
for (int k= 0; k < templates.length; k++) {
					addToTemplateSet(templateSet, templates[k]);
				}
			}
		}
		export(templateSet);
	}
	
	private void addToTemplateSet(TemplateSet set, Template template) {
		if (set.getFirstTemplate(template.getName()) == null) {
			set.add(template);
		}
	}
	
	private void export(TemplateSet templateSet) {
		FileDialog dialog= new FileDialog(getShell(), SWT.SAVE);
		dialog.setText(PreferencesMessages.getFormattedString("CodeTemplateBlock.export.title", String.valueOf(templateSet.getTemplates().length))); 
		dialog.setFilterExtensions(new String[] {PreferencesMessages.getString("CodeTemplateBlock.export.extension")}); 
		dialog.setFileName(PreferencesMessages.getString("CodeTemplateBlock.export.filename")); 
		String path= dialog.open();
		
		if (path == null)
			return;
		
		File file= new File(path);		
		if (!file.exists() || confirmOverwrite(file)) {
			try {
				templateSet.saveToFile(file);			
			} catch (CoreException e) {			
				JavaPlugin.log(e);