MCPcopy Index your code
hub / github.com/arduino/Arduino / newJMenuItemAlt

Method newJMenuItemAlt

app/src/processing/app/Editor.java:1361–1365  ·  view source on GitHub ↗

Same as newJMenuItem(), but adds the ALT (on Linux and Windows) or OPTION (on Mac OS X) key as a modifier.

(String title, int what)

Source from the content-addressed store, hash-verified

1359 * or OPTION (on Mac OS X) key as a modifier.
1360 */
1361 private static JMenuItem newJMenuItemAlt(String title, int what) {
1362 JMenuItem menuItem = new JMenuItem(title);
1363 menuItem.setAccelerator(KeyStroke.getKeyStroke(what, SHORTCUT_ALT_KEY_MASK));
1364 return menuItem;
1365 }
1366
1367
1368 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers 2

buildSketchMenuMethod · 0.95
buildEditMenuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected