diff options
author | Alexander Kurtakov | 2019-10-11 10:49:02 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2019-10-11 10:49:02 +0000 |
commit | 85b99c4d4fbfc65f31590c2a53ffcd2f4a060697 (patch) | |
tree | 51967174bf12afc6562759a13df0204d306e72a8 | |
parent | c9270db99d3146fd06ffdfd60a62101a1e0ca9b4 (diff) | |
download | eclipse.platform.text-85b99c4d4fbfc65f31590c2a53ffcd2f4a060697.tar.gz eclipse.platform.text-85b99c4d4fbfc65f31590c2a53ffcd2f4a060697.tar.xz eclipse.platform.text-85b99c4d4fbfc65f31590c2a53ffcd2f4a060697.zip |
Move away of deprecated AbstractUIPlugin.getWorkbench.
Change-Id: I90fdb653dc63d4a39698cd8e903698bc86e719b2
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r-- | org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java | 6 |
1 files 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 52544d206b8..1fa08615664 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<IFile, IDocument> dirtyEditors; @@ -135,7 +133,7 @@ public class DocumentFetcher { */ private Map<IFile, IDocument> evalNonFileBufferDocuments() { Map<IFile, IDocument> result= new HashMap<IFile, IDocument>(); - 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(); |