diff options
| author | Shahin Kahriz | 2011-10-17 14:27:24 +0000 |
|---|---|---|
| committer | Remy Suen | 2011-10-17 14:31:00 +0000 |
| commit | 576aaeb8e6f0a99c30334a96cbfbcbcaa96c5b6b (patch) | |
| tree | e3934139dac4d8c03366851ce9659fb72b55584c | |
| parent | 8cceb01b013ce4fec78ad8a5c5e6fb4decf094fb (diff) | |
| download | eclipse.platform.ui-576aaeb8e6f0a99c30334a96cbfbcbcaa96c5b6b.tar.gz eclipse.platform.ui-576aaeb8e6f0a99c30334a96cbfbcbcaa96c5b6b.tar.xz eclipse.platform.ui-576aaeb8e6f0a99c30334a96cbfbcbcaa96c5b6b.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 3d9455ad5b5..59b57e7f24f 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); } } } |
