View | Details | Raw Unified | Return to bug 297681 | Differences between
and this patch

Collapse All | Expand All

(-)a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PlatformUIPreferenceListener.java (-5 / +3 lines)
Lines 10-21 Link Here
10
 *      Wojciech Galanciak <wojciech.galanciak@pl.ibm.com> - Bug 236104 [EditorMgmt] File association default needs to be set twice to take effect
10
 *      Wojciech Galanciak <wojciech.galanciak@pl.ibm.com> - Bug 236104 [EditorMgmt] File association default needs to be set twice to take effect
11
 *******************************************************************************/
11
 *******************************************************************************/
12
package org.eclipse.ui.internal;
12
package org.eclipse.ui.internal;
13
14
import java.io.IOException;
13
import java.io.IOException;
15
import java.io.Reader;
14
import java.io.Reader;
16
import java.io.StringReader;
15
import java.io.StringReader;
17
import java.util.HashMap;
16
import java.util.HashMap;
18
19
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
17
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
20
import org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent;
18
import org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent;
21
import org.eclipse.jface.preference.IPreferenceStore;
19
import org.eclipse.jface.preference.IPreferenceStore;
Lines 39-45 Link Here
39
 */
37
 */
40
public class PlatformUIPreferenceListener implements
38
public class PlatformUIPreferenceListener implements
41
		IEclipsePreferences.IPreferenceChangeListener {
39
		IEclipsePreferences.IPreferenceChangeListener {
42
	
40
43
	private static PlatformUIPreferenceListener singleton;
41
	private static PlatformUIPreferenceListener singleton;
44
	
42
	
45
	public static IEclipsePreferences.IPreferenceChangeListener getSingleton(){
43
	public static IEclipsePreferences.IPreferenceChangeListener getSingleton(){
Lines 161-173 Link Here
161
						editorRegistry.readResources(editorMap, reader);
159
						editorRegistry.readResources(editorMap, reader);
162
					}
160
					}
163
				} catch (WorkbenchException e) {
161
				} catch (WorkbenchException e) {
164
					e.printStackTrace();
162
					WorkbenchPlugin.log(e);
165
				} finally {
163
				} finally {
166
					if (reader != null) {
164
					if (reader != null) {
167
						try {
165
						try {
168
							reader.close();
166
							reader.close();
169
						} catch (IOException e) {
167
						} catch (IOException e) {
170
							e.printStackTrace();
168
							WorkbenchPlugin.log(e);
171
						}
169
						}
172
					}
170
					}
173
				}
171
				}

Return to bug 297681