Class BranchCheckoutManager
java.lang.Object
com._1c.g5.v8.dt.internal.team.ui.BranchCheckoutManager
- All Implemented Interfaces:
IBranchCheckoutManager
Allows to check out a branch and observe checkouts.
- First user is asked to save all unsaved changes. However, checkout operation continues even if user refuses to save dirty editors.
- If there is configuration project associated with the repository then user is asked to stash or revert uncomitted changes. Cancellation here means cancellation of checkout operation.
- Once working copy is clean, project (if any) is synchronized with the new state of its resources.
- If any listeners were registered, they are notified that checkout is about to begin.
- Checkout itself happens through EGit.
- If any listeners were registered, they are notified that checkout has finished.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds branch checkout listener.void
checkoutBranch
(org.eclipse.swt.widgets.Shell shell, org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.Ref ref, org.eclipse.core.resources.IProject parentProject) Checks out the provided branch.void
Removes branch checkout listener.
-
Constructor Details
-
BranchCheckoutManager
public BranchCheckoutManager()
-
-
Method Details
-
addCheckoutListener
Description copied from interface:IBranchCheckoutManager
Adds branch checkout listener.- Specified by:
addCheckoutListener
in interfaceIBranchCheckoutManager
- Parameters:
l
- the listener, cannot benull
-
removeCheckoutListener
Description copied from interface:IBranchCheckoutManager
Removes branch checkout listener.- Specified by:
removeCheckoutListener
in interfaceIBranchCheckoutManager
- Parameters:
l
- the listener, cannot benull
-
checkoutBranch
public void checkoutBranch(org.eclipse.swt.widgets.Shell shell, org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.Ref ref, org.eclipse.core.resources.IProject parentProject) Checks out the provided branch.- Parameters:
shell
- the shell, cannot benull
repository
- the git repository, cannot benull
ref
- the branch to checkout, cannot benull
parentProject
- the repository parent project, may benull
if unknown
-