Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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