(final String filterText, String dropdownItem)
| 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) { |
no test coverage detected