Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2002-04-18 14:38:58 +0000
committerAndre Weinand2002-04-18 14:38:58 +0000
commitf00e7c7d5f40f5444df847d32d949fb091be7c66 (patch)
treed879218fd42369a2c8683774ee3bd6d884039c01 /bundles/org.eclipse.compare/compare/org/eclipse/compare
parent0d7b8b5a9a2c2d832178e180f798c2c3f9a414b9 (diff)
downloadeclipse.platform.team-f00e7c7d5f40f5444df847d32d949fb091be7c66.tar.gz
eclipse.platform.team-f00e7c7d5f40f5444df847d32d949fb091be7c66.tar.xz
eclipse.platform.team-f00e7c7d5f40f5444df847d32d949fb091be7c66.zip
Updated build notes;v20020418
fixed the last deprecated warning.
Diffstat (limited to 'bundles/org.eclipse.compare/compare/org/eclipse/compare')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java48
1 files changed, 22 insertions, 26 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java
index e9e71aa51..f11a23a40 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java
@@ -255,6 +255,28 @@ public final class CompareUIPlugin extends AbstractUIPlugin {
* Frees all resources of the compare plug-in.
*/
public void shutdown() throws CoreException {
+
+ /*
+ * Converts the aliases into a single string before they are stored
+ * in the preference store.
+ * The format is:
+ * <key> '.' <alias> ' ' <key> '.' <alias> ...
+ */
+ IPreferenceStore ps= getPreferenceStore();
+ if (ps != null) {
+ StringBuffer sb= new StringBuffer();
+ Iterator iter= fgStructureViewerAliases.keySet().iterator();
+ while (iter.hasNext()) {
+ String key= (String) iter.next();
+ String alias= (String) fgStructureViewerAliases.get(key);
+ sb.append(key);
+ sb.append('.');
+ sb.append(alias);
+ sb.append(' ');
+ }
+ ps.setValue(STRUCTUREVIEWER_ALIASES_PREFERENCE_NAME, sb.toString());
+ }
+
super.shutdown();
if (fgDisposeOnShutdownImages != null) {
@@ -783,32 +805,6 @@ public final class CompareUIPlugin extends AbstractUIPlugin {
}
}
- /**
- * Converts the aliases into a single string before they are stored
- * in the preference store.
- * The format is:
- * <key> '.' <alias> ' ' <key> '.' <alias> ...
- */
- protected void savePreferenceStore() {
- //System.out.println("savePreferenceStore");
- IPreferenceStore ps= getPreferenceStore();
- if (ps != null) {
- StringBuffer sb= new StringBuffer();
- Iterator iter= fgStructureViewerAliases.keySet().iterator();
- while (iter.hasNext()) {
- String key= (String) iter.next();
- String alias= (String) fgStructureViewerAliases.get(key);
- sb.append(key);
- sb.append('.');
- sb.append(alias);
- sb.append(' ');
- }
- //System.out.println(" <" + sb.toString() + ">");
- ps.setValue(STRUCTUREVIEWER_ALIASES_PREFERENCE_NAME, sb.toString());
- }
- super.savePreferenceStore();
- }
-
public static void addStructureViewerAlias(String type, String alias) {
//System.out.println("addStructureViewerAlias: " + type + " " + alias);
fgStructureViewerAliases.put(normalizeCase(alias), normalizeCase(type));

Back to the top