Eclipseplugins
CompileDeltaHandler.java
1 package com.proalpha.pds.gitutils.checks;
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 
8 public class CompileDeltaHandler extends AbstractHandler {
9 
10  @Override
11  public Object execute(ExecutionEvent event) throws ExecutionException {
12 
13  RepositoryTools repositoryTools = new RepositoryTools(event);
14 
15  // set the name for the input file
16  String relativeCompFile = String.format("delta_branchfiles.inp");
17 
18  CompileOptions options = new CompileOptions();
19  options.type = CompileType.DELTA;
20  options.compilerInputFileName = relativeCompFile;
21 
22  Job compileJob = new CompileJob("Delta compile - collect files to compile",
23  repositoryTools, options);
24  compileJob.setUser(true);
25 
26  compileJob.schedule();
27 
28  return null;
29  }
30 
31 }