Class CommandStackListener
- java.lang.Object
-
- org.eclipse.emf.edapt.history.recorder.CommandStackListener
-
- All Implemented Interfaces:
org.eclipse.emf.common.command.CommandStackListener
public class CommandStackListener extends Object implements org.eclipse.emf.common.command.CommandStackListener
Listens to command stack of an Ecore editor and collects changes to current metamodel release.- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Constructor Summary
Constructors Constructor Description CommandStackListener(org.eclipse.emf.common.command.CommandStack commandStack, org.eclipse.emf.ecore.resource.Resource historyResource)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginListening()
Activate listener.void
commandStackChanged(EventObject event)
void
endListening()
Deactivate listener.History
getHistory()
Get the history that is listened to.List<org.eclipse.emf.ecore.EPackage>
getHistoryRootPackages()
Get all root packages which are listened to.boolean
isListening()
Returns listening.void
resetRecorder()
Reset the recorder if it no longer works on the real metamodel.
-
-
-
Method Detail
-
beginListening
public void beginListening()
Activate listener.
-
endListening
public void endListening()
Deactivate listener.
-
isListening
public boolean isListening()
Returns listening.
-
resetRecorder
public void resetRecorder()
Reset the recorder if it no longer works on the real metamodel.
-
commandStackChanged
public void commandStackChanged(EventObject event)
- Specified by:
commandStackChanged
in interfaceorg.eclipse.emf.common.command.CommandStackListener
-
getHistory
public History getHistory()
Get the history that is listened to.
-
getHistoryRootPackages
public List<org.eclipse.emf.ecore.EPackage> getHistoryRootPackages()
Get all root packages which are listened to.
-
-