org.eclipse.xtext.ui.editor.findrefs
Class EditorResourceAccess

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.findrefs.EditorResourceAccess
All Implemented Interfaces:
IReferenceFinder.ILocalResourceAccess

public class EditorResourceAccess
extends java.lang.Object
implements IReferenceFinder.ILocalResourceAccess

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
EditorResourceAccess()
           
 
Method Summary
protected  IXtextDocument getOpenDocument(org.eclipse.emf.common.util.URI targetURI)
           
<R> R
readOnly(org.eclipse.emf.common.util.URI targetURI, IUnitOfWork<R,org.eclipse.emf.ecore.resource.ResourceSet> work)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorResourceAccess

public EditorResourceAccess()
Method Detail

readOnly

public <R> R readOnly(org.eclipse.emf.common.util.URI targetURI,
                      IUnitOfWork<R,org.eclipse.emf.ecore.resource.ResourceSet> work)
Specified by:
readOnly in interface IReferenceFinder.ILocalResourceAccess

getOpenDocument

protected IXtextDocument getOpenDocument(org.eclipse.emf.common.util.URI targetURI)
                                  throws java.lang.Exception
Throws:
java.lang.Exception