mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Tools path are now always available through preferences
The preference key is: {runtime.tools.TOOLNAME.path} {runtime.tools.TOOLNAME-VERSION.path} For example the tool "avrdude" is now available through {runtime.tools.avrdude.path} or if a specific version is needed: {runtime.tools.avrdude-5.11.path}
This commit is contained in:
committed by
Federico Fissore
parent
2c941d424e
commit
b1e0249a4f
@ -9,6 +9,7 @@ import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.MissingResourceException;
|
||||
|
||||
import processing.app.helpers.PreferencesMap;
|
||||
@ -205,6 +206,13 @@ public class PreferencesData {
|
||||
return new PreferencesMap(prefs);
|
||||
}
|
||||
|
||||
static public void removeAllKeysWithPrefix(String prefix) {
|
||||
Iterator<String> keys = prefs.keySet().iterator();
|
||||
while (keys.hasNext())
|
||||
if (keys.next().startsWith(prefix))
|
||||
keys.remove();
|
||||
}
|
||||
|
||||
// Decide wether changed preferences will be saved. When value is
|
||||
// false, Preferences.save becomes a no-op.
|
||||
static public void setDoSave(boolean value)
|
||||
|
Reference in New Issue
Block a user