1 /******************************************************************************* 2 * Copyright (c) 2004, 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.ltk.core.refactoring; 12 13 import org.eclipse.core.runtime.IAdaptable; 14 15 /** 16 * A factory to create <code>IValidationCheckResultQuery</code> objects. 17 * The LTK user interface plug-in provides a special factory for dialog 18 * based queries. 19 * <p> 20 * The interface may be implemented by clients. 21 * </p> 22 * 23 * @since 3.1 24 */ 25 public interface IValidationCheckResultQueryFactory { 26 27 /** 28 * Creates a new query. 29 * 30 * @param context the factory adapts the context to a 31 * <code>org.eclipse.swt.widgets.Shell</code> that is to be used to parent 32 * any dialogs with the user; use <code>null</code> if there is no UI context 33 * 34 * @return the new query 35 */ 36 public IValidationCheckResultQuery create(IAdaptable context); 37 } 38