Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2015-08-31 14:04:21 +0000
committerSopot Cela2015-08-31 14:04:21 +0000
commit37134c0f43aa708131733fa3e1a6b87b02423c91 (patch)
tree5d292c6510d441e72c188ca60f6c508bd3fdd5cb /org.eclipse.ui.workbench.texteditor
parent14401a9bbb356a8ba1d9d59111964bc4a255fcd6 (diff)
downloadeclipse.platform.text-37134c0f43aa708131733fa3e1a6b87b02423c91.tar.gz
eclipse.platform.text-37134c0f43aa708131733fa3e1a6b87b02423c91.tar.xz
eclipse.platform.text-37134c0f43aa708131733fa3e1a6b87b02423c91.zip
Bug 394739 - Remove org.eclipse.core.runtime.compatibility* bundles
Removed references to Platform#getPlugin. Change-Id: If3b071f52ba4f22a24734c4aa66a3251cfb27d5a Signed-off-by: Sopot Cela <scela@redhat.com>
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor')
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/WorkbenchChainedTextFontFieldEditor.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/WorkbenchChainedTextFontFieldEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/WorkbenchChainedTextFontFieldEditor.java
index 2115ed93e8e..c86a8deb66f 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/WorkbenchChainedTextFontFieldEditor.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/WorkbenchChainedTextFontFieldEditor.java
@@ -15,15 +15,14 @@ package org.eclipse.ui.texteditor;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.text.PropagatingFontFieldEditor;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.ui.preferences.ScopedPreferenceStore;
/**
@@ -61,13 +60,8 @@ public class WorkbenchChainedTextFontFieldEditor extends PropagatingFontFieldEdi
* @param targetKey the key to be used in the target preference store
*/
public static void startPropagate(IPreferenceStore target, String targetKey) {
- Plugin plugin= Platform.getPlugin("org.eclipse.ui.workbench"); //$NON-NLS-1$
- if (plugin instanceof AbstractUIPlugin) {
- AbstractUIPlugin uiPlugin= (AbstractUIPlugin) plugin;
- IPreferenceStore store= uiPlugin.getPreferenceStore();
- if (store != null)
- PropagatingFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT, target, targetKey);
- }
+ IPreferenceStore store= new ScopedPreferenceStore(InstanceScope.INSTANCE, "org.eclipse.ui.workbench"); //$NON-NLS-1$
+ PropagatingFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT, target, targetKey);
}
}

Back to the top