Eclipseplugins
ResumeCherryPickHandler.java
1 package com.proalpha.pds.gitutils.cherrypick;
2 
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;
8 
9 @SuppressWarnings("restriction")
10 public class ResumeCherryPickHandler extends AbstractHandler {
11 
12  @Override
13  public Object execute(ExecutionEvent event) throws ExecutionException {
14  Job cherryPickJob = new CherryPickJob(CherryPick.getInstance().getCherryPickResult().getOpenPicks().size());
15  cherryPickJob.setUser(true);
16  cherryPickJob.setRule(RuleUtil.getRule(CherryPick.getInstance().getCherryPickCommand().getRepository()));
17  cherryPickJob.schedule();
18  return null;
19  }
20 
21 }