|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ESCommitCallback
Callback interface for implementors that are interested in influencing the actual commit behavior.
Field Summary | |
---|---|
static ESCommitCallback |
NOCALLBACK
Default implementation of a callback interface for commit. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
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.
Method Detail |
---|
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 IProgressMonitor
true
, 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.ESChangePackage
s
as well as those contained by the project in the ESLocalProject
true
, if the commit should continue, false
otherwisevoid noLocalChanges(ESLocalProject project)
project
- the project that has no local pending changes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |