MCPcopy Create free account
hub / github.com/benfry/processing4 / getMainName

Method getMainName

app/src/processing/app/Sketch.java:1696–1698  ·  view source on GitHub ↗

Returns the name (without extension) of the main tab. (This version still has underscores and is a legit class name.) Most getName() calls before 4.0 were to get the main class, so this method addition allows the sketch name to be decoupled from the name of the main tab.

()

Source from the content-addressed store, hash-verified

1694 * from the name of the main tab.
1695 */
1696 public String getMainName() {
1697 return code[0].getPrettyName();
1698 }
1699
1700
1701 /**

Callers 5

preprocessMethod · 0.80
placeExceptionMethod · 0.80
exportApplicationMethod · 0.80
addManifestMethod · 0.80
preprocessSketchMethod · 0.80

Calls 1

getPrettyNameMethod · 0.45

Tested by

no test coverage detected