public class UICommitProjectController extends AbstractEMFStoreUIController<ESPrimaryVersionSpec> implements ESCommitCallback
ESLocalProject.NOCALLBACK| Constructor and Description |
|---|
UICommitProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
baseVersionOutOfDate(ESLocalProject projectSpace,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Called when the project that should be updated is out of date.
|
ESPrimaryVersionSpec |
doRun(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
The actual behavior that should be performed when the
MonitoredEMFStoreAction.execute() is called.Must be implemented by clients. |
boolean |
inspectChanges(ESLocalProject localProject,
ESChangePackage changePackage,
ESModelElementIdToEObjectMapping idToEObjectMapping)
Called right before the actual commit is performed.
|
void |
noLocalChanges(ESLocalProject localProject)
Called when there are no changes on the given project space.
|
confirm, getShell, setShellafterRun, execute, executeSub, isForked, preRunpublic UICommitProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject)
shell - the parent shell that will be used during commitlocalProject - the ESLocalProject that contains the pending changes
that should get committedpublic void noLocalChanges(ESLocalProject localProject)
noLocalChanges in interface ESCommitCallbacklocalProject - the project that has no local pending changesESCommitCallback.noLocalChanges(org.eclipse.emf.emfstore.client.ESLocalProject)public boolean baseVersionOutOfDate(ESLocalProject projectSpace, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Called when the project that should be updated is out of date.
A caller may veto against updating the project space by returning false.
baseVersionOutOfDate in interface ESCommitCallbackprojectSpace - the project being out of dateprogressMonitor - the currently used IProgressMonitortrue, if the caller is willing to update the project, false otherwiseESCommitCallback.baseVersionOutOfDate(ESLocalProject,
IProgressMonitor)public boolean inspectChanges(ESLocalProject localProject, ESChangePackage changePackage, ESModelElementIdToEObjectMapping idToEObjectMapping)
Called right before the actual commit is performed.
Implementors may veto against the commit by returning false.
inspectChanges in interface ESCommitCallbacklocalProject - 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 otherwiseESCommitCallback.inspectChanges(org.eclipse.emf.emfstore.client.ESLocalProject,
org.eclipse.emf.emfstore.server.model.ESChangePackage,
org.eclipse.emf.emfstore.common.model.ESModelElementIdToEObjectMapping)public ESPrimaryVersionSpec doRun(org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws ESException
MonitoredEMFStoreAction.execute() is called.doRun in class MonitoredEMFStoreAction<ESPrimaryVersionSpec>progressMonitor - the IProgressMonitor that should be used by clients to
update the status of their progressESException - in case an error occursMonitoredEMFStoreAction.doRun(org.eclipse.core.runtime.IProgressMonitor)Copyright © 2017. All rights reserved.