17781779178017811782178317841785178617871788
}, false); } else { saveCommand.execute(); } } catch (Exception e) { indicator.onError(e.toString());
20492050205120522053205420552056205720582059
}; if (dirtyState_.getValue()) saveWithPrompt(showDiffCommand, null); else showDiffCommand.execute(); } @Handler void onVcsFileLog() {
32233224322532263227322832293230323132323233
}; if (saveWhenSourcing && (dirtyState_.getValue() || (getPath() == null))) saveThenExecute(null, sourceCommand); else sourceCommand.execute(); } } // update pref if necessary if (prefs_.sourceWithEcho().getValue() != echo)
35123513351435153516351735183519352035213522
{ @Override public void execute() { showPreviewWindowCommand.execute(); runPreviewCommand.execute(); } }); } }); }
35373538353935403541354235433544354535463547
} // otherwise show the preview window then run the preview else { showPreviewWindowCommand.execute(); runPreviewCommand.execute(); } } private void generateNotebook(final Command executeOnSuccess) {
364365366367368369370371372373374
// do standrd finish if we aren't animating if (!event.shouldAnimate()) { display.clear(); display.setText(event.getCode()); finishSendToConsole.execute(); } else { inputAnimator_.enque(event.getCode(), finishSendToConsole); }
115116117118119120121122123124125
commit, new ServerRequestCallback<Void>() { @Override public void onResponseReceived(Void response) { dismissProgress.execute(); } @Override public void onError(ServerError error) {
121122123124125126127128129130131
} @Override public void onError(ServerError error) { dismissProgress.execute(); globalDisplay_.showErrorMessage("File Upload Error", error.getUserMessage()); } }); }
166167168169170171172173174175176
dependencyManager_.withShiny("Running shiny documents", callReadyCommand); } else { callReadyCommand.execute(); } } }); }
770771772773774775776777778779780
result.getContents(), null); } else { createEmptyDoc.execute(); } } }); }