Skip to content

Commit 4f05cfe

Browse files
committed
removing more underbrush
1 parent b94acc4 commit 4f05cfe

3 files changed

Lines changed: 6 additions & 33 deletions

File tree

java/src/processing/mode/java/JavaEditor.java

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,11 @@ public class JavaEditor extends Editor {
6060
protected LineHighlight currentLine; // line the debugger is currently suspended at
6161
protected final String breakpointMarkerComment = " //<>//"; // breakpoint marker comment
6262

63-
protected JMenu debugMenu; // the debug menu
64-
65-
// protected JMenuItem debugMenuItem;
66-
// protected JMenuItem continueMenuItem;
67-
// protected JMenuItem stopMenuItem;
68-
69-
// protected JMenuItem toggleBreakpointMenuItem;
70-
// protected JMenuItem listBreakpointsMenuItem;
71-
72-
// protected JMenuItem stepOverMenuItem;
73-
// protected JMenuItem stepIntoMenuItem;
74-
// protected JMenuItem stepOutMenuItem;
75-
76-
// protected JMenuItem printStackTraceMenuItem;
77-
// protected JMenuItem printLocalsMenuItem;
78-
// protected JMenuItem printThisMenuItem;
79-
// protected JMenuItem printSourceMenuItem;
80-
// protected JMenuItem printThreads;
81-
82-
// protected JMenuItem toggleVariableInspectorMenuItem;
63+
protected JMenu debugMenu;
8364

8465
protected Debugger debugger; // the debugger
8566
protected DebugTray tray; // the variable inspector frame
8667

87-
// public JavaTextArea ta; // the text area
8868
public ErrorBar errorBar;
8969

9070
protected XQConsoleToggle btnShowConsole;
@@ -94,16 +74,7 @@ public class JavaEditor extends Editor {
9474
protected XQErrorTable errorTable;
9575

9676
// TODO how is this different from hasJavaTabs?
97-
public boolean compilationCheckEnabled = true;
98-
99-
// protected JCheckBoxMenuItem showWarnings;
100-
// public JCheckBoxMenuItem problemWindowMenuCB;
101-
// protected JCheckBoxMenuItem debugMessagesEnabled;
102-
// protected JMenuItem showOutline;
103-
// protected JMenuItem showTabOutline;
104-
// protected JCheckBoxMenuItem writeErrorLog;
105-
// protected JCheckBoxMenuItem completionsEnabled;
106-
77+
// public boolean compilationCheckEnabled = true;
10778
private boolean hasJavaTabs;
10879

10980

@@ -2428,7 +2399,6 @@ public boolean hasJavaTabs() {
24282399
private boolean checkForJavaTabs() {
24292400
for (SketchCode code : getSketch().getCode()) {
24302401
if (code.getExtension().equals("java")) {
2431-
compilationCheckEnabled = false;
24322402
final String msg =
24332403
getSketch().getName() + " contains .java tabs. Some editor " +
24342404
"features are not supported for .java tabs and will be disabled.";

java/src/processing/mode/java/pdex/ErrorCheckerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ protected boolean checkCode() {
504504
if (!hasSyntaxErrors()) {
505505

506506
}
507-
if (problems.length == 0 && editor.compilationCheckEnabled) {
507+
if (problems.length == 0 && !editor.hasJavaTabs()) {
508508
//mainClassOffset++; // just a hack.
509509

510510
sourceCode = xqpreproc.doYourThing(sourceCode, programImports);

todo.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ X remove public 'ta' object in DebugEditor, also dmode
9494
_ fix hasJavaTabs() function
9595
_ almost always used as a negative, or tied to a 'return' from fxn
9696
_ name isn't tied to its function, but the symptom
97+
_ only checked once (when the editor is created)
98+
X how does it relate to compilationCheckEnabled?
99+
X removed, seems to be duplicate/used the same way
97100
_ crashed on startup w/ JavaScript mode as default b/c PdeKeyListener not found
98101
_ because it's in the other ClassLoader, can no longer rely on it
99102

0 commit comments

Comments
 (0)