package org.eclipse.emf.ecp.e4.emfstore; | |
import javax.inject.Named; | |
import org.eclipse.e4.core.di.annotations.Execute; | |
import org.eclipse.e4.core.di.annotations.Optional; | |
import org.eclipse.e4.ui.services.IServiceConstants; | |
import org.eclipse.emf.ecp.emfstore.core.internal.EMFStoreProjectWrapper; | |
import org.eclipse.emf.ecp.emfstore.internal.ui.handler.CheckoutBranchHelper; | |
import org.eclipse.swt.widgets.Shell; | |
public class CheckoutBranchHandler { | |
@Execute | |
public void execute(Shell shell, | |
@Named(IServiceConstants.ACTIVE_SELECTION) @Optional EMFStoreProjectWrapper projectWrapper) { | |
if (projectWrapper != null) { | |
CheckoutBranchHelper.checkoutBranch(projectWrapper, shell); | |
} | |
} | |
} |