From f1fbe503bb891385d46f6bfb990e323fb9a5f47b Mon Sep 17 00:00:00 2001 From: benfry Date: Fri, 9 Aug 2002 03:34:41 +0000 Subject: [PATCH] usual --- processing/app/PdeEditor.java | 13 +++++++++++++ processing/todo.txt | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/processing/app/PdeEditor.java b/processing/app/PdeEditor.java index b21a86002..7a997f857 100644 --- a/processing/app/PdeEditor.java +++ b/processing/app/PdeEditor.java @@ -5,6 +5,10 @@ import java.net.*; import java.util.*; import java.util.zip.*; +#ifdef JEDIT +import org.gjt.sp.jedit.textarea; +#endif + public class PdeEditor extends Panel { @@ -37,7 +41,11 @@ public class PdeEditor extends Panel { PdeEditorHeader header; PdeEditorStatus status; PdeEditorConsole console; +#ifndef JEDIT TextArea textarea; +#else + JEditTextArea textarea; +#endif // currently opened program String userName; // user currently logged in @@ -100,6 +108,7 @@ public class PdeEditor extends Panel { rightPanel.add("North", header); textarea = +#ifndef JEDIT new TextArea("", PdeBase.getInteger("editor.program.rows", 20), PdeBase.getInteger("editor.program.columns", 60), @@ -112,6 +121,10 @@ public class PdeEditor extends Panel { frame.setCursor(Frame.CROSSHAIR_CURSOR); } }); +#else + new JEditTextArea(); +#endif + rightPanel.add("Center", textarea); Panel statusPanel = new Panel(); diff --git a/processing/todo.txt b/processing/todo.txt index 7280997f5..dac29ae80 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -4,6 +4,13 @@ pde _ don't popup offscreen if editor window is way left. _ just make sure the x coord > 10 or so (if not presenting) _ don't throw exceptions for serial on startup if no serial available? +_ as approaches 1000 lines, editorconsole has arrayindexoutof bounds +int a; +void loop() +{ + a++; + println(a); +} sketchbook _ organizing directories, save to other directories blows up