(final String filterText, String dropdownItem)
| 1393 | } |
| 1394 | |
| 1395 | public void openBoardsManager(final String filterText, String dropdownItem) throws Exception { |
| 1396 | if (contributionsSelfCheck != null) { |
| 1397 | contributionsSelfCheck.cancel(); |
| 1398 | } |
| 1399 | @SuppressWarnings("serial") |
| 1400 | ContributionManagerUI managerUI = new ContributionManagerUI(activeEditor, contributionInstaller) { |
| 1401 | @Override |
| 1402 | protected void onIndexesUpdated() throws Exception { |
| 1403 | BaseNoGui.initPackages(); |
| 1404 | rebuildBoardsMenu(); |
| 1405 | rebuildProgrammerMenu(); |
| 1406 | updateUI(); |
| 1407 | if (StringUtils.isNotEmpty(dropdownItem)) { |
| 1408 | selectDropdownItemByClassName(dropdownItem); |
| 1409 | } |
| 1410 | if (StringUtils.isNotEmpty(filterText)) { |
| 1411 | setFilterText(filterText); |
| 1412 | } |
| 1413 | } |
| 1414 | }; |
| 1415 | managerUI.setLocationRelativeTo(activeEditor); |
| 1416 | managerUI.updateUI(); |
| 1417 | managerUI.setVisible(true); |
| 1418 | // Installer dialog is modal, waits here until closed |
| 1419 | |
| 1420 | // Reload all boards (that may have been installed/updated/removed) |
| 1421 | BaseNoGui.initPackages(); |
| 1422 | rebuildBoardsMenu(); |
| 1423 | rebuildProgrammerMenu(); |
| 1424 | onBoardOrPortChange(); |
| 1425 | } |
| 1426 | |
| 1427 | public void rebuildBoardsMenu() throws Exception { |
| 1428 | boardsCustomMenus = new LinkedList<>(); |
no test coverage detected