/******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation 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: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.search.ui; import org.eclipse.jface.dialogs.IDialogPage; /** * Interface to be implemented by contributors to the extension point <code>org.eclipse.search.searchPages</code>. * Represents a page in the search dialog. Implemented typically subclass <code>DialogPage</code>. * <p> * The search dialog calls the <code>performAction</code> method when the Search * button is pressed. * <p> * * @see org.eclipse.jface.dialogs.IDialogPage * @see org.eclipse.jface.dialogs.DialogPage */ public interface ISearchPage extends IDialogPage { /** * Performs the action for this page. * The search dialog calls this method when the Search * button is pressed. * * @return <code>true</code> if the dialog can be closed after execution */ public boolean performAction(); /** * Sets the container of this page. * The search dialog calls this method to initialize this page. * Implementations may store the reference to the container. * * @param container the container for this page */ public void setContainer(ISearchPageContainer container); }