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

Method onBoardOrPortChange

app/src/processing/app/Base.java:1338–1360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 5

BaseMethod · 0.95
actionPerformedMethod · 0.95
onIndexesUpdatedMethod · 0.95
openLibraryManagerMethod · 0.95
openBoardsManagerMethod · 0.95

Calls 6

onBoardOrPortChangeMethod · 0.95
getTargetPlatformMethod · 0.95
getFolderMethod · 0.95
equalsMethod · 0.45
reloadMethod · 0.45
updateKeywordsMethod · 0.45

Tested by

no test coverage detected