KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > search > ui > IReplacePage


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.search.ui;
12
13 /**
14  * An extension interface to <code>ISearchPage</code>. If clients implement
15  * <code>IReplacePage</code> in addition to <code>ISearchPage</code>, a
16  * "Replace" button will be shown in the search dialog.
17  *
18  * @since 3.0
19  */

20 public interface IReplacePage {
21
22     /**
23      * Performs the replace action for this page.
24      * The search dialog calls this method when the Replace
25      * button is pressed.
26      *
27      * @return <code>true</code> if the dialog can be closed after execution
28      */

29     public boolean performReplace();
30     
31 }
32
Popular Tags