Bug 75839 [implementation] Export templates doesn't release the file
If you do an export templates from Window->Preferences->Java->Code Style->Code Templates, the file exported into is not released. That means it can't be accessed by anyone else (for example, I tried to use wordpad to look at it and it wouldn't because it was locked). It is only released when you close out Eclipse entirely. Thanks.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeTemplateBlock.java
}		
		return true;
	}
	
	public void performCancel() {
		try {
			fTemplates.load();			
		} catch (IOException e) {
			openReadErrorDialog(e);
		}
	}
	
	private void openReadErrorDialog(Exception e) {
		String title= PreferencesMessages.getString("CodeTemplateBlock.error.read.title"); 
		
		String message= e.getLocalizedMessage();
		if (message != null)
			message= PreferencesMessages.getFormattedString("CodeTemplateBlock.error.parse.message", message); 
		else
			message= PreferencesMessages.getString("CodeTemplateBlock.error.read.message"); 
		MessageDialog.openError(getShell(), title, message);
	}
	
	private void openWriteErrorDialog(Exception e) {
		String title= PreferencesMessages.getString("CodeTemplateBlock.error.write.title"); 
		String message= PreferencesMessages.getString("CodeTemplateBlock.error.write.message"); 
		MessageDialog.openError(getShell(), title, message);
	}	
}