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

Method getPrettyName

arduino-core/src/processing/app/SketchFile.java:208–213  ·  view source on GitHub ↗

Returns the filename without extension for normal sketch files (Sketch.SKETCH_EXTENSIONS) and the filename with extension for all others.

()

Source from the content-addressed store, hash-verified

206 * others.
207 */
208 public String getPrettyName() {
209 if (!PreferencesData.getBoolean("editor.show_always_extensions") && isExtension(Sketch.SKETCH_EXTENSIONS))
210 return getBaseName();
211 else
212 return getFileName();
213 }
214
215 /**
216 * Returns the filename without extension

Callers 6

paintComponentMethod · 0.95
rebuildMenuMethod · 0.95
handleRenameCodeMethod · 0.95
handleDeleteCodeMethod · 0.95
messageMethod · 0.80
handlePrintMethod · 0.80

Calls 4

getBooleanMethod · 0.95
isExtensionMethod · 0.95
getBaseNameMethod · 0.95
getFileNameMethod · 0.95

Tested by

no test coverage detected