MCPcopy Index your code
hub / github.com/benfry/processing4 / getMenuItemIndex

Method getMenuItemIndex

app/src/processing/app/ui/Toolkit.java:551–560  ·  view source on GitHub ↗
(JMenu menu, JMenuItem item)

Source from the content-addressed store, hash-verified

549
550
551 static public int getMenuItemIndex(JMenu menu, JMenuItem item) {
552 int index = 0;
553 for (Component comp : menu.getMenuComponents()) {
554 if (comp == item) {
555 return index;
556 }
557 index++;
558 }
559 return -1;
560 }
561
562
563 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers 1

removeImportMenuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected