From 85b99c4d4fbfc65f31590c2a53ffcd2f4a060697 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Fri, 11 Oct 2019 13:49:02 +0300 Subject: Move away of deprecated AbstractUIPlugin.getWorkbench. Change-Id: I90fdb653dc63d4a39698cd8e903698bc86e719b2 Signed-off-by: Alexander Kurtakov --- .../org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java index 52544d206..1fa086156 100644 --- a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java +++ b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008, 2013-2019 IBM Corporation and others. + * Copyright (c) 2000, 2019 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v2.0 * which accompanies this distribution, and is available at @@ -26,7 +26,6 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.jface.text.IDocument; -import org.eclipse.search.internal.ui.SearchPlugin; import org.eclipse.text.quicksearch.internal.ui.QuickSearchActivator; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; @@ -49,7 +48,6 @@ import org.eclipse.ui.texteditor.ITextEditor; * * @author Kris De Volder */ -@SuppressWarnings("restriction") public class DocumentFetcher { private Map dirtyEditors; @@ -135,7 +133,7 @@ public class DocumentFetcher { */ private Map evalNonFileBufferDocuments() { Map result= new HashMap(); - IWorkbench workbench= SearchPlugin.getDefault().getWorkbench(); + IWorkbench workbench= PlatformUI.getWorkbench(); IWorkbenchWindow[] windows= workbench.getWorkbenchWindows(); for (int i= 0; i < windows.length; i++) { IWorkbenchPage[] pages= windows[i].getPages(); -- cgit v1.2.1