improved PHP parser
[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 /**
17  * Query object to let operations callback the actions.
18  * Example is a callback to ask if a existing method should be replaced.
19  */
20 public interface IRequestQuery {
21         
22         // return codes
23         public static final int CANCEL= 0;
24         public static final int NO= 1;
25         public static final int YES= 2;
26         public static final int YES_ALL= 3;
27         
28         /**
29          * Do the callback. Returns YES, NO, YES_ALL or CANCEL
30          */
31         int doQuery(IMember member);
32 }