| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ | |||
| 21 | 21 | import processing.app.*; | |
| 22 | 22 | import processing.app.contrib.*; | |
| 23 | 23 | import processing.app.syntax.JEditTextArea; | |
| 24 | + import processing.app.syntax.PdeTextArea; | ||
| 24 | 25 | import processing.app.syntax.PdeTextAreaDefaults; | |
| 25 | 26 | import processing.app.ui.*; | |
| 26 | 27 | import processing.app.ui.Toolkit; | |
@@ -2078,7 +2079,7 @@ public void setCurrentLine(LineID line) { | |||
| 2078 | 2079 | cursorToLineStart(line.lineIdx()); | |
| 2079 | 2080 | // highlight line | |
| 2080 | 2081 | currentLine = new LineHighlight(line.lineIdx(), this); | |
| 2081 | - currentLine.setMarker(JavaTextArea.STEP_MARKER); | ||
| 2082 | + currentLine.setMarker(PdeTextArea.STEP_MARKER); | ||
| 2082 | 2083 | currentLine.setPriority(10); // fixes current line being hidden by the breakpoint when moved down | |
| 2083 | 2084 | } | |
| 2084 | 2085 | ||
@@ -2107,7 +2108,7 @@ public void clearCurrentLine() { | |||
| 2107 | 2108 | */ | |
| 2108 | 2109 | public void addBreakpointedLine(LineID lineID) { | |
| 2109 | 2110 | LineHighlight hl = new LineHighlight(lineID, this); | |
| 2110 | - hl.setMarker(JavaTextArea.BREAK_MARKER); | ||
| 2111 | + hl.setMarker(PdeTextArea.BREAK_MARKER); | ||
| 2111 | 2112 | breakpointedLines.add(hl); | |
| 2112 | 2113 | // repaint current line if it's on this line | |
| 2113 | 2114 | if (currentLine != null && currentLine.getLineID().equals(lineID)) { | |
@@ -2350,7 +2351,7 @@ private void showImportSuggestion(String[] list, int x, int y) { | |||
| 2350 | 2351 | frmImportSuggest = new JFrame(); | |
| 2351 | 2352 | ||
| 2352 | 2353 | frmImportSuggest.setUndecorated(true); | |
| 2353 | - frmImportSuggest.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); | ||
| 2354 | + frmImportSuggest.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); | ||
| 2354 | 2355 | JPanel panel = new JPanel(); | |
| 2355 | 2356 | panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); | |
| 2356 | 2357 | panel.setBackground(Color.WHITE); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,9 +9,9 @@ | |||
| 9 | 9 | import java.util.function.Consumer; | |
| 10 | 10 | ||
| 11 | 11 | import javax.swing.JDialog; | |
| 12 | - import javax.swing.JFrame; | ||
| 13 | 12 | import javax.swing.JScrollPane; | |
| 14 | 13 | import javax.swing.JTree; | |
| 14 | + import javax.swing.WindowConstants; | ||
| 15 | 15 | import javax.swing.tree.DefaultMutableTreeNode; | |
| 16 | 16 | import javax.swing.tree.DefaultTreeModel; | |
| 17 | 17 | ||
@@ -24,6 +24,7 @@ | |||
| 24 | 24 | import processing.mode.java.JavaEditor; | |
| 25 | 25 | import processing.mode.java.pdex.PreprocessedSketch.SketchInterval; | |
| 26 | 26 | ||
| 27 | + | ||
| 27 | 28 | class DebugTree { | |
| 28 | 29 | final JDialog window; | |
| 29 | 30 | final JTree tree; | |
@@ -59,7 +60,7 @@ public void componentHidden(ComponentEvent e) { | |||
| 59 | 60 | tree.setModel(null); | |
| 60 | 61 | } | |
| 61 | 62 | }); | |
| 62 | - window.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); | ||
| 63 | + window.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE); | ||
| 63 | 64 | window.setBounds(new Rectangle(680, 100, 460, 620)); | |
| 64 | 65 | window.setTitle("AST View - " + editor.getSketch().getName()); | |
| 65 | 66 | JScrollPane sp = new JScrollPane(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,12 +17,12 @@ | |||
| 17 | 17 | import javax.swing.Box; | |
| 18 | 18 | import javax.swing.JButton; | |
| 19 | 19 | import javax.swing.JDialog; | |
| 20 | - import javax.swing.JFrame; | ||
| 21 | 20 | import javax.swing.JLabel; | |
| 22 | 21 | import javax.swing.JMenuItem; | |
| 23 | 22 | import javax.swing.JOptionPane; | |
| 24 | 23 | import javax.swing.JRootPane; | |
| 25 | 24 | import javax.swing.JTextField; | |
| 25 | + import javax.swing.WindowConstants; | ||
| 26 | 26 | import javax.swing.text.BadLocationException; | |
| 27 | 27 | ||
| 28 | 28 | import org.eclipse.jdt.core.dom.ASTNode; | |
@@ -73,7 +73,7 @@ class Rename { | |||
| 73 | 73 | window = new JDialog(editor); | |
| 74 | 74 | JRootPane rootPane = window.getRootPane(); | |
| 75 | 75 | window.setTitle("Rename"); | |
| 76 | - window.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); | ||
| 76 | + window.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE); | ||
| 77 | 77 | Toolkit.registerWindowCloseKeys(rootPane, new ActionListener() { | |
| 78 | 78 | @Override | |
| 79 | 79 | public void actionPerformed(ActionEvent e) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,10 +16,10 @@ | |||
| 16 | 16 | import java.util.stream.Collectors; | |
| 17 | 17 | ||
| 18 | 18 | import javax.swing.JDialog; | |
| 19 | - import javax.swing.JFrame; | ||
| 20 | 19 | import javax.swing.JMenuItem; | |
| 21 | 20 | import javax.swing.JScrollPane; | |
| 22 | 21 | import javax.swing.JTree; | |
| 22 | + import javax.swing.WindowConstants; | ||
| 23 | 23 | import javax.swing.tree.DefaultMutableTreeNode; | |
| 24 | 24 | import javax.swing.tree.DefaultTreeModel; | |
| 25 | 25 | import javax.swing.tree.TreeModel; | |
@@ -63,7 +63,7 @@ class ShowUsage { | |||
| 63 | 63 | ||
| 64 | 64 | { // Show Usage window | |
| 65 | 65 | window = new JDialog(editor); | |
| 66 | - window.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); | ||
| 66 | + window.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE); | ||
| 67 | 67 | window.setAutoRequestFocus(false); | |
| 68 | 68 | window.addComponentListener(new ComponentAdapter() { | |
| 69 | 69 | @Override | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,6 +27,7 @@ X update to Java 8u172 | |||
| 27 | 27 | _ Examples dialog causes high CPU load | |
| 28 | 28 | _ https://github.com/processing/processing/issues/5246 | |
| 29 | 29 | ||
| 30 | + | ||
| 30 | 31 | contrib | |
| 31 | 32 | X updates to Japanese translation | |
| 32 | 33 | X https://github.com/processing/processing/pull/5263 | |
@@ -37,6 +38,7 @@ X https://github.com/processing/processing/pull/5144 | |||
| 37 | 38 | X Update java.lang.UnsupportedClassVersionError message | |
| 38 | 39 | X https://github.com/processing/processing/pull/5459 | |
| 39 | 40 | ||
| 41 | + | ||
| 40 | 42 | welcome | |
| 41 | 43 | o just remove the welcome dialog; but what should the default behavior be? | |
| 42 | 44 | o or should it only show up for people who have used <=2 but not 3? | |
@@ -98,6 +100,8 @@ _ https://github.com/processing/processing/pull/5126 | |||
| 98 | 100 | ||
| 99 | 101 | ||
| 100 | 102 | nasty ones | |
| 103 | + _ errors inside setup() aren't coming through at all? | ||
| 104 | + _ seen in Eclipse; have to turn on the debugger | ||
| 101 | 105 | _ "Sketch disappeared" infinite pop up dialogs | |
| 102 | 106 | _ https://github.com/processing/processing/pull/4808 | |
| 103 | 107 | _ https://github.com/processing/processing/issues/4805 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments