public class UICreateBranchController extends AbstractEMFStoreUIController<ESPrimaryVersionSpec> implements ESCommitCallback
NOCALLBACK| Constructor and Description |
|---|
UICreateBranchController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject projectSpace)
Constructor.
|
UICreateBranchController(org.eclipse.swt.widgets.Shell shell,
ESLocalProject localProject,
BranchVersionSpec branch)
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 projectSpace)
Called when there are no changes on the given project space.
|
confirm, getShell, setShellafterRun, execute, executeSub, isForked, preRunpublic 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 forpublic 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 committedpublic 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 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(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 progressESException - in case an error occursMonitoredEMFStoreAction.doRun(org.eclipse.core.runtime.IProgressMonitor)Copyright © 2017. All rights reserved.