public class UIUpdateProjectController extends AbstractEMFStoreUIController<ESPrimaryVersionSpec> implements ESUpdateCallback
NOCALLBACK| Constructor and Description |
|---|
UIUpdateProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject)
Constructor.
|
UIUpdateProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject,
ESVersionSpec versionSpec)
Constructor.
|
UIUpdateProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject,
int maxChanges)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
conflictOccurred(ESConflictSet changeConflict,
org.eclipse.core.runtime.IProgressMonitor monitor)
Called when local and remote changes overlap.
|
ESPrimaryVersionSpec |
doRun(org.eclipse.core.runtime.IProgressMonitor monitor)
The actual behavior that should be performed when the
MonitoredEMFStoreAction.execute() is called.Must be implemented by clients. |
boolean |
inspectChanges(ESLocalProject localProject,
List<ESChangePackage> changePackages,
ESModelElementIdToEObjectMapping idToEObjectMapping)
Called right before the changes get applied upon the project space.
|
void |
noChangesOnServer()
Called when no remote changes are available.
|
confirm, getShell, setShellafterRun, execute, executeSub, isForked, preRunpublic UIUpdateProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject)
shell - the Shell that will be used during the updatelocalProject - the ESLocalProject that should get updatedpublic UIUpdateProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject,
ESVersionSpec versionSpec)
shell - the Shell that will be used during the updatelocalProject - the ESLocalProject that should get updatedversionSpec - the version to update topublic UIUpdateProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject,
int maxChanges)
shell - the Shell that will be used during the updatelocalProject - the ESLocalProject that should get updatedmaxChanges - the number of maximally allowed changespublic void noChangesOnServer()
noChangesOnServer in interface ESUpdateCallbackESUpdateCallback.noChangesOnServer()public boolean conflictOccurred(ESConflictSet changeConflict, org.eclipse.core.runtime.IProgressMonitor monitor)
conflictOccurred in interface ESUpdateCallbackchangeConflict - the ESConflictSetImpl containing
the changes that led to the conflictmonitor - an IProgressMonitor to report on progresstrue, if the conflict has been resolved, false otherwiseESUpdateCallback.conflictOccurred(org.eclipse.emf.emfstore.server.ESConflictSet,
org.eclipse.core.runtime.IProgressMonitor)public boolean inspectChanges(ESLocalProject localProject, List<ESChangePackage> changePackages, ESModelElementIdToEObjectMapping idToEObjectMapping)
inspectChanges in interface ESUpdateCallbacklocalProject - the ESLocalProject being updatedchangePackages - a list of ESChangePackages that will get applied upon the projectidToEObjectMapping - a mapping from IDs to EObjects and vice versa. Contains
all IDs of model elements involved in the ESChangePackages
as well as those contained by the project in the ESLocalProjectESUpdateCallback.inspectChanges(org.eclipse.emf.emfstore.client.ESLocalProject,
java.util.List, org.eclipse.emf.emfstore.common.model.ESModelElementIdToEObjectMapping)public ESPrimaryVersionSpec doRun(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
MonitoredEMFStoreAction.execute() is called.doRun in class MonitoredEMFStoreAction<ESPrimaryVersionSpec>monitor - 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.