()
| 1336 | private static boolean newLibraryImported; |
| 1337 | |
| 1338 | public void onBoardOrPortChange() { |
| 1339 | BaseNoGui.onBoardOrPortChange(); |
| 1340 | |
| 1341 | // reload keywords when package/platform changes |
| 1342 | TargetPlatform tp = BaseNoGui.getTargetPlatform(); |
| 1343 | if (tp != null) { |
| 1344 | String platformFolder = tp.getFolder().getAbsolutePath(); |
| 1345 | if (priorPlatformFolder == null || !priorPlatformFolder.equals(platformFolder) || newLibraryImported) { |
| 1346 | pdeKeywords = new PdeKeywords(); |
| 1347 | pdeKeywords.reload(); |
| 1348 | priorPlatformFolder = platformFolder; |
| 1349 | newLibraryImported = false; |
| 1350 | for (Editor editor : editors) { |
| 1351 | editor.updateKeywords(pdeKeywords); |
| 1352 | } |
| 1353 | } |
| 1354 | } |
| 1355 | |
| 1356 | // Update editors status bar |
| 1357 | for (Editor editor : editors) { |
| 1358 | editor.onBoardOrPortChange(); |
| 1359 | } |
| 1360 | } |
| 1361 | |
| 1362 | public void openLibraryManager(final String filterText, String dropdownItem) { |
| 1363 | if (contributionsSelfCheck != null) { |
no test coverage detected