Search in sources :

Example 1 with BuckKillCommandHandler

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);
}
Also used : Project(com.intellij.openapi.project.Project) BuckModule(com.facebook.buck.intellij.ideabuck.config.BuckModule) BuckKillCommandHandler(com.facebook.buck.intellij.ideabuck.build.BuckKillCommandHandler)

Aggregations

BuckKillCommandHandler (com.facebook.buck.intellij.ideabuck.build.BuckKillCommandHandler)1 BuckModule (com.facebook.buck.intellij.ideabuck.config.BuckModule)1 Project (com.intellij.openapi.project.Project)1