private void execAsync(Runnable process, TaskInfo task, Frame frame) { ApplicationManagerEx.getApplicationEx() .runProcessWithProgressSynchronously( process, task.getTitle(), task.isCancellable(), project, SwingUtilities.getRootPane(frame)); }
private Object startCommand(TaskInfo task) { return ((CommandProcessorEx) CommandProcessor.getInstance()) .startCommand(project, task.getTitle(), null, UndoConfirmationPolicy.REQUEST_CONFIRMATION); }