blob: af2bd2f392b70b3c84be239822ef3ac1e3ff4fd4 [file] [log] [blame]
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.internal.ui.handler.MergeBranchHelper;
import org.eclipse.emf.ecp.spi.core.InternalProject;
import org.eclipse.swt.widgets.Shell;
public class MergeBranchHandler {
@Execute
public void execute(Shell shell,
@Named(IServiceConstants.ACTIVE_SELECTION) @Optional InternalProject project) {
if (project != null) {
MergeBranchHelper.mergeBranch(project, shell);
}
}
}