|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction<T>
org.eclipse.emf.emfstore.internal.client.ui.controller.AbstractEMFStoreUIController<ESPrimaryVersionSpec>
org.eclipse.emf.emfstore.internal.client.ui.controller.UIUpdateProjectController
public class UIUpdateProjectController
UI controller for performing a paged update.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.emf.emfstore.client.callbacks.ESUpdateCallback |
|---|
NOCALLBACK |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.emf.emfstore.internal.client.ui.controller.AbstractEMFStoreUIController |
|---|
confirm, getShell, setShell |
| Methods inherited from class org.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction |
|---|
afterRun, execute, executeSub, isForked, preRun |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIUpdateProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject)
shell - the Shell that will be used during the updatelocalProject - the ESLocalProject that should get updated
public 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 to
public 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 changes| Method Detail |
|---|
public 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 progress
true, 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 ESLocalProject
ESUpdateCallback.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 progress
ESException - in case an error occursMonitoredEMFStoreAction.doRun(org.eclipse.core.runtime.IProgressMonitor)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||