org.eclipse.xtext.ui.editor.findrefs
Class OpenDocumentTracker
java.lang.Object
org.eclipse.xtext.ui.editor.findrefs.OpenDocumentTracker
public class OpenDocumentTracker
- extends java.lang.Object
Tracks open document to allow easy read access to their already loaded resources.
As the tracking is separated from the access, this avoids deadlocks resulting from the lock order inversion of the UI
lock and the document lock.
- Author:
- Jan Koehnlein - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenDocumentTracker
public OpenDocumentTracker()
initialize
@Inject
protected void initialize(org.eclipse.ui.IWorkbench workbench)
getEntry
protected Pair<org.eclipse.emf.common.util.URI,IXtextDocument> getEntry(org.eclipse.ui.IWorkbenchPartReference partRef)
getResourceURI
protected org.eclipse.emf.common.util.URI getResourceURI(XtextEditor editor)
getOpenDocument
public IXtextDocument getOpenDocument(org.eclipse.emf.common.util.URI resourceURI)