1+ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2+
13/*
2- * Copyright (C) 2012-14 Martin Leopold <[email protected] > and Manindra Moharana <[email protected] > 3- *
4- * This program is free software; you can redistribute it and/or modify it under
5- * the terms of the GNU General Public License as published by the Free Software
6- * Foundation; either version 2 of the License, or (at your option) any later
7- * version.
8- *
9- * This program is distributed in the hope that it will be useful, but WITHOUT
10- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12- * details.
13- *
14- * You should have received a copy of the GNU General Public License along with
15- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16- * Place - Suite 330, Boston, MA 02111-1307, USA.
17- */
18- package processing .mode .experimental ;
19- import static processing .mode .experimental .ExperimentalMode .log ;
20- import static processing .mode .experimental .ExperimentalMode .logE ;
21- import galsasson .mode .tweak .ColorControlBox ;
22- import galsasson .mode .tweak .Handle ;
23- import galsasson .mode .tweak .SketchParser ;
24- import galsasson .mode .tweak .UDPTweakClient ;
4+ Part of the Processing project - http://processing.org
5+ Copyright (c) 2012-15 The Processing Foundation
6+
7+ This program is free software; you can redistribute it and/or modify
8+ it under the terms of the GNU General Public License version 2
9+ as published by the Free Software Foundation.
10+
11+ This program is distributed in the hope that it will be useful,
12+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ GNU General Public License for more details.
15+
16+ You should have received a copy of the GNU General Public License
17+ along with this program; if not, write to the Free Software Foundation, Inc.
18+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+ */
20+
21+ package processing .mode .java .debug ;
22+
23+ import static processing .mode .java .pdex .ExperimentalMode .log ;
24+ import static processing .mode .java .pdex .ExperimentalMode .logE ;
2525
2626import java .awt .BorderLayout ;
2727import java .awt .CardLayout ;
8181import processing .app .syntax .PdeTextAreaDefaults ;
8282import processing .core .PApplet ;
8383import processing .mode .java .JavaEditor ;
84+ import processing .mode .java .pdex .AutoSaveUtil ;
85+ import processing .mode .java .pdex .ErrorBar ;
86+ import processing .mode .java .pdex .ErrorCheckerService ;
87+ import processing .mode .java .pdex .ErrorMessageSimplifier ;
88+ import processing .mode .java .pdex .ExperimentalMode ;
89+ import processing .mode .java .pdex .Problem ;
90+ import processing .mode .java .pdex .TextArea ;
91+ import processing .mode .java .pdex .XQConsoleToggle ;
92+ import processing .mode .java .pdex .XQErrorTable ;
93+ import processing .mode .java .tweak .ColorControlBox ;
94+ import processing .mode .java .tweak .Handle ;
95+ import processing .mode .java .tweak .SketchParser ;
96+ import processing .mode .java .tweak .UDPTweakClient ;
97+
8498
8599/**
86100 * Main View Class. Handles the editor window including tool bar and menu. Has
@@ -128,13 +142,13 @@ public class DebugEditor extends JavaEditor implements ActionListener {
128142 // variable inspector
129143 protected JMenuItem toggleVariableInspectorMenuItem ;
130144 // references
131- protected ExperimentalMode dmode ; // the mode
145+ public ExperimentalMode dmode ; // the mode
132146 protected Debugger dbg ; // the debugger
133147 protected VariableInspector vi ; // the variable inspector frame
134- protected TextArea ta ; // the text area
135-
136148
137- protected ErrorBar errorBar ;
149+ public TextArea ta ; // the text area
150+ public ErrorBar errorBar ;
151+
138152 /**
139153 * Show Console button
140154 */
@@ -161,7 +175,7 @@ public class DebugEditor extends JavaEditor implements ActionListener {
161175 /**
162176 * Enable/Disable compilation checking
163177 */
164- protected boolean compilationCheckEnabled = true ;
178+ public boolean compilationCheckEnabled = true ;
165179
166180 /**
167181 * Show warnings menu item
@@ -196,7 +210,7 @@ public class DebugEditor extends JavaEditor implements ActionListener {
196210 /**
197211 * If sketch contains java tabs, some editor features are disabled
198212 */
199- protected boolean hasJavaTabs ;
213+ public boolean hasJavaTabs ;
200214
201215 /**
202216 * UNUSED. Disbaled for now.
@@ -454,7 +468,7 @@ public void actionPerformed(ActionEvent e) {
454468 /**
455469 * Whether debug toolbar is enabled
456470 */
457- AtomicBoolean debugToolbarEnabled ;
471+ public AtomicBoolean debugToolbarEnabled ;
458472
459473 protected EditorToolbar javaToolbar , debugToolbar ;
460474
@@ -1622,7 +1636,7 @@ public void statusEmpty(){
16221636 super .statusEmpty ();
16231637 }
16241638
1625- ErrorCheckerService errorCheckerService ;
1639+ public ErrorCheckerService errorCheckerService ;
16261640
16271641 /**
16281642 * Initializes and starts Error Checker Service
@@ -1740,7 +1754,7 @@ protected void applyPreferences() {
17401754 public static final String prefTweakPort = "tweak.port" ;
17411755 public static final String prefTweakShowCode = "tweak.showcode" ;
17421756
1743- String [] baseCode ;
1757+ public String [] baseCode ;
17441758
17451759 final static int SPACE_AMOUNT = 0 ;
17461760
0 commit comments