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

Method menuSelected

app/src/processing/app/Editor.java:512–523  ·  view source on GitHub ↗
(MenuEvent e)

Source from the content-addressed store, hash-verified

510 final JMenu fileMenu = buildFileMenu();
511 fileMenu.addMenuListener(new StubMenuListener() {
512 @Override
513 public void menuSelected(MenuEvent e) {
514 List<Component> components = Arrays.asList(fileMenu.getMenuComponents());
515 if (!components.contains(sketchbookMenu)) {
516 fileMenu.insert(sketchbookMenu, 3);
517 }
518 if (!components.contains(examplesMenu)) {
519 fileMenu.insert(examplesMenu, 4);
520 }
521 fileMenu.revalidate();
522 validate();
523 }
524 });
525 menubar.add(fileMenu);
526

Callers

nothing calls this directly

Calls 11

buildSketchMenuMethod · 0.95
populatePortMenuMethod · 0.95
getCurrentTabMethod · 0.95
getBoardsCustomMenusMethod · 0.80
getProgrammerMenusMethod · 0.80
getSelectedTextMethod · 0.80
getTextMethod · 0.65
equalsMethod · 0.45
setTextMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected