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

Method openLibraryManager

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

Source from the content-addressed store, hash-verified

1360 }
1361
1362 public void openLibraryManager(final String filterText, String dropdownItem) {
1363 if (contributionsSelfCheck != null) {
1364 contributionsSelfCheck.cancel();
1365 }
1366 @SuppressWarnings("serial")
1367 LibraryManagerUI managerUI = new LibraryManagerUI(activeEditor, libraryInstaller) {
1368 @Override
1369 protected void onIndexesUpdated() throws Exception {
1370 BaseNoGui.initPackages();
1371 rebuildBoardsMenu();
1372 rebuildProgrammerMenu();
1373 onBoardOrPortChange();
1374 updateUI();
1375 if (StringUtils.isNotEmpty(dropdownItem)) {
1376 selectDropdownItemByClassName(dropdownItem);
1377 }
1378 if (StringUtils.isNotEmpty(filterText)) {
1379 setFilterText(filterText);
1380 }
1381 }
1382 };
1383 managerUI.setLocationRelativeTo(activeEditor);
1384 managerUI.updateUI();
1385 managerUI.setVisible(true);
1386 // Manager dialog is modal, waits here until closed
1387
1388 //handleAddLibrary();
1389 newLibraryImported = true;
1390 onBoardOrPortChange();
1391 rebuildImportMenu(Editor.importMenu);
1392 rebuildExamplesMenu(Editor.examplesMenu);
1393 }
1394
1395 public void openBoardsManager(final String filterText, String dropdownItem) throws Exception {
1396 if (contributionsSelfCheck != null) {

Callers 3

rebuildImportMenuMethod · 0.95
openBoardLibManagerMethod · 0.80
buildToolsMenuMethod · 0.80

Calls 6

updateUIMethod · 0.95
onBoardOrPortChangeMethod · 0.95
rebuildImportMenuMethod · 0.95
rebuildExamplesMenuMethod · 0.95
cancelMethod · 0.80
setVisibleMethod · 0.80

Tested by

no test coverage detected