Class DiagramChangeListener

  • All Implemented Interfaces:
    java.util.EventListener, org.eclipse.emf.transaction.ResourceSetListener

    public class DiagramChangeListener
    extends java.lang.Object
    implements org.eclipse.emf.transaction.ResourceSetListener
    Listener for model changes in the notational model. Is attached to the ResourceSet provided by the DiagramEditorInternal.
    • Constructor Detail

      • DiagramChangeListener

        public DiagramChangeListener​(DiagramBehavior diagramBehavior)
    • Method Detail

      • getFilter

        public org.eclipse.emf.transaction.NotificationFilter getFilter()
        Specified by:
        getFilter in interface org.eclipse.emf.transaction.ResourceSetListener
      • isAggregatePrecommitListener

        public boolean isAggregatePrecommitListener()
        Specified by:
        isAggregatePrecommitListener in interface org.eclipse.emf.transaction.ResourceSetListener
      • isPostcommitOnly

        public boolean isPostcommitOnly()
        Specified by:
        isPostcommitOnly in interface org.eclipse.emf.transaction.ResourceSetListener
      • isPrecommitOnly

        public boolean isPrecommitOnly()
        Specified by:
        isPrecommitOnly in interface org.eclipse.emf.transaction.ResourceSetListener
      • resourceSetChanged

        public void resourceSetChanged​(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
        Specified by:
        resourceSetChanged in interface org.eclipse.emf.transaction.ResourceSetListener
      • transactionAboutToCommit

        public org.eclipse.emf.common.command.Command transactionAboutToCommit​(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
                                                                        throws org.eclipse.emf.transaction.RollbackException
        Specified by:
        transactionAboutToCommit in interface org.eclipse.emf.transaction.ResourceSetListener
        Throws:
        org.eclipse.emf.transaction.RollbackException
      • stopListening

        public boolean stopListening()