|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.observers.SimpleOperationObserver
public abstract class SimpleOperationObserver
Clients (like GUI classes) who are not interested if an operation has been run forward or backward (i.e. undone) can use this add this listener to project space.
| Constructor Summary | |
|---|---|
SimpleOperationObserver()
|
|
| Method Summary | |
|---|---|
void |
commitCompleted(ESLocalProject localProject,
ESPrimaryVersionSpec newRevision,
org.eclipse.core.runtime.IProgressMonitor monitor)
Called after the commit is completed. |
boolean |
inspectChanges(ESLocalProject localProject,
ESChangePackage changePackage,
org.eclipse.core.runtime.IProgressMonitor monitor)
Called before the commit proceeds. |
void |
operationExecuted(AbstractOperation operation)
Called when an AbstractOperation has been executed. |
abstract void |
operationPerformed(AbstractOperation operation)
Called when an operation has been executed, either forward or backwards (i.e. |
void |
operationUndone(AbstractOperation operation)
Called when an AbstractOperation has been reversed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleOperationObserver()
| Method Detail |
|---|
public void commitCompleted(ESLocalProject localProject,
ESPrimaryVersionSpec newRevision,
org.eclipse.core.runtime.IProgressMonitor monitor)
commitCompleted in interface ESCommitObserverlocalProject - the project on which the commit has completednewRevision - the new revision that was created by the commitmonitor - an IProgressMonitor instance that may be used by clients to inform
about progressESCommitObserver.commitCompleted(org.eclipse.emf.emfstore.client.ESLocalProject,
org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec,
org.eclipse.core.runtime.IProgressMonitor)
public boolean inspectChanges(ESLocalProject localProject,
ESChangePackage changePackage,
org.eclipse.core.runtime.IProgressMonitor monitor)
inspectChanges in interface ESCommitObserverlocalProject - the project the commit occurs onchangePackage - the ESChangePackagemonitor - an IProgressMonitor instance that may be used by clients to inform
about progress
ESCommitObserver.inspectChanges(org.eclipse.emf.emfstore.client.ESLocalProject,
org.eclipse.emf.emfstore.server.model.ESChangePackage, org.eclipse.core.runtime.IProgressMonitor)public void operationExecuted(AbstractOperation operation)
AbstractOperation has been executed.
operationExecuted in interface OperationObserveroperation - the executed operationOperationObserver.operationExecuted(org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation)public void operationUndone(AbstractOperation operation)
AbstractOperation has been reversed.
operationUndone in interface OperationObserveroperation - the operation that has been reversed.AbstractOperation.reverse() on operationOperationObserver.operationUndone(org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation)public abstract void operationPerformed(AbstractOperation operation)
operation - the executed operation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||