org.eclipse.xtext.ui.editor
Interface IDirtyResource

All Known Implementing Classes:
DocumentBasedDirtyResource, PersistentDataAwareDirtyResource

public interface IDirtyResource

Representation of a resource that is currently edited. The accessible values may represent a cached, intermediate state of the resource. They are not necessarily a live view on the underlying resource.

Author:
Sebastian Zarnekow - Initial contribution and API

Method Summary
 java.lang.String getActualContents()
           
 java.lang.String getContents()
           
 IResourceDescription getDescription()
           
 org.eclipse.emf.common.util.URI getURI()
           
 

Method Detail

getContents

java.lang.String getContents()
Returns:
the content of the resource as text, never null. May be the content of a snapshot.

getActualContents

java.lang.String getActualContents()
Returns:
the current content of the underlying document or resource as text, never null.

getDescription

IResourceDescription getDescription()
Returns:
the description of the resource, never null.

getURI

org.eclipse.emf.common.util.URI getURI()
Returns:
the URI of the resource, never null.