1 package com.proalpha.pds.gitutils.cherrypick;
3 import org.eclipse.core.commands.AbstractHandler;
4 import org.eclipse.core.commands.ExecutionEvent;
5 import org.eclipse.core.commands.ExecutionException;
6 import org.eclipse.core.runtime.jobs.Job;
7 import org.eclipse.egit.core.internal.job.RuleUtil;
9 @SuppressWarnings(
"restriction")
13 public Object execute(ExecutionEvent event)
throws ExecutionException {
15 cherryPickJob.setUser(
true);
16 cherryPickJob.setRule(RuleUtil.getRule(
CherryPick.getInstance().getCherryPickCommand().getRepository()));
17 cherryPickJob.schedule();