org.openlca.git.actions.GitProgressAction Maven / Gradle / Ivy
The newest version!
package org.openlca.git.actions;
import java.io.IOException;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.openlca.git.util.ProgressMonitor;
public abstract class GitProgressAction {
protected ProgressMonitor progressMonitor = ProgressMonitor.NULL;
public GitProgressAction withProgress(ProgressMonitor progressMonitor) {
this.progressMonitor = progressMonitor != null ? progressMonitor : ProgressMonitor.NULL;
return this;
}
public abstract T run() throws IOException, GitAPIException;
}