org.eclipse.xtext.ui.editor.model.edit
Class DefaultTextEditComposer
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.ecore.util.EContentAdapter
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 classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
target |
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 |
DefaultTextEditComposer
public DefaultTextEditComposer()
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