Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
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 Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.core.dom;
import  org.eclipse.core.runtime.IProgressMonitor;
import  org.eclipse.core.runtime.OperationCanceledException;
Batch name environment that can be canceled using a monitor.

	IProgressMonitor monitor;
	public NameEnvironmentWithProgress(Classpath[] pathsString[] initialFileNames, IProgressMonitor monitor) {
	private void checkCanceled() {
		if (this. != null && this..isCanceled()) {
				..println(Thread.currentThread() + " CANCELLING LOOKUP "); //$NON-NLS-1$
			throw new AbortCompilation(true/*silent*/new OperationCanceledException());
	public NameEnvironmentAnswer findType(char[] typeNamechar[][] packageName) {
		return super.findType(typeNamepackageName);
	public NameEnvironmentAnswer findType(char[][] compoundName) {
		return super.findType(compoundName);
	public boolean isPackage(char[][] compoundNamechar[] packageName) {
		return super.isPackage(compoundNamepackageName);
	public void setMonitor(IProgressMonitor monitor) {
		this. = monitor;
New to GrepCode? Check out our FAQ X