Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Becker2021-01-21 12:58:14 +0000
committerMatthias Becker2021-01-21 12:58:14 +0000
commit0ff22b3f712a6838f4d1c5b31656e0df1eeb122a (patch)
treefaa0cf78332391ccf0c76328db2a88ccb4ff1e73
parentf014ad601bf91ad612bfdf646b1d3725696873de (diff)
downloadeclipse.platform.text-0ff22b3f712a6838f4d1c5b31656e0df1eeb122a.tar.gz
eclipse.platform.text-0ff22b3f712a6838f4d1c5b31656e0df1eeb122a.tar.xz
eclipse.platform.text-0ff22b3f712a6838f4d1c5b31656e0df1eeb122a.zip
Editors: Don't use AbstractUIPlugin#getDialogSettingsI20210121-2140
JavaDoc of this method says it should no longer be used. This is one step further to remove Activators. Change-Id: I7e8a9514228178a2c413e06cb40a423618ef1b45
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/EditorsPlugin.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/EditorsPlugin.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/EditorsPlugin.java
index c3e48f543..f1a245bd9 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/EditorsPlugin.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/EditorsPlugin.java
@@ -15,6 +15,7 @@
package org.eclipse.ui.internal.editors.text;
import org.osgi.framework.BundleContext;
+import org.osgi.framework.FrameworkUtil;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IStatus;
@@ -284,7 +285,7 @@ public class EditorsPlugin extends AbstractUIPlugin {
* @since 3.7
*/
public IDialogSettings getDialogSettingsSection(String name) {
- IDialogSettings dialogSettings= getDialogSettings();
+ IDialogSettings dialogSettings= PlatformUI.getDialogSettingsProvider(FrameworkUtil.getBundle(EditorsPlugin.class)).getDialogSettings();
IDialogSettings section= dialogSettings.getSection(name);
if (section == null) {
section= dialogSettings.addNewSection(name);

Back to the top