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.jdt.internal.corext.codemanipulation; 12 13 import org.eclipse.jdt.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 } 33