Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2008 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.search;
import  org.eclipse.core.runtime.IProgressMonitor;
public class SubTypeSearchJob extends PatternSearchJob {
public SubTypeSearchJob(SearchPattern patternSearchParticipant participantIJavaSearchScope scopeIndexQueryRequestor requestor) {
	super(patternparticipantscoperequestor);
public void finished() {
	Object[] values = this..;
	for (int i = 0, l = values.lengthi < li++)
		if (values[i] != null)
			((Indexvalues[i]).stopQuery();
public Index[] getIndexes(IProgressMonitor progressMonitor) {
	if (this.. == 0) {
		return super.getIndexes(progressMonitor);
	}
	this. = true// use stored indexes until the job's end
	Index[] values = new Index[this..];
	this..asArray(values);
	return values;
public boolean search(Index index, IProgressMonitor progressMonitor) {
	if (index == nullreturn ;
	if (this..addIfNotIncluded(index) == index)
		index.startQuery();
	return super.search(indexprogressMonitor);
New to GrepCode? Check out our FAQ X