MCPcopy Create free account
hub / github.com/chms/jdotxt / showReloadDialog

Method showReloadDialog

src/com/chschmid/jdotxt/gui/JdotxtGUI.java:260–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258 }
259
260 private void showReloadDialog() {
261 reloadDialogVisible = true;
262 int result = JOptionPane.showOptionDialog(JdotxtGUI.this, lang.getWord("Text_modified"), lang.getWord("Reload"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, null, null);
263 reloadDialogVisible = false;
264 unresolvedFileModification = false;
265 if (result == 0) reloadTasks();
266 else {
267 taskBag.update(null); // Fake a change so that a save really leads to a save
268 toolbar.getButtonSave().setEnabled(true);
269 if (Jdotxt.userPrefs.getBoolean("autosave", false)) {
270 saveTasks(true);
271 System.out.println("Save update");
272 }
273 }
274 }
275
276 // Sets the status bar to the default text "open and total tasks"
277 public void setDefaultStatusText() {

Callers 2

windowGainedFocusMethod · 0.95
runMethod · 0.95

Calls 6

reloadTasksMethod · 0.95
saveTasksMethod · 0.95
getWordMethod · 0.80
getButtonSaveMethod · 0.80
updateMethod · 0.65
setEnabledMethod · 0.45

Tested by

no test coverage detected