MCPcopy
hub / github.com/arduino/Arduino / calcModified

Method calcModified

app/src/processing/app/SketchController.java:286–295  ·  view source on GitHub ↗

Called whenever the modification status of one of the tabs changes. TODO: Move this code into Editor and improve decoupling from EditorTab

()

Source from the content-addressed store, hash-verified

284 * Move this code into Editor and improve decoupling from EditorTab
285 */
286 public void calcModified() {
287 editor.header.repaint();
288
289 if (OSUtils.isMacOS()) {
290 // http://developer.apple.com/qa/qa2001/qa1146.html
291 Object modifiedParam = sketch.isModified() ? Boolean.TRUE : Boolean.FALSE;
292 editor.getRootPane().putClientProperty("windowModified", modifiedParam);
293 editor.getRootPane().putClientProperty("Window.documentModified", modifiedParam);
294 }
295 }
296
297
298

Callers 2

ensureExistenceMethod · 0.95
setModifiedMethod · 0.80

Calls 2

isMacOSMethod · 0.95
isModifiedMethod · 0.65

Tested by

no test coverage detected