use of com.facebook.buck.intellij.ideabuck.build.BuckKillCommandHandler in project buck by facebook.
the class BuckKillAction method executeOnPooledThread.
@Override
public void executeOnPooledThread(final AnActionEvent e) {
Project project = e.getProject();
// stop the current running process
BuckBuildManager.getInstance(project).getCurrentRunningBuckCommandHandler().stop();
BuckModule buckModule = project.getComponent(BuckModule.class);
// run the buck kill command
BuckKillCommandHandler handler = new BuckKillCommandHandler(project, project.getBaseDir(), BuckCommand.KILL);
BuckBuildManager.getInstance(project).runBuckCommandWhileConnectedToBuck(handler, ACTION_TITLE, buckModule);
}
Aggregations