Search in sources :

Example 1 with DBRProcessController

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;
}
Also used : IWorkbenchPart(org.eclipse.ui.IWorkbenchPart) DBRProcessController(org.jkiss.dbeaver.model.runtime.DBRProcessController)

Aggregations

IWorkbenchPart (org.eclipse.ui.IWorkbenchPart)1 DBRProcessController (org.jkiss.dbeaver.model.runtime.DBRProcessController)1