Class EditingDomainListener
- java.lang.Object
-
- org.eclipse.emf.edapt.history.recorder.EditingDomainListener
-
public class EditingDomainListener extends Object
Listener for anEditingDomain
.- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Constructor Summary
Constructors Constructor Description EditingDomainListener(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHistory(org.eclipse.emf.ecore.resource.Resource metamodel)
Add a metamodel resource to the history.void
addResourceListener(IResourceLoadListener listener)
Add a listener.void
beginListening()
Start the listener.void
createHistory(List<org.eclipse.emf.ecore.resource.Resource> metamodelResources)
Create history for a certain metamodel.void
createHistory(List<org.eclipse.emf.ecore.resource.Resource> metamodelResources, org.eclipse.emf.common.util.URI historyURI)
Create history for a certain metamodel.void
endListening()
Stop the listener.org.eclipse.emf.edit.domain.EditingDomain
getEditingDomain()
Returns editingDomain.MetamodelExtent
getExtent()
Returns extent.History
getHistory()
Get the history that is listened to.boolean
isListening()
Returns listening.boolean
isRecorded(org.eclipse.emf.ecore.resource.Resource metamodel)
Check whether the history is already recorded for a metamodel.boolean
loadHistory()
Load the history from a metamodel resourcevoid
release()
Release a metamodel.void
removeResourceListener(IResourceLoadListener listener)
Remove a listener.void
resetRecorder()
Reset the recorder if it no longer works on the real metamodel.
-
-
-
Method Detail
-
beginListening
public void beginListening()
Start the listener.
-
endListening
public void endListening()
Stop the listener.
-
isListening
public boolean isListening()
Returns listening.
-
resetRecorder
public void resetRecorder()
Reset the recorder if it no longer works on the real metamodel.
-
loadHistory
public boolean loadHistory()
Load the history from a metamodel resource
-
isRecorded
public boolean isRecorded(org.eclipse.emf.ecore.resource.Resource metamodel)
Check whether the history is already recorded for a metamodel.
-
addHistory
public void addHistory(org.eclipse.emf.ecore.resource.Resource metamodel)
Add a metamodel resource to the history.
-
createHistory
public void createHistory(List<org.eclipse.emf.ecore.resource.Resource> metamodelResources)
Create history for a certain metamodel.
-
createHistory
public void createHistory(List<org.eclipse.emf.ecore.resource.Resource> metamodelResources, org.eclipse.emf.common.util.URI historyURI)
Create history for a certain metamodel.
-
release
public void release()
Release a metamodel.
-
getHistory
public History getHistory()
Get the history that is listened to.- Returns:
- the history. may be
null
if it cannot be loaded
-
getEditingDomain
public org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
Returns editingDomain.
-
getExtent
public MetamodelExtent getExtent()
Returns extent.
-
addResourceListener
public void addResourceListener(IResourceLoadListener listener)
Add a listener.
-
removeResourceListener
public void removeResourceListener(IResourceLoadListener listener)
Remove a listener.
-
-