org.eclipse.emf.emfstore.internal.client.model.controller
Class CommitController

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.connectionmanager.ServerCall<PrimaryVersionSpec>
      extended by org.eclipse.emf.emfstore.internal.client.model.controller.CommitController
All Implemented Interfaces:
APIDelegate<ESServerCall>

public class CommitController
extends ServerCall<PrimaryVersionSpec>

The controller responsible for performing a commit.

Author:
wesendon

Constructor Summary
CommitController(ProjectSpaceBase projectSpace, BranchVersionSpec branch, String logMessage, ESCommitCallback callback, org.eclipse.core.runtime.IProgressMonitor monitor)
          Branching Constructor.
CommitController(ProjectSpaceBase projectSpace, String logMessage, ESCommitCallback callback, org.eclipse.core.runtime.IProgressMonitor monitor)
          Constructor.
 
Method Summary
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.model.connectionmanager.ServerCall
createAPI, execute, getProgressMonitor, getProjectSpace, getServer, getUsersession, run, setProgressMonitor, setServer, setSessionId, setUsersession, toAPI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitController

public CommitController(ProjectSpaceBase projectSpace,
                        String logMessage,
                        ESCommitCallback callback,
                        org.eclipse.core.runtime.IProgressMonitor monitor)
Constructor.

Parameters:
projectSpace - the project space whose pending changes should be commited
logMessage - a log message documenting the commit
callback - an callback that will be called during and at the end of the commit. May be null.
monitor - an IProgressMonitor that will be used to inform clients about the commit progress. May be null.

CommitController

public CommitController(ProjectSpaceBase projectSpace,
                        BranchVersionSpec branch,
                        String logMessage,
                        ESCommitCallback callback,
                        org.eclipse.core.runtime.IProgressMonitor monitor)
Branching Constructor.

Parameters:
projectSpace - the project space whose pending changes should be committed
branch - Specification of the branch to which the changes should be committed.
logMessage - a log message documenting the commit
callback - an callback that will be called during and at the end of the commit. May be null.
monitor - an IProgressMonitor that will be used to inform clients about the commit progress. May be null.


Copyright © 2015. All Rights Reserved.