|
|||||||||
| 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.UICreateBranchController
public class UICreateBranchController
UIController for branch creation. Slightly modified copy of the commit controller
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.emf.emfstore.client.callbacks.ESCommitCallback |
|---|
NOCALLBACK |
| Constructor Summary | |
|---|---|
UICreateBranchController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject projectSpace)
Constructor. |
|
UICreateBranchController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject,
BranchVersionSpec branch)
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 projectSpace)
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 UICreateBranchController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject projectSpace)
shell - the parent Shell that should be used during the
creation of the branchprojectSpace - the project space for which to create a branch for
public UICreateBranchController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject,
BranchVersionSpec branch)
shell - the parent Shell that should be used during the
creation of the branchlocalProject - the project space for which to create a branch forbranch - the branch to be committed| Method Detail |
|---|
public void noLocalChanges(ESLocalProject projectSpace)
noLocalChanges in interface ESCommitCallbackprojectSpace - the project that has no local pending changesESCommitCallback.noLocalChanges(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 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 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 ESLocalProject
true, if the commit should continue, false otherwiseESCommitCallback.inspectChanges(ESLocalProject, ESChangePackage,
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 | ||||||||