blob: 82e1770be141ecb42aa776f8b8d1a65db1456662 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.core;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.internal.compiler.env.INameEnvironment;
/**
* The name environment provides a callback API that the compiler
* can use to look up types, compilation units, and packages in the
* current environment. The name environment is passed to the compiler
* on creation.
*
* This name environment can be canceled using the monitor passed as an argument to
* {@link #setMonitor(IProgressMonitor)}.
*
* @since 3.6
*/
public interface INameEnvironmentWithProgress extends INameEnvironment {
/**
* Set the monitor for the given name environment. In order to be able to cancel this name environment calls,
* a non-null monitor should be given.
*
* @param monitor the given monitor
*/
void setMonitor(IProgressMonitor monitor);
}