(TargetBoard targetBoard)
| 917 | } |
| 918 | |
| 919 | static public void selectBoard(TargetBoard targetBoard) { |
| 920 | TargetPlatform targetPlatform = targetBoard.getContainerPlatform(); |
| 921 | TargetPackage targetPackage = targetPlatform.getContainerPackage(); |
| 922 | |
| 923 | PreferencesData.set("target_package", targetPackage.getId()); |
| 924 | PreferencesData.set("target_platform", targetPlatform.getId()); |
| 925 | PreferencesData.set("board", targetBoard.getId()); |
| 926 | |
| 927 | File platformFolder = targetPlatform.getFolder(); |
| 928 | PreferencesData.set("runtime.platform.path", platformFolder.getAbsolutePath()); |
| 929 | PreferencesData.set("runtime.hardware.path", platformFolder.getParentFile().getAbsolutePath()); |
| 930 | } |
| 931 | |
| 932 | public static void selectSerialPort(String port) { |
| 933 | PreferencesData.set("serial.port", port); |
no test coverage detected