Bug 297681 [Preferences] PlatformUIPreferenceListener should log
exceptions instead of printing them

Using static method, log(java.lang.Throwable t), from
WorkbenchPlugin class to log a WorkbenchException and an
IOException instead of printing them.
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PlatformUIPreferenceListener.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PlatformUIPreferenceListener.java
index 1999d64..e38e8d1 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PlatformUIPreferenceListener.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PlatformUIPreferenceListener.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2010 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -161,13 +161,13 @@
 						editorRegistry.readResources(editorMap, reader);
 					}
 				} catch (WorkbenchException e) {
-					e.printStackTrace();
+					WorkbenchPlugin.log(e);
 				} finally {
 					if (reader != null) {
 						try {
 							reader.close();
 						} catch (IOException e) {
-							e.printStackTrace();
+							WorkbenchPlugin.log(e);
 						}
 					}
 				}