Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010 itemis AG ( 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 /
 package org.eclipse.xtext.ui.editor.findrefs;
import  org.eclipse.core.runtime.OperationCanceledException;

Jan Koehnlein - Initial contribution and API
	public SimpleLocalResourceAccess(ResourceSet resourceSet) {
		this. = resourceSet;
	public <R> R readOnly(URI targetURIIUnitOfWork<R, ResourceSetwork) {
		try {
			return work.exec();
catch(OperationCanceledException e) {
			throw e;
catch(Exception exc) {
			throw new WrappedException(exc);
New to GrepCode? Check out our FAQ X