File tree 2 files changed +417
-2
lines changed
2 files changed +417
-2
lines changed Original file line number Diff line number Diff line change 9
9
import java .io .IOException ;
10
10
import java .nio .file .Files ;
11
11
import java .nio .file .Path ;
12
- import java .util .Properties ;
13
12
import java .util .UUID ;
14
13
15
14
import javax .swing .AbstractAction ;
25
24
import processing .app .Platform ;
26
25
import processing .app .SketchCode ;
27
26
import processing .app .SketchException ;
27
+ import processing .app .syntax .JEditTextArea ;
28
+ import processing .app .syntax .PdeTextAreaDefaults ;
28
29
import processing .app .ui .Editor ;
29
30
import processing .app .ui .EditorException ;
30
31
import processing .app .ui .EditorState ;
45
46
*/
46
47
public class RLangEditor extends Editor {
47
48
48
- private static final boolean VERBOSE = Boolean .parseBoolean (System .getenv ("VERBOSE_RLANG_MODE" ));
49
+ private static final boolean VERBOSE = Boolean
50
+ .parseBoolean (System .getenv ("VERBOSE_RLANG_MODE" ));
49
51
50
52
private static void log (final String msg ) {
51
53
if (VERBOSE ) {
@@ -185,6 +187,11 @@ public Formatter createFormatter() {
185
187
return null ;
186
188
}
187
189
190
+ @ Override
191
+ protected JEditTextArea createTextArea () {
192
+ return new JEditTextArea (new PdeTextAreaDefaults (mode ), new RLangInputHandler (this ));
193
+ }
194
+
188
195
/**
189
196
* @see processing.app.ui.Editor#createToolbar()
190
197
*/
You can’t perform that action at this time.
0 commit comments