All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy