Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010 itemis AG (http://www.itemis.eu) 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 /
 
 package org.eclipse.xtext.ui.editor.findrefs;
 
import  org.eclipse.core.runtime.IProgressMonitor;
import  org.eclipse.core.runtime.IStatus;
import  org.eclipse.core.runtime.OperationCanceledException;
import  org.eclipse.core.runtime.Status;
import  org.eclipse.search.ui.ISearchQuery;
import  org.eclipse.search.ui.ISearchResult;

Author(s):
Jan Koehnlein - Initial contribution and API
public class ReferenceQuery implements ISearchQuery {
	private String label;
	public ReferenceQuery() {
	}
	public void init(Iterable<URItargetURIsPredicate<IReferenceDescriptionfilterString label) {
		this. = targetURIs;
		this. = label;
		this. = filter;
	}
	public boolean canRerun() {
		return true;
	}
	public boolean canRunInBackground() {
		return true;
	}
	public String getLabel() {
		return ;
	}
		return ;
	}
	public ISearchResult getSearchResult() {
		return ;
	}
	public IStatus run(IProgressMonitor monitorthrows OperationCanceledException {
		return (monitor.isCanceled()) ? Status.CANCEL_STATUS : Status.OK_STATUS;
	}
		return new ReferenceSearchResult(this);
	}
New to GrepCode? Check out our FAQ X