/******************************************************************************* * Copyright (c) 2010 Flavio Donze and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Flavio Donze - initial API and implementation * Tasktop Technologies - improvements *******************************************************************************/ package org.eclipse.mylyn.internal.tasks.ui.search; import org.eclipse.mylyn.internal.tasks.core.ITaskList; import org.eclipse.mylyn.tasks.core.IRepositoryQuery; import org.eclipse.mylyn.tasks.core.TaskRepository; import org.eclipse.ui.IWorkbenchWindow; /** * Search providers should implement this class. * * @author Flavio Donze * @since 3.4 */ public abstract class AbstractSearchProvider { /** * Opens the search dialog. Shows the task search page. * * @param window * parent window */ public abstract void openSearchDialog(IWorkbenchWindow window); /** * Runs a search query. * * @param tasklist * task list to receive the task from * @param repository * task repository to run query against * @param query * query to run * @param activateResultView * true if the result view should activate */ public abstract void runSearchQuery(ITaskList tasklist, TaskRepository repository, IRepositoryQuery query, boolean activateResultView); }