@@ -386,7 +386,7 @@ public Base(String[] args) throws Exception {
386
386
387
387
// Do board selection if requested
388
388
if (selectBoard != null )
389
- selectBoard (selectBoard , editor );
389
+ selectBoard (selectBoard );
390
390
391
391
if (doUpload ) {
392
392
// Build and upload
@@ -1292,9 +1292,7 @@ public void rebuildBoardsMenu(JMenu toolsMenu, Editor editor) throws Exception {
1292
1292
1293
1293
// Cycle through all boards of this platform
1294
1294
for (TargetBoard board : targetPlatform .getBoards ().values ()) {
1295
- JMenuItem item = createBoardMenusAndCustomMenus (
1296
- editor ,
1297
- menuItemsToClickAfterStartup ,
1295
+ JMenuItem item = createBoardMenusAndCustomMenus (menuItemsToClickAfterStartup ,
1298
1296
buttonGroupsMap ,
1299
1297
board , targetPlatform , targetPackage );
1300
1298
boardsMenu .add (item );
@@ -1314,10 +1312,9 @@ public void rebuildBoardsMenu(JMenu toolsMenu, Editor editor) throws Exception {
1314
1312
}
1315
1313
1316
1314
private JRadioButtonMenuItem createBoardMenusAndCustomMenus (
1317
- final Editor editor ,
1318
- List <JMenuItem > menuItemsToClickAfterStartup ,
1319
- Map <String , ButtonGroup > buttonGroupsMap ,
1320
- TargetBoard board , TargetPlatform targetPlatform , TargetPackage targetPackage )
1315
+ List <JMenuItem > menuItemsToClickAfterStartup ,
1316
+ Map <String , ButtonGroup > buttonGroupsMap ,
1317
+ TargetBoard board , TargetPlatform targetPlatform , TargetPackage targetPackage )
1321
1318
throws Exception {
1322
1319
String selPackage = Preferences .get ("target_package" );
1323
1320
String selPlatform = Preferences .get ("target_platform" );
@@ -1331,7 +1328,7 @@ private JRadioButtonMenuItem createBoardMenusAndCustomMenus(
1331
1328
@ SuppressWarnings ("serial" )
1332
1329
Action action = new AbstractAction (board .getName ()) {
1333
1330
public void actionPerformed (ActionEvent actionevent ) {
1334
- selectBoard ((String ) getValue ("b" ), editor );
1331
+ selectBoard ((String ) getValue ("b" ));
1335
1332
}
1336
1333
};
1337
1334
action .putValue ("b" , packageName + ":" + platformName + ":" + boardId );
@@ -1360,7 +1357,7 @@ public void actionPerformed(ActionEvent e) {
1360
1357
Preferences .set ("target_package" , (String ) getValue ("package" ));
1361
1358
Preferences .set ("target_platform" , (String ) getValue ("platform" ));
1362
1359
Preferences .set ("board" , (String ) getValue ("board" ));
1363
- Preferences .set ("custom_" + menuId , ( String ) getValue ("board" ) + "_" + ( String ) getValue ("custom_menu_option" ));
1360
+ Preferences .set ("custom_" + menuId , getValue ("board" ) + "_" + getValue ("custom_menu_option" ));
1364
1361
1365
1362
filterVisibilityOfSubsequentBoardMenus ((String ) getValue ("board" ), currentIndex );
1366
1363
@@ -1472,7 +1469,7 @@ private static JMenuItem selectFirstEnabledMenuItem(JMenu menu) {
1472
1469
}
1473
1470
1474
1471
1475
- private void selectBoard (String selectBoard , Editor editor ) {
1472
+ private void selectBoard (String selectBoard ) {
1476
1473
String [] split = selectBoard .split (":" );
1477
1474
Preferences .set ("target_package" , split [0 ]);
1478
1475
Preferences .set ("target_platform" , split [1 ]);
0 commit comments