1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

fixed board and custom menus order

removed readBoardsOrder
This commit is contained in:
Federico Fissore
2012-10-29 17:56:31 +01:00
parent 9b7f473fae
commit c851f47d6b
4 changed files with 19 additions and 63 deletions

View File

@ -1,8 +1,6 @@
package processing.app.tools;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.*;
import java.util.Map.Entry;
public class MapWithSubkeys {
@ -35,8 +33,8 @@ public class MapWithSubkeys {
private final Map<String, MapWithSubkeys> maps;
public MapWithSubkeys() {
this.values = new HashMap<String, String>();
this.maps = new HashMap<String, MapWithSubkeys>();
this.values = new LinkedHashMap<String, String>();
this.maps = new LinkedHashMap<String, MapWithSubkeys>();
}
public Collection<String> getKeys() {
@ -53,9 +51,11 @@ public class MapWithSubkeys {
public MapWithSubkeys get(String key) {
if (!maps.containsKey(key)) {
put(key, null);
maps.put(key, new MapWithSubkeys());
}
if (!values.containsKey(key)) {
put(key, null);
}
return maps.get(key);
}