01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.texteditor;
11:
12: /**
13: * Extension interface for {@link org.eclipse.jface.text.IFindReplaceTarget}.
14: * Extends the find replace target with the concept of state validation.
15: *
16: * @since 2.1
17: */
18: public interface IFindReplaceTargetExtension2 {
19:
20: /**
21: * Validates the state of this target. The predominate intent of this method
22: * is to take any action probably necessary to ensure that the target can
23: * persistently be changed.
24: *
25: * @return <code>true</code> if the target was validated, <code>false</code> otherwise
26: */
27: boolean validateTargetState();
28: }
|