package com.googlecode.goclipse.ui.actions;
import melnorme.lang.ide.core.operations.RunEngineClientOperation;
import melnorme.utilbox.core.CommonException;
import melnorme.utilbox.process.ExternalProcessHelper.ExternalProcessResult;
import org.eclipse.core.runtime.IProgressMonitor;
import com.googlecode.goclipse.core.operations.GoToolManager;
import com.googlecode.goclipse.tooling.env.GoEnvironment;
import com.googlecode.goclipse.tooling.gocode.GocodeCompletionOperation;
public class GocodeClient extends GocodeCompletionOperation<CommonException> {
protected final IProgressMonitor pm;
public GocodeClient(String gocodePath, GoEnvironment goEnvironment, IProgressMonitor pm) {
super(goEnvironment, gocodePath);
this.pm = pm;
}
@Override
protected ExternalProcessResult runGocodeProcess(ProcessBuilder pb, String input) throws CommonException {
return new RunEngineClientOperation(GoToolManager.getDefault(), pb, pm).doRunProcess(input, false);
}
}