Package com._1c.g5.v8.dt.team.ui
Interface IBranchCheckoutContext
-
public interface IBranchCheckoutContext
The branch checkout context. Provides information about the checkout and means for progress reporting.- See Also:
IBranchCheckoutListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.core.runtime.IProgressMonitor
getProgressMonitor()
org.eclipse.jgit.lib.Repository
getRepository()
org.eclipse.jgit.lib.Ref
getTarget()
void
setExtraWork(double work)
Sets the relative amount of work, which the listener is going to consume from the total checkout operation progress.
-
-
-
Method Detail
-
getRepository
org.eclipse.jgit.lib.Repository getRepository()
- Returns:
- the repository to checkout, never
null
-
getTarget
org.eclipse.jgit.lib.Ref getTarget()
- Returns:
- the target
ref
, nevernull
-
setExtraWork
void setExtraWork(double work)
Sets the relative amount of work, which the listener is going to consume from the total checkout operation progress. The checkout itself is assumed to take 1.0 units of work.This method has nothing to do with the amount of work, allocated with
IProgressMonitor.beginTask(String, int)
orSubMonitor.setWorkRemaining(int)
.For example, if execution of
beforeCheckout
andafterCheckout
is expected to be two times faster than checkout, the listener must callsetExtraWork(0.5)
. Then it may report progress with an arbitrary granularity, controlled with the methods ofIProgressMonitor
andSubMonitor
.- Parameters:
work
- the relative work units, must not be negative
-
getProgressMonitor
org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
- Returns:
- the progress monitor to report listener's progress, never
null
-
-