diff options
Diffstat (limited to 'org.eclipse.text/src/org/eclipse/text/templates/TemplateStoreCore.java')
-rw-r--r-- | org.eclipse.text/src/org/eclipse/text/templates/TemplateStoreCore.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/org.eclipse.text/src/org/eclipse/text/templates/TemplateStoreCore.java b/org.eclipse.text/src/org/eclipse/text/templates/TemplateStoreCore.java index d32d2f9d078..08e80498154 100644 --- a/org.eclipse.text/src/org/eclipse/text/templates/TemplateStoreCore.java +++ b/org.eclipse.text/src/org/eclipse/text/templates/TemplateStoreCore.java @@ -127,16 +127,16 @@ public class TemplateStoreCore { @Override public void preferenceChange(PreferenceChangeEvent event) { /* - * Don't load if we are in the process of saving ourselves. We are in sync anyway after the - * save operation, and clients may trigger reloading by listening to preference store - * updates. - */ - if (!fIgnorePreferenceStoreChanges && fKey.equals(event.getKey())) - try { - load(); - } catch (IOException x) { - handleException(x); - } + * Don't load if we are in the process of saving ourselves. We are in sync anyway after the + * save operation, and clients may trigger reloading by listening to preference store + * updates. + */ + if (!fIgnorePreferenceStoreChanges && fKey.equals(event.getKey())) + try { + load(); + } catch (IOException x) { + handleException(x); + } } }; fPreferenceStore.addPreferenceChangeListener(fPropertyListener); |