use of org.jkiss.dbeaver.model.runtime.DBRProcessController in project dbeaver by serge-rider.
the class ShellProcessStopHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchPart activePart = HandlerUtil.getActivePart(event);
if (activePart instanceof DBRProcessController) {
DBRProcessController view = (DBRProcessController) activePart;
view.terminateProcess();
}
return null;
}
Aggregations