public interface ESCommitCallback
| Modifier and Type | Field and Description |
|---|---|
static ESCommitCallback |
NOCALLBACK
Default implementation of a callback interface for commit.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
baseVersionOutOfDate(ESLocalProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Called when the project that should be updated is out of date.
|
boolean |
inspectChanges(ESLocalProject project,
ESChangePackage changePackage,
ESModelElementIdToEObjectMapping idToEObjectMapping)
Called right before the actual commit is performed.
|
void |
noLocalChanges(ESLocalProject project)
Called when there are no changes on the given project space.
|
static final ESCommitCallback NOCALLBACK
Default implementation of a callback interface for commit.
Does not veto against updating the project in case it is out of date and returns true for
inspectChanges(ESLocalProject, ESChangePackage, ESModelElementIdToEObjectMapping), such that a commit is
always performed.
boolean baseVersionOutOfDate(ESLocalProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
Called when the project that should be updated is out of date.
A caller may veto against updating the project space by returning false.
project - the project being out of datemonitor - the currently used IProgressMonitortrue, if the caller is willing to update the project, false otherwiseboolean inspectChanges(ESLocalProject project, ESChangePackage changePackage, ESModelElementIdToEObjectMapping idToEObjectMapping)
Called right before the actual commit is performed.
Implementors may veto against the commit by returning false.
project - the project with the local pending changeschangePackage - the actual changes that are up to be inspectedidToEObjectMapping - a mapping from IDs to EObjects and vice versa.ESChangePackages
as well as those contained by the project in the ESLocalProjecttrue, if the commit should continue, false otherwisevoid noLocalChanges(ESLocalProject project)
project - the project that has no local pending changesCopyright © 2017. All rights reserved.