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

Method saveModeSettings

app/src/processing/app/Base.java:958–967  ·  view source on GitHub ↗

Create or modify a sketch.proprties file to specify the given Mode.

(final File sketchProps, final Mode mode)

Source from the content-addressed store, hash-verified

956 * Create or modify a sketch.proprties file to specify the given Mode.
957 */
958 private void saveModeSettings(final File sketchProps, final Mode mode) {
959 try {
960 final Settings settings = new Settings(sketchProps);
961 settings.set("mode", mode.getTitle());
962 settings.set("mode.id", mode.getIdentifier());
963 settings.save();
964 } catch (IOException e) {
965 System.err.println("While creating " + sketchProps + ": " + e.getMessage());
966 }
967 }
968
969
970 String getDefaultModeIdentifier() {

Callers 2

changeModeMethod · 0.95
handleNewMethod · 0.95

Calls 6

setMethod · 0.95
saveMethod · 0.95
getIdentifierMethod · 0.80
getMessageMethod · 0.65
getTitleMethod · 0.45
printlnMethod · 0.45

Tested by

no test coverage detected