Package com.googlecode.goclipse.ui.actions

Source Code of com.googlecode.goclipse.ui.actions.GocodeClient

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);
  }
 
}
TOP

Related Classes of com.googlecode.goclipse.ui.actions.GocodeClient

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.