| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1522,6 +1522,7 @@ public void actionPerformed(ActionEvent e) { | |||
| 1522 | 1522 | debugMenu.add(item); | |
| 1523 | 1523 | item.setEnabled(false); | |
| 1524 | 1524 | ||
| 1525 | + /* | ||
| 1525 | 1526 | inspectorItem = Toolkit.newJMenuItem(Language.text("menu.debug.show_variables"), 'Y'); | |
| 1526 | 1527 | inspectorItem.addActionListener(new ActionListener() { | |
| 1527 | 1528 | public void actionPerformed(ActionEvent e) { | |
@@ -1530,6 +1531,7 @@ public void actionPerformed(ActionEvent e) { | |||
| 1530 | 1531 | }); | |
| 1531 | 1532 | debugMenu.add(inspectorItem); | |
| 1532 | 1533 | inspectorItem.setEnabled(false); | |
| 1534 | + */ | ||
| 1533 | 1535 | ||
| 1534 | 1536 | /* | |
| 1535 | 1537 | item = new JMenuItem(Language.text("menu.debug.list_breakpoints")); | |
@@ -2188,10 +2190,12 @@ public void toggleDebug() { | |||
| 2188 | 2190 | debugItem.setText(Language.text("menu.debug.enable")); | |
| 2189 | 2191 | } | |
| 2190 | 2192 | ||
| 2191 | - // Hide the variable inspector if it's currently visible | ||
| 2192 | - if (!debugEnabled && inspector.isVisible()) { | ||
| 2193 | - toggleVariableInspector(); | ||
| 2194 | - } | ||
| 2193 | + // // Hide the variable inspector if it's currently visible | ||
| 2194 | + // if (!debugEnabled && inspector.isVisible()) { | ||
| 2195 | + // toggleVariableInspector(); | ||
| 2196 | + // } | ||
| 2197 | + inspector.setVisible(debugEnabled); | ||
| 2198 | + | ||
| 2195 | 2199 | /* | |
| 2196 | 2200 | if (enabled) { | |
| 2197 | 2201 | inspector.setFocusableWindowState(false); // to not get focus when set visible | |
@@ -2209,6 +2213,7 @@ public void toggleDebug() { | |||
| 2209 | 2213 | } | |
| 2210 | 2214 | ||
| 2211 | 2215 | ||
| 2216 | + /* | ||
| 2212 | 2217 | public void toggleVariableInspector() { | |
| 2213 | 2218 | if (inspector.isVisible()) { | |
| 2214 | 2219 | inspectorItem.setText(Language.text("menu.debug.show_variables")); | |
@@ -2220,6 +2225,7 @@ public void toggleVariableInspector() { | |||
| 2220 | 2225 | // inspector.setFocusableWindowState(true); // allow to get focus again | |
| 2221 | 2226 | } | |
| 2222 | 2227 | } | |
| 2228 | + */ | ||
| 2223 | 2229 | ||
| 2224 | 2230 | ||
| 2225 | 2231 | // public void showVariableInspector() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,9 +111,15 @@ public VariableInspector(final JavaEditor editor) { | |||
| 111 | 111 | getContentPane().add(box); | |
| 112 | 112 | pack(); | |
| 113 | 113 | ||
| 114 | - // setLocation(editor.getX() + editor.getWidth() + HORIZONTAL_OFFSET, | ||
| 115 | - // editor.getY() + VERTICAL_OFFSET); | ||
| 116 | - setLocationRelativeTo(editor); | ||
| 114 | + int x = editor.getX() + editor.getWidth() + HORIZONTAL_OFFSET; | ||
| 115 | + if (x + getWidth() > getToolkit().getScreenSize().width) { | ||
| 116 | + // If it doesn't fit on screen, place it inside the editor window, | ||
| 117 | + // per the OS rules for window placement | ||
| 118 | + setLocationRelativeTo(editor); | ||
| 119 | + } else { | ||
| 120 | + // If it'll fit, place it to the right of the editor window | ||
| 121 | + setLocation(x, editor.getY() + VERTICAL_OFFSET); | ||
| 122 | + } | ||
| 117 | 123 | ||
| 118 | 124 | /* | |
| 119 | 125 | bgColor = mode.getColor("buttons.bgcolor"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,15 +1,15 @@ | |||
| 1 | 1 | 0236 (3.0a9) | |
| 2 | 2 | X show screen dimensions in the Preferences window | |
| 3 | 3 | ||
| 4 | - gui | ||
| 4 | + gui/pdex/debugger | ||
| 5 | 5 | X implement the bottom half of the editor window | |
| 6 | 6 | X editor window draws in stages (at least on OS X) on first view | |
| 7 | 7 | X the console/bottom area stays white until an additional repaint? | |
| 8 | 8 | X fixed these issues and replaced with footer | |
| 9 | 9 | X remove EditorLineStatus (we have line numbers) | |
| 10 | - | ||
| 11 | - | ||
| 12 | - pdex/debugger | ||
| 10 | + X automatically show the variables window when debugging, hide when not | ||
| 11 | + X ctrl-y shortcut duplicated | ||
| 12 | + X https://github.com/processing/processing/issues/3298 | ||
| 13 | 13 | X remove "Experimental Mode: Yikes!" messages | |
| 14 | 14 | o NullPointerException in initiateToolTip() | |
| 15 | 15 | X https://github.com/processing/processing/issues/3286 | |
@@ -52,9 +52,6 @@ _ move Library to LibraryContribution and into contrib? | |||
| 52 | 52 | ||
| 53 | 53 | gui | |
| 54 | 54 | _ click a line number to toggle breakpoint | |
| 55 | - _ automatically show the variables window when debugging, hide when not | ||
| 56 | - _ ctrl-y shortcut duplicated | ||
| 57 | - _ https://github.com/processing/processing/issues/3298 | ||
| 58 | 55 | _ need active state for the butterfly | |
| 59 | 56 | _ finish the gui | |
| 60 | 57 | _ https://github.com/processing/processing/issues/3072 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments