Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-10-02 05:55:36 -0400
committerLars Vogel2020-10-02 05:55:36 -0400
commit6c75d96e39e7421210e1a47a787ded7c1b99e539 (patch)
treec23ce7bf6190a4ffbcd52e0aaadab07d1a57256c
parente915204a94caf26a1bc72418b809101523c64274 (diff)
downloadeclipse.platform.text-Y20201017-1200.tar.gz
eclipse.platform.text-Y20201017-1200.tar.xz
eclipse.platform.text-Y20201017-1200.zip
with Adapters Change-Id: I86f00a7bea1be7d40a2c52011222160362466b74 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java
index d7a9c8b0f..691f537c4 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java
@@ -16,8 +16,8 @@ package org.eclipse.ui.texteditor.templates;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.core.runtime.Adapters;
import org.eclipse.core.runtime.Assert;
-import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.text.templates.persistence.TemplatePersistenceData;
import org.eclipse.jface.text.templates.persistence.TemplateStore;
@@ -133,7 +133,7 @@ public final class TemplatesView extends PageBookView {
// Try to get template page.
ITemplatesPage page= part.getAdapter(ITemplatesPage.class);
if (page == null)
- page= Platform.getAdapterManager().getAdapter(part, ITemplatesPage.class);
+ page = Adapters.adapt(part, ITemplatesPage.class);
if (page == null)
return null; // There is no template page

Back to the top