public class CommandStackListener extends Object implements org.eclipse.emf.common.command.CommandStackListener
| Constructor and Description |
|---|
CommandStackListener(org.eclipse.emf.common.command.CommandStack commandStack,
org.eclipse.emf.ecore.resource.Resource historyResource)
Constructor.
|
| Modifier and Type | Method and 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.
|
public CommandStackListener(org.eclipse.emf.common.command.CommandStack commandStack,
org.eclipse.emf.ecore.resource.Resource historyResource)
public void beginListening()
public void endListening()
public boolean isListening()
public void resetRecorder()
public void commandStackChanged(EventObject event)
commandStackChanged in interface org.eclipse.emf.common.command.CommandStackListenerpublic History getHistory()
public List<org.eclipse.emf.ecore.EPackage> getHistoryRootPackages()
Copyright © 2020. All rights reserved.