| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -956,23 +956,27 @@ public void actionPerformed(ActionEvent e) { | |||
| 956 | 956 | }); | |
| 957 | 957 | menu.add(item); | |
| 958 | 958 | ||
| 959 | - item = Toolkit.newJMenuItem(Language.text("menu.edit.comment_uncomment"), '/'); | ||
| 959 | + item = Toolkit.newJMenuItem(Language.text("menu.edit.comment_uncomment"), | ||
| 960 | + Language.text("menu.edit.comment_uncomment.keystroke")); | ||
| 960 | 961 | item.addActionListener(new ActionListener() { | |
| 961 | 962 | public void actionPerformed(ActionEvent e) { | |
| 962 | 963 | handleCommentUncomment(); | |
| 963 | 964 | } | |
| 964 | 965 | }); | |
| 965 | 966 | menu.add(item); | |
| 966 | 967 | ||
| 967 | - item = Toolkit.newJMenuItem("\u2192 "+Language.text("menu.edit.increase_indent"), ']'); | ||
| 968 | + item = Toolkit.newJMenuItem("\u2192 " + Language.text("menu.edit.increase_indent"), | ||
| 969 | + Language.text("menu.edit.increase_indent.keystroke")); | ||
| 970 | + | ||
| 968 | 971 | item.addActionListener(new ActionListener() { | |
| 969 | 972 | public void actionPerformed(ActionEvent e) { | |
| 970 | 973 | handleIndentOutdent(true); | |
| 971 | 974 | } | |
| 972 | 975 | }); | |
| 973 | 976 | menu.add(item); | |
| 974 | 977 | ||
| 975 | - item = Toolkit.newJMenuItem("\u2190 "+Language.text("menu.edit.decrease_indent"), '['); | ||
| 978 | + item = Toolkit.newJMenuItem("\u2190 " + Language.text("menu.edit.decrease_indent"), | ||
| 979 | + Language.text("menu.edit.decrease_indent.keystroke")); | ||
| 976 | 980 | item.addActionListener(new ActionListener() { | |
| 977 | 981 | public void actionPerformed(ActionEvent e) { | |
| 978 | 982 | handleIndentOutdent(false); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -498,7 +498,8 @@ public void actionPerformed(ActionEvent e) { | |||
| 498 | 498 | if (Platform.isLinux()) { | |
| 499 | 499 | item = Toolkit.newJMenuItem(prevTab, KeyEvent.VK_PAGE_UP); | |
| 500 | 500 | } else { | |
| 501 | - item = Toolkit.newJMenuItemAlt(prevTab, KeyEvent.VK_LEFT); | ||
| 501 | + //item = Toolkit.newJMenuItemAlt(prevTab, KeyEvent.VK_LEFT); | ||
| 502 | + item = Toolkit.newJMenuItem(prevTab, Language.text("editor.header.previous_tab.keystroke")); | ||
| 502 | 503 | } | |
| 503 | 504 | action = new AbstractAction() { | |
| 504 | 505 | @Override | |
@@ -510,7 +511,8 @@ public void actionPerformed(ActionEvent e) { | |||
| 510 | 511 | if (Platform.isLinux()) { | |
| 511 | 512 | keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, Toolkit.SHORTCUT_KEY_MASK); | |
| 512 | 513 | } else { | |
| 513 | - keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, Toolkit.SHORTCUT_ALT_KEY_MASK); | ||
| 514 | + //keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, Toolkit.SHORTCUT_ALT_KEY_MASK); | ||
| 515 | + keyStroke = KeyStroke.getKeyStroke(Language.text("editor.header.previous_tab.keystroke")); | ||
| 514 | 516 | } | |
| 515 | 517 | inputMap.put(keyStroke, mapKey); | |
| 516 | 518 | actionMap.put(mapKey, action); | |
@@ -521,7 +523,8 @@ public void actionPerformed(ActionEvent e) { | |||
| 521 | 523 | if (Platform.isLinux()) { | |
| 522 | 524 | item = Toolkit.newJMenuItem(nextTab, KeyEvent.VK_PAGE_DOWN); | |
| 523 | 525 | } else { | |
| 524 | - item = Toolkit.newJMenuItemAlt(nextTab, KeyEvent.VK_RIGHT); | ||
| 526 | + //item = Toolkit.newJMenuItemAlt(nextTab, KeyEvent.VK_RIGHT); | ||
| 527 | + item = Toolkit.newJMenuItem(nextTab, Language.text("editor.header.next_tab.keystroke")); | ||
| 525 | 528 | } | |
| 526 | 529 | action = new AbstractAction() { | |
| 527 | 530 | @Override | |
@@ -533,7 +536,8 @@ public void actionPerformed(ActionEvent e) { | |||
| 533 | 536 | if (Platform.isLinux()) { | |
| 534 | 537 | keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, Toolkit.SHORTCUT_KEY_MASK); | |
| 535 | 538 | } else { | |
| 536 | - keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, Toolkit.SHORTCUT_ALT_KEY_MASK); | ||
| 539 | + //keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, Toolkit.SHORTCUT_ALT_KEY_MASK); | ||
| 540 | + keyStroke = KeyStroke.getKeyStroke(Language.text("editor.header.next_tab.keystroke")); | ||
| 537 | 541 | } | |
| 538 | 542 | inputMap.put(keyStroke, mapKey); | |
| 539 | 543 | actionMap.put(mapKey, action); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -131,6 +131,29 @@ static public JMenuItem newJMenuItem(String title, int what) { | |||
| 131 | 131 | } | |
| 132 | 132 | ||
| 133 | 133 | ||
| 134 | + /** | ||
| 135 | + * Create a menu item and set its KeyStroke by name (so it can be stored | ||
| 136 | + * in the language settings or the preferences. Syntax is here: | ||
| 137 | + * https://docs.oracle.com/javase/8/docs/api/javax/swing/KeyStroke.html#getKeyStroke-java.lang.String- | ||
| 138 | + * @param sequence the name, as outlined by the KeyStroke API | ||
| 139 | + * @param fallback what to use if getKeyStroke() comes back null | ||
| 140 | + */ | ||
| 141 | + static public JMenuItem newJMenuItem(String title, | ||
| 142 | + String sequence) { | ||
| 143 | + JMenuItem menuItem = new JMenuItem(title); | ||
| 144 | + KeyStroke ks = KeyStroke.getKeyStroke(sequence); | ||
| 145 | + if (ks != null) { | ||
| 146 | + menuItem.setAccelerator(ks); | ||
| 147 | + | ||
| 148 | + } else { | ||
| 149 | + System.err.println("'" + sequence + "' is not understood, " + | ||
| 150 | + "pleae re-read the Java reference for KeyStroke"); | ||
| 151 | + //ks = KeyStroke.getKeyStroke(fallback); | ||
| 152 | + } | ||
| 153 | + return menuItem; | ||
| 154 | + } | ||
| 155 | + | ||
| 156 | + | ||
| 134 | 157 | /** | |
| 135 | 158 | * @param action: use an Action, which sets the title, reaction | |
| 136 | 159 | * and enabled-ness all by itself. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,8 +40,11 @@ menu.edit.paste = Paste | |||
| 40 | 40 | menu.edit.select_all = Select All | |
| 41 | 41 | menu.edit.auto_format = Auto Format | |
| 42 | 42 | menu.edit.comment_uncomment = Comment/Uncomment | |
| 43 | + menu.edit.comment_uncomment.keystroke = meta pressed SLASH | ||
| 43 | 44 | menu.edit.increase_indent = Increase Indent | |
| 45 | + menu.edit.increase_indent.keystroke = meta pressed CLOSE_BRACKET | ||
| 44 | 46 | menu.edit.decrease_indent = Decrease Indent | |
| 47 | + menu.edit.decrease_indent.keystroke = meta pressed OPEN_BRACKET | ||
| 45 | 48 | menu.edit.find = Find... | |
| 46 | 49 | menu.edit.find_next = Find Next | |
| 47 | 50 | menu.edit.find_previous = Find Previous | |
@@ -77,8 +80,11 @@ menu.debug.toggle_breakpoint = Toggle Breakpoint | |||
| 77 | 80 | # --- | |
| 78 | 81 | # used for both menus and toolbars | |
| 79 | 82 | menu.debug.step = Step | |
| 83 | + menu.debug.step.keystroke = meta pressed J | ||
| 80 | 84 | menu.debug.step_into = Step Into | |
| 85 | + menu.debug.step.keystroke = shift meta pressed J | ||
| 81 | 86 | menu.debug.step_out = Step Out | |
| 87 | + menu.debug.step.keystroke = meta alt pressed J | ||
| 82 | 88 | menu.debug.continue = Continue | |
| 83 | 89 | # --- | |
| 84 | 90 | #menu.debug.print_stack_trace = Print Stack Trace | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1384,7 +1384,8 @@ public void actionPerformed(ActionEvent e) { | |||
| 1384 | 1384 | // }); | |
| 1385 | 1385 | // debugMenu.add(item); | |
| 1386 | 1386 | ||
| 1387 | - item = Toolkit.newJMenuItem(Language.text("menu.debug.step"), KeyEvent.VK_J); | ||
| 1387 | + item = Toolkit.newJMenuItem(Language.text("menu.debug.step"), | ||
| 1388 | + Language.text("menu.debug.step.keystroke")); | ||
| 1388 | 1389 | item.addActionListener(new ActionListener() { | |
| 1389 | 1390 | public void actionPerformed(ActionEvent e) { | |
| 1390 | 1391 | handleStep(0); | |
@@ -1393,7 +1394,8 @@ public void actionPerformed(ActionEvent e) { | |||
| 1393 | 1394 | debugMenu.add(item); | |
| 1394 | 1395 | item.setEnabled(false); | |
| 1395 | 1396 | ||
| 1396 | - item = Toolkit.newJMenuItemShift(Language.text("menu.debug.step_into"), KeyEvent.VK_J); | ||
| 1397 | + item = Toolkit.newJMenuItem(Language.text("menu.debug.step_into"), | ||
| 1398 | + Language.text("menu.debug.step_into.keystroke")); | ||
| 1397 | 1399 | item.addActionListener(new ActionListener() { | |
| 1398 | 1400 | public void actionPerformed(ActionEvent e) { | |
| 1399 | 1401 | handleStep(ActionEvent.SHIFT_MASK); | |
@@ -1402,7 +1404,8 @@ public void actionPerformed(ActionEvent e) { | |||
| 1402 | 1404 | debugMenu.add(item); | |
| 1403 | 1405 | item.setEnabled(false); | |
| 1404 | 1406 | ||
| 1405 | - item = Toolkit.newJMenuItemAlt(Language.text("menu.debug.step_out"), KeyEvent.VK_J); | ||
| 1407 | + item = Toolkit.newJMenuItem(Language.text("menu.debug.step_out"), | ||
| 1408 | + Language.text("menu.debug.step_out.keystroke")); | ||
| 1406 | 1409 | item.addActionListener(new ActionListener() { | |
| 1407 | 1410 | public void actionPerformed(ActionEvent e) { | |
| 1408 | 1411 | handleStep(ActionEvent.ALT_MASK); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,13 +13,44 @@ X text("test", 10, 10); is still slow with lots of fonts | |||
| 13 | 13 | X https://bugs.openjdk.java.net/browse/JDK-8179209 | |
| 14 | 14 | X added a note to the Known Issues section in the Changes wiki | |
| 15 | 15 | X update the about screen to 2019 | |
| 16 | + o report of a library or tool (probably includes 2.x? 1.x?) breaking things | ||
| 17 | + o NoSuchFieldError: useNativeSelect | ||
| 18 | + X https://github.com/processing/processing/issues/4821 | ||
| 19 | + X closed, no response | ||
| 20 | + | ||
| 21 | + | ||
| 22 | + shortcuts | ||
| 23 | + X problems with non-US keyboards and some shortcuts | ||
| 24 | + X https://github.com/processing/processing/issues/2199 | ||
| 25 | + _ Determine new keyboard shortcut for Step Out | ||
| 26 | + _ https://github.com/processing/processing/issues/3538 | ||
| 27 | + | ||
| 28 | + # Comment/Uncomment, Increase Indent, Decrease Indent | ||
| 29 | + menu.edit.comment_uncomment.keystroke = meta pressed SLASH | ||
| 30 | + menu.edit.increase_indent.keystroke = meta pressed CLOSE_BRACKET | ||
| 31 | + menu.edit.decrease_indent.keystroke = meta pressed OPEN_BRACKET | ||
| 32 | + # inside Editor.java | ||
| 33 | + | ||
| 34 | + # Previous Tab, Next Tab (ignored on Linux, which is Page Up and Page Down) | ||
| 35 | + editor.header.previous_tab.keystroke = meta alt pressed LEFT | ||
| 36 | + editor.header.next_tab.keystroke = meta alt pressed RIGHT | ||
| 37 | + # inside EditorHeader.java | ||
| 38 | + | ||
| 39 | + # Step, Step Into, and Step Out | ||
| 40 | + menu.debug.step.keystroke = meta pressed J | ||
| 41 | + menu.debug.step_into.keystroke = shift meta pressed J | ||
| 42 | + menu.debug.step_out.keystroke = meta alt pressed J | ||
| 43 | + # inside JavaEditor.java | ||
| 44 | + | ||
| 16 | 45 | ||
| 17 | 46 | fixed earlier | |
| 18 | 47 | X Could not initialize class com.sun.jna.Native on startup (Windows) | |
| 19 | 48 | X https://github.com/processing/processing/issues/4929 | |
| 20 | 49 | X closed earlier; fixed as best we could | |
| 21 | 50 | X sharing usage metrics about libraries | |
| 22 | 51 | X https://github.com/processing/processing/issues/4708 | |
| 52 | + X Determine shortcut for Export vs Use Selection for Find | ||
| 53 | + X https://github.com/processing/processing/issues/2985 | ||
| 23 | 54 | ||
| 24 | 55 | contrib | |
| 25 | 56 | X Updated russian translation, now can choose russian in preferences | |
@@ -31,9 +62,9 @@ X https://github.com/processing/processing/issues/5246 | |||
| 31 | 62 | X https://github.com/processing/processing/pull/5654 | |
| 32 | 63 | X console hiding button | |
| 33 | 64 | X https://github.com/processing/processing/pull/5115 | |
| 34 | - _ NullPointerException in Contribution Manager | ||
| 35 | - _ https://github.com/processing/processing/issues/5524 | ||
| 36 | - _ https://github.com/processing/processing/pull/5742 | ||
| 65 | + X NullPointerException in Contribution Manager when installing | ||
| 66 | + X https://github.com/processing/processing/issues/5524 | ||
| 67 | + X https://github.com/processing/processing/pull/5742 | ||
| 37 | 68 | ||
| 38 | 69 | jakub | |
| 39 | 70 | X Fix sketch exception getting hidden by warning | |
@@ -51,13 +82,14 @@ _ Find in Reference disabled for various keywords (draw, for, if, catch, while) | |||
| 51 | 82 | _ https://github.com/processing/processing/issues/5562 | |
| 52 | 83 | _ https://github.com/processing/processing/pull/5642 | |
| 53 | 84 | _ discuss with Casey | |
| 54 | - _ Welcome screen doesn't size properly for HiDPI screens | ||
| 55 | - _ https://github.com/processing/processing/issues/4896 | ||
| 56 | 85 | ||
| 57 | 86 | ||
| 58 | - nasty ones | ||
| 87 | + | ||
| 88 | + high-ish | ||
| 59 | 89 | _ errors inside setup() aren't coming through at all? | |
| 60 | 90 | _ seen in Eclipse; have to turn on the debugger | |
| 91 | + _ Welcome screen doesn't size properly for HiDPI screens | ||
| 92 | + _ https://github.com/processing/processing/issues/4896 | ||
| 61 | 93 | ||
| 62 | 94 | ||
| 63 | 95 | manager | |
@@ -100,16 +132,22 @@ _ clean Windows temp folders | |||
| 100 | 132 | _ https://github.com/processing/processing/issues/1896 | |
| 101 | 133 | ||
| 102 | 134 | ||
| 135 | + modes | ||
| 103 | 136 | _ sketch.properties not being written if initial mode is p5.js? | |
| 104 | 137 | _ when creating a sketch within non-Java mode, should write the settings file | |
| 105 | 138 | _ so that it re-loads in the proper environment | |
| 106 | 139 | _ remove sketch.properties when moving back to the default? | |
| 107 | 140 | _ or can we not do this, because it's used to set the 'next' mode | |
| 141 | + _ allow modes to specify their own base file name | ||
| 142 | + _ need to move "is this a sketch?" handling into Mode | ||
| 143 | + _ fix extension check for other modes | ||
| 144 | + _ https://github.com/processing/processing/issues/3980 | ||
| 145 | + | ||
| 108 | 146 | ||
| 147 | + sketch/launching | ||
| 109 | 148 | _ what to double-click when opening p5 projects | |
| 110 | 149 | _ lack of a project file makes this a pain | |
| 111 | 150 | _ dropping a sketch folder onto the PDE should also be implemented | |
| 112 | - | ||
| 113 | 151 | _ some type of sketch archive format for posting examples (.psk?) | |
| 114 | 152 | _ would be nice to open a sketch directly from a zip file | |
| 115 | 153 | _ https://github.com/processing/processing/issues/73 | |
@@ -140,15 +178,6 @@ _ implement simple table for prefs? | |||
| 140 | 178 | _ "error during export" message, but no error message contents come through | |
| 141 | 179 | _ e.g. https://github.com/processing/processing/issues/4792 | |
| 142 | 180 | ||
| 143 | - _ report of a library or tool (probably includes 2.x? 1.x?) breaking things | ||
| 144 | - _ NoSuchFieldError: useNativeSelect | ||
| 145 | - _ https://github.com/processing/processing/issues/4821 | ||
| 146 | - | ||
| 147 | - _ allow modes to specify their own base file name | ||
| 148 | - _ need to move "is this a sketch?" handling into Mode | ||
| 149 | - _ fix extension check for other modes | ||
| 150 | - _ https://github.com/processing/processing/issues/3980 | ||
| 151 | - | ||
| 152 | 181 | _ did we lose settings.path because it was too buggy? | |
| 153 | 182 | _ https://github.com/processing/processing/issues/3948 | |
| 154 | 183 | ||
@@ -200,19 +229,11 @@ _ https://github.com/processing/processing/issues/4353#issuecomment-237715947 | |||
| 200 | 229 | medium | |
| 201 | 230 | _ detect changes in case with libraries | |
| 202 | 231 | _ https://github.com/processing/processing/issues/4507 | |
| 203 | - _ make when opening new editor window, open on the same display as current | ||
| 232 | + _ when opening new editor window, open on the same display as current | ||
| 204 | 233 | _ https://github.com/processing/processing/issues/4526 | |
| 205 | 234 | _ Library path mismatch between processing-java and export | |
| 206 | 235 | _ https://github.com/processing/processing/issues/4493 | |
| 207 | 236 | ||
| 208 | - shortcuts | ||
| 209 | - _ problems with non-US keyboards and some shortcuts | ||
| 210 | - _ https://github.com/processing/processing/issues/2199 | ||
| 211 | - _ Determine shortcut for Export vs Use Selection for Find | ||
| 212 | - _ https://github.com/processing/processing/issues/2985 | ||
| 213 | - _ Determine new keyboard shortcut for Step Out | ||
| 214 | - _ https://github.com/processing/processing/issues/3538 | ||
| 215 | - | ||
| 216 | 237 | ||
| 217 | 238 | needs more review | |
| 218 | 239 | _ createPreprocessor() added to JavaEditor, creating a mess | |
| Back | FazBrowse Home | New Git URL |
0 commit comments