summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorShahin Kahriz2011-10-17 10:27:24 (EDT)
committer Remy Suen2011-10-17 10:31:00 (EDT)
commit576aaeb8e6f0a99c30334a96cbfbcbcaa96c5b6b (patch)
treee3934139dac4d8c03366851ce9659fb72b55584c
parent8cceb01b013ce4fec78ad8a5c5e6fb4decf094fb (diff)
downloadeclipse.platform.ui-576aaeb8e6f0a99c30334a96cbfbcbcaa96c5b6b.zip
eclipse.platform.ui-576aaeb8e6f0a99c30334a96cbfbcbcaa96c5b6b.tar.gz
eclipse.platform.ui-576aaeb8e6f0a99c30334a96cbfbcbcaa96c5b6b.tar.bz2
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.
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PlatformUIPreferenceListener.java6
1 files changed, 3 insertions, 3 deletions
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 3d9455a..59b57e7 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
@@ -160,13 +160,13 @@ public class PlatformUIPreferenceListener implements
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);
}
}
}