|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.UICommitProjectController
public class UICommitProjectController
UI-dependent commit controller for committing pending changes on a ESLocalProject
.
The controller presents the user a dialog will all changes made before he is
able to confirm the commit. If no changes have been made by the user a
information dialog is presented that states that there are no pending changes
to be committed.
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.emfstore.client.callbacks.ESCommitCallback |
---|
NOCALLBACK |
Constructor Summary | |
---|---|
UICommitProjectController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject)
Constructor. |
Method Summary | |
---|---|
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. |
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 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 committedMethod Detail |
---|
public void noLocalChanges(ESLocalProject localProject)
noLocalChanges
in interface ESCommitCallback
localProject
- 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 ESCommitCallback
projectSpace
- the project being out of dateprogressMonitor
- the currently used IProgressMonitor
true
, 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 ESCommitCallback
localProject
- 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
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 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 |