MCPcopy Index your code
hub / github.com/processing/processing / calcModified

Method calcModified

app/src/processing/app/Sketch.java:758–774  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

756
757
758 protected void calcModified() {
759 modified = false;
760 for (int i = 0; i < codeCount; i++) {
761 if (code[i].isModified()) {
762 modified = true;
763 break;
764 }
765 }
766 editor.repaintHeader();
767
768 if (Platform.isMacOS()) {
769 // http://developer.apple.com/qa/qa2001/qa1146.html
770 Object modifiedParam = modified ? Boolean.TRUE : Boolean.FALSE;
771 // https://developer.apple.com/library/mac/technotes/tn2007/tn2196.html#WINDOW_DOCUMENTMODIFIED
772 editor.getRootPane().putClientProperty("Window.documentModified", modifiedParam);
773 }
774 }
775
776
777 public boolean isModified() {

Callers 4

setModifiedMethod · 0.95
saveMethod · 0.95
updateInternalMethod · 0.95
ensureExistenceMethod · 0.95

Calls 3

isMacOSMethod · 0.95
repaintHeaderMethod · 0.80
isModifiedMethod · 0.45

Tested by

no test coverage detected