diff options
author | Sopot Cela | 2015-08-31 14:04:21 +0000 |
---|---|---|
committer | Sopot Cela | 2015-08-31 14:04:21 +0000 |
commit | 37134c0f43aa708131733fa3e1a6b87b02423c91 (patch) | |
tree | 5d292c6510d441e72c188ca60f6c508bd3fdd5cb /org.eclipse.ui.editors | |
parent | 14401a9bbb356a8ba1d9d59111964bc4a255fcd6 (diff) | |
download | eclipse.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.editors')
-rw-r--r-- | org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferencePage.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferencePage.java b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferencePage.java index 8d08008e771..7767a7dd3bd 100644 --- a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferencePage.java +++ b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferencePage.java @@ -17,8 +17,7 @@ import org.eclipse.swt.graphics.FontData; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Plugin; +import org.eclipse.core.runtime.preferences.InstanceScope; import org.eclipse.jface.preference.FieldEditorPreferencePage; import org.eclipse.jface.preference.FontFieldEditor; @@ -29,7 +28,7 @@ import org.eclipse.jface.resource.JFaceResources; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.eclipse.ui.preferences.ScopedPreferenceStore; import org.eclipse.ui.texteditor.AbstractTextEditor; @@ -60,11 +59,7 @@ public class TextEditorPreferencePage extends FieldEditorPreferencePage implemen super(GRID); setDescription(TextEditorMessages.PreferencePage_description); - Plugin plugin= Platform.getPlugin("org.eclipse.ui.workbench"); //$NON-NLS-1$ - if (plugin instanceof AbstractUIPlugin) { - AbstractUIPlugin uiPlugin= (AbstractUIPlugin) plugin; - setPreferenceStore(uiPlugin.getPreferenceStore()); - } + setPreferenceStore(new ScopedPreferenceStore(InstanceScope.INSTANCE, "org.eclipse.ui.workbench")); //$NON-NLS-1$ } /* |