KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > texteditor > IFindReplaceTargetExtension2


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.ui.texteditor;
12
13 /**
14  * Extension interface for {@link org.eclipse.jface.text.IFindReplaceTarget}.
15  * Extends the find replace target with the concept of state validation.
16  *
17  * @since 2.1
18  */

19 public interface IFindReplaceTargetExtension2 {
20
21     /**
22      * Validates the state of this target. The predominate intent of this method
23      * is to take any action probably necessary to ensure that the target can
24      * persistently be changed.
25      *
26      * @return <code>true</code> if the target was validated, <code>false</code> otherwise
27      */

28     boolean validateTargetState();
29 }
30
Popular Tags