public class DocumentBasedDirtyResource extends java.lang.Object implements IDirtyResource.NormalizedURISupportExtension, com.google.inject.Provider<IResourceDescription>
IDirtyResource.NormalizedURISupportExtension
Constructor and Description |
---|
DocumentBasedDirtyResource() |
Modifier and Type | Method and Description |
---|---|
void |
connect(IXtextDocument document) |
void |
copyState(IResourceDescription original) |
void |
disconnect(IXtextDocument document) |
IResourceDescription |
get()
Callback method for the copied resource description.
|
java.lang.String |
getActualContents() |
java.lang.String |
getContents() |
IResourceDescription |
getDescription() |
org.eclipse.emf.common.util.URI |
getNormalizedURI() |
IXtextDocument |
getUnderlyingDocument() |
org.eclipse.emf.common.util.URI |
getURI() |
protected void |
initiallyProcessResource(XtextResource resource) |
boolean |
isInitialized() |
public void connect(IXtextDocument document)
protected void initiallyProcessResource(XtextResource resource)
public void disconnect(IXtextDocument document)
public IResourceDescription get()
get
in interface javax.inject.Provider<IResourceDescription>
null
.public void copyState(IResourceDescription original)
public IXtextDocument getUnderlyingDocument()
public boolean isInitialized()
public org.eclipse.emf.common.util.URI getURI()
getURI
in interface IDirtyResource
null
.public IResourceDescription getDescription()
getDescription
in interface IDirtyResource
null
.public java.lang.String getContents()
getContents
in interface IDirtyResource
null
. May be the content of a
snapshot.public java.lang.String getActualContents()
getActualContents
in interface IDirtyResource
null
.public org.eclipse.emf.common.util.URI getNormalizedURI()
getNormalizedURI
in interface IDirtyResource.NormalizedURISupportExtension
null
.