diff options
| author | Shahin Kahriz | 2011-10-17 14:27:24 +0000 |
|---|---|---|
| committer | Remy Suen | 2011-10-17 14:27:24 +0000 |
| commit | 9f99cceaffbca19707d32b63a4cf63d166f877b0 (patch) | |
| tree | 489ec800081e8e326989835ffbb343a4b7e2f912 | |
| parent | 8f4c911caeca2d9c8109b2e3111a21de52bb13f2 (diff) | |
| download | eclipse.platform.ui-9f99cceaffbca19707d32b63a4cf63d166f877b0.tar.gz eclipse.platform.ui-9f99cceaffbca19707d32b63a4cf63d166f877b0.tar.xz eclipse.platform.ui-9f99cceaffbca19707d32b63a4cf63d166f877b0.zip | |
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.java | 6 |
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 1999d64b5af..e38e8d1f79d 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); } } } |
