fix #774 infinite loop in net.sourceforge.phpeclipse.builder.IdentifierIndexManager...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / codemanipulation / IRequestQuery.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.corext.codemanipulation;
12
13 import net.sourceforge.phpdt.core.IMember;
14
15 /**
16  * Query object to let operations callback the actions. Example is a callback to
17  * ask if a existing method should be replaced.
18  */
19 public interface IRequestQuery {
20
21         // return codes
22         public static final int CANCEL = 0;
23
24         public static final int NO = 1;
25
26         public static final int YES = 2;
27
28         public static final int YES_ALL = 3;
29
30         /**
31          * Do the callback. Returns YES, NO, YES_ALL or CANCEL
32          */
33         int doQuery(IMember member);
34 }