blob: 568a117c69c1ef40d7f391989887cb96f4732ea8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.update.internal.ui.search;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.update.core.IFeature;
import org.eclipse.update.core.ISite;
import org.eclipse.update.internal.ui.model.ISiteAdapter;
public interface ISearchQuery {
/**
* Returns a URL of an explicit site that needs to
* be used for this query. This site is searched first.
* In addition, local file system and bookmarked sites
* can be searched as well if selected in search options.
* @return a url of a site that needs to be searched for
* this query or <samp>null</samp> if a general scan
* should be used.
*/
public ISiteAdapter getSearchSite();
/**
* Returns an array of features that match the search query
* using the provided site as a source.
*/
public IFeature [] getMatchingFeatures(ISite site, IProgressMonitor monitor);
}