summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorShahin Kahriz2011-10-17 10:27:24 (EDT)
committer Remy Suen2011-10-17 10:27:24 (EDT)
commit9f99cceaffbca19707d32b63a4cf63d166f877b0 (patch)
tree489ec800081e8e326989835ffbb343a4b7e2f912
parent8f4c911caeca2d9c8109b2e3111a21de52bb13f2 (diff)
downloadeclipse.platform.ui-9f99cceaffbca19707d32b63a4cf63d166f877b0.zip
eclipse.platform.ui-9f99cceaffbca19707d32b63a4cf63d166f877b0.tar.gz
eclipse.platform.ui-9f99cceaffbca19707d32b63a4cf63d166f877b0.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 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 @@ 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);
}
}
}