Class DirtyStateListener
- java.lang.Object
-
- org.yakindu.base.xtext.utils.gmf.resource.DirtyStateListener
-
- All Implemented Interfaces:
EventListener
,org.eclipse.emf.transaction.ResourceSetListener
public class DirtyStateListener extends Object implements org.eclipse.emf.transaction.ResourceSetListener
Some content of this class is initially copied from org.eclipse.xtext.gmf.glue.concurrency.EditingDomainAdapter and adopted to work onXMIResource
s
-
-
Constructor Summary
Constructors Constructor Description DirtyStateListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
createAndRegisterDirtyState(XMIResource resource)
protected org.eclipse.xtext.ui.editor.IDirtyResource
createDirtyResource(XMIResource resource)
void
dispose()
org.eclipse.emf.transaction.NotificationFilter
getFilter()
boolean
isAggregatePrecommitListener()
boolean
isPostcommitOnly()
boolean
isPrecommitOnly()
void
resourceSetChanged(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
Command
transactionAboutToCommit(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
-
-
-
Method Detail
-
resourceSetChanged
public void resourceSetChanged(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
- Specified by:
resourceSetChanged
in interfaceorg.eclipse.emf.transaction.ResourceSetListener
-
createAndRegisterDirtyState
protected boolean createAndRegisterDirtyState(XMIResource resource)
-
createDirtyResource
protected org.eclipse.xtext.ui.editor.IDirtyResource createDirtyResource(XMIResource resource)
-
dispose
public void dispose()
-
transactionAboutToCommit
public Command transactionAboutToCommit(org.eclipse.emf.transaction.ResourceSetChangeEvent event) throws org.eclipse.emf.transaction.RollbackException
- Specified by:
transactionAboutToCommit
in interfaceorg.eclipse.emf.transaction.ResourceSetListener
- Throws:
org.eclipse.emf.transaction.RollbackException
-
isAggregatePrecommitListener
public boolean isAggregatePrecommitListener()
- Specified by:
isAggregatePrecommitListener
in interfaceorg.eclipse.emf.transaction.ResourceSetListener
-
isPostcommitOnly
public boolean isPostcommitOnly()
- Specified by:
isPostcommitOnly
in interfaceorg.eclipse.emf.transaction.ResourceSetListener
-
isPrecommitOnly
public boolean isPrecommitOnly()
- Specified by:
isPrecommitOnly
in interfaceorg.eclipse.emf.transaction.ResourceSetListener
-
getFilter
public org.eclipse.emf.transaction.NotificationFilter getFilter()
- Specified by:
getFilter
in interfaceorg.eclipse.emf.transaction.ResourceSetListener
-
-