Called whenever the modification status of one of the tabs changes. TODO: Move this code into Editor and improve decoupling from EditorTab
()
| 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 |
no test coverage detected