MCPcopy
hub / github.com/arduino/Arduino / openBoardsManager

Method openBoardsManager

app/src/processing/app/Base.java:1395–1425  ·  view source on GitHub ↗
(final String filterText, String dropdownItem)

Source from the content-addressed store, hash-verified

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<>();

Callers 3

actionPerformedMethod · 0.95
openBoardLibManagerMethod · 0.80

Calls 7

updateUIMethod · 0.95
initPackagesMethod · 0.95
rebuildBoardsMenuMethod · 0.95
rebuildProgrammerMenuMethod · 0.95
onBoardOrPortChangeMethod · 0.95
cancelMethod · 0.80
setVisibleMethod · 0.80

Tested by

no test coverage detected