org.eclipse.xtext.ui.editor.model.edit
Class DefaultTextEditComposer

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.emf.ecore.util.EContentAdapter
          extended by org.eclipse.xtext.ui.editor.model.edit.DefaultTextEditComposer
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, ITextEditComposer

public class DefaultTextEditComposer
extends org.eclipse.emf.ecore.util.EContentAdapter
implements ITextEditComposer

Author:
Knut Wannheden - Initial contribution and API, Jan Koehnlein

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
DefaultTextEditComposer()
           
 
Method Summary
 void beginRecording(org.eclipse.emf.ecore.resource.Resource newResource)
           
protected  boolean doRecord(org.eclipse.emf.common.notify.Notification notification)
           
 org.eclipse.text.edits.TextEdit endRecording()
           
protected  java.util.Collection<org.eclipse.emf.ecore.EObject> getModifiedObjects()
           
protected  java.util.List<org.eclipse.text.edits.TextEdit> getObjectEdits()
           
protected  SaveOptions getSaveOptions()
           
 org.eclipse.text.edits.TextEdit getTextEdit()
           
 void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
           
protected  void recordObjectModification(org.eclipse.emf.ecore.EObject obj)
           
protected  void recordResourceModification(org.eclipse.emf.ecore.resource.Resource notifier)
           
protected  void reset()
           
 void setSerializer(ISerializer serializer)
          If used in a non-Guice environment, we need to be able to set this.
 void setSerializerUtil(ISerializer serializer)
          Deprecated. 
 
Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter
addAdapter, basicSetTarget, basicUnsetTarget, handleContainment, removeAdapter, resolve, selfAdapt, setTarget, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTextEditComposer

public DefaultTextEditComposer()
Method Detail

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter
Overrides:
notifyChanged in class org.eclipse.emf.ecore.util.EContentAdapter

recordObjectModification

protected void recordObjectModification(org.eclipse.emf.ecore.EObject obj)

recordResourceModification

protected void recordResourceModification(org.eclipse.emf.ecore.resource.Resource notifier)

getModifiedObjects

protected java.util.Collection<org.eclipse.emf.ecore.EObject> getModifiedObjects()

doRecord

protected boolean doRecord(org.eclipse.emf.common.notify.Notification notification)

reset

protected void reset()

beginRecording

public void beginRecording(org.eclipse.emf.ecore.resource.Resource newResource)
Specified by:
beginRecording in interface ITextEditComposer

endRecording

public org.eclipse.text.edits.TextEdit endRecording()
Specified by:
endRecording in interface ITextEditComposer

getTextEdit

public org.eclipse.text.edits.TextEdit getTextEdit()
Specified by:
getTextEdit in interface ITextEditComposer

getObjectEdits

protected java.util.List<org.eclipse.text.edits.TextEdit> getObjectEdits()

getSaveOptions

protected SaveOptions getSaveOptions()

setSerializerUtil

@Deprecated
public void setSerializerUtil(ISerializer serializer)
Deprecated. 


setSerializer

public void setSerializer(ISerializer serializer)
If used in a non-Guice environment, we need to be able to set this.

Since:
2.0