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

Method updateTitle

app/src/processing/app/ui/Editor.java:2607–2620  ·  view source on GitHub ↗

Set the title of the PDE window based on the current sketch, i.e. something like "sketch_070752a - Processing 0126"

()

Source from the content-addressed store, hash-verified

2605 * something like "sketch_070752a - Processing 0126"
2606 */
2607 public void updateTitle() {
2608 setTitle(sketch.getName() + " | Processing " + Base.getVersionName());
2609
2610 if (!sketch.isUntitled()) {
2611 // set current file for OS X so that cmd-click in title bar works
2612 File sketchFile = sketch.getMainFile();
2613 getRootPane().putClientProperty("Window.documentFile", sketchFile);
2614 } else {
2615 // per other applications, don't set this until the file has been saved
2616 getRootPane().putClientProperty("Window.documentFile", null);
2617 }
2618
2619// toolbar.setText(sketch.getName());
2620 }
2621
2622
2623 /**

Callers 3

handleOpenInternalMethod · 0.95
updateInternalMethod · 0.80
setUntitledMethod · 0.80

Calls 5

getVersionNameMethod · 0.95
isUntitledMethod · 0.80
getMainFileMethod · 0.80
setTitleMethod · 0.65
getNameMethod · 0.45

Tested by

no test coverage detected