Skip to content

Package: CheckoutBranchHelper

CheckoutBranchHelper

nameinstructionbranchcomplexitylinemethod
checkoutBranch(EMFStoreProjectWrapper, Shell)
M: 10 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2014 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.emfstore.internal.ui.handler;
15:
16: import org.eclipse.emf.ecp.emfstore.core.internal.EMFStoreProjectWrapper;
17: import org.eclipse.emf.emfstore.internal.client.ui.controller.UICheckoutController;
18: import org.eclipse.swt.widgets.Shell;
19:
20: /**
21: * This is the EMFStore Checkout Branch Helper delegating to the EMFStore {@link UICheckoutController}.
22: *
23: * @author Eugen Neufeld
24: *
25: */
26: public final class CheckoutBranchHelper {
27:         private CheckoutBranchHelper() {
28:         }
29:
30:         /**
31:          * Delegates the call to {@link UICheckoutController}.
32:          *
33:          * @param projectWrapper the {@link EMFStoreProjectWrapper}
34:          * @param shell the {@link Shell}
35:          */
36:         public static void checkoutBranch(EMFStoreProjectWrapper projectWrapper, Shell shell) {
37:                 new UICheckoutController(shell, projectWrapper.getCheckoutData(), true).execute();
38:         }
39: }