MCPcopy Index your code
hub / github.com/processing/processing / getMenuItemIndex

Method getMenuItemIndex

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

Source from the content-addressed store, hash-verified

1155
1156
1157 static public int getMenuItemIndex(JMenu menu, JMenuItem item) {
1158 int index = 0;
1159 for (Component comp : menu.getMenuComponents()) {
1160 if (comp == item) {
1161 return index;
1162 }
1163 index++;
1164 }
1165 return -1;
1166 }
1167}

Callers 1

removeImportMenuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected