Class 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 Detail

      • CommandStackListener

        public CommandStackListener​(org.eclipse.emf.common.command.CommandStack commandStack,
                                    org.eclipse.emf.ecore.resource.Resource historyResource)
        Constructor.
    • 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 interface org.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.