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

Method findSubMenuWithLabel

app/src/cc/arduino/view/JMenuUtils.java:37–44  ·  view source on GitHub ↗
(JMenu menu, String text)

Source from the content-addressed store, hash-verified

35public class JMenuUtils {
36
37 public static JMenu findSubMenuWithLabel(JMenu menu, String text) {
38 for (Component submenu : menu.getMenuComponents()) {
39 if (submenu instanceof JMenu && text.equals(((JMenu) submenu).getText())) {
40 return (JMenu) submenu;
41 }
42 }
43 return null;
44 }
45
46}

Callers 1

rebuildSketchbookMenuMethod · 0.95

Calls 2

getTextMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected