|
| 1 | +/******************************************************************************* |
| 2 | + * Copyright (c) 2005, 2015 IBM Corporation and others. |
| 3 | + * |
| 4 | + * This program and the accompanying materials |
| 5 | + * are made available under the terms of the Eclipse Public License 2.0 |
| 6 | + * which accompanies this distribution, and is available at |
| 7 | + * https://www.eclipse.org/legal/epl-2.0/ |
| 8 | + * |
| 9 | + * SPDX-License-Identifier: EPL-2.0 |
| 10 | + ******************************************************************************/ |
| 11 | +package org.eclipse.search.tests; |
| 12 | + |
| 13 | +import java.util.regex.Pattern; |
| 14 | + |
| 15 | +import org.eclipse.core.resources.IFile; |
| 16 | +import org.eclipse.core.runtime.IProgressMonitor; |
| 17 | +import org.eclipse.core.runtime.IStatus; |
| 18 | +import org.eclipse.search.core.text.TextSearchEngine; |
| 19 | +import org.eclipse.search.core.text.TextSearchRequestor; |
| 20 | +import org.eclipse.search.core.text.TextSearchScope; |
| 21 | + |
| 22 | +/* |
| 23 | + * This class only exists so PDE doesn't show an error as it's referenced in plugin.xml |
| 24 | + * But it is never instantiated nor used. |
| 25 | + */ |
| 26 | +public class TestTextSearchEngine extends TextSearchEngine { |
| 27 | + |
| 28 | + public TestTextSearchEngine() { |
| 29 | + } |
| 30 | + |
| 31 | + @Override |
| 32 | + public IStatus search(TextSearchScope scope, TextSearchRequestor requestor, Pattern searchPattern, IProgressMonitor monitor) { |
| 33 | + throw new UnsupportedOperationException("Unimplemented method 'search'"); |
| 34 | + } |
| 35 | + |
| 36 | + @Override |
| 37 | + public IStatus search(IFile[] scope, TextSearchRequestor requestor, Pattern searchPattern, IProgressMonitor monitor) { |
| 38 | + throw new UnsupportedOperationException("Unimplemented method 'search'"); |
| 39 | + } |
| 40 | + |
| 41 | +} |
0 commit comments