mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
0031a
X lib/pde.properties should be read using getResource X otherwise path issues cause trouble (likely under win98) X take state information out of Header X cleanup lastFile/lastDirectory X save (just) last program run in sketch.properties X coloring of error, message, etc changed in pde.properties X finish save changes stuff 0031b X editorlistener shouldn't track menu commands as changes to file X ctrl keys bksp/del/enter/return/tab then space on up X indicator for changes? X need to implement code for whether changes have been made X check for key events in textarea or something X if key events, compare contents against the existing file X userName not getting set before sketchbook menu is built X add 'refresh list' item to the sketchbook menu 0031c X ability to set directory for compiling in kjcengine 0031d X make sure compiling into build directory X and once compiled there, read all classes for export
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
import java.io.*;
|
||||
//import java.util.*;
|
||||
|
||||
|
||||
public class PdeRunner implements Runnable {
|
||||
//DbnGraphics graphics;
|
||||
//PdeEnvironment env;
|
||||
@@ -86,27 +90,6 @@ public class PdeRunner implements Runnable {
|
||||
// throw new Exception("javac support not included");
|
||||
//#endif
|
||||
|
||||
} else if (program.indexOf("// dbn") == 0) {
|
||||
#ifdef DBN
|
||||
String pre = "set red 0; set green 1; set blue 2; " +
|
||||
"set quicktime 0; set tiff 1; set illustrator 2; ";
|
||||
DbnParser parser =
|
||||
new DbnParser(DbnPreprocessor.process(pre + program));
|
||||
|
||||
DbnToken root = parser.getRoot();
|
||||
//root.print();
|
||||
if (!root.findToken(DbnToken.SIZE)) {
|
||||
graphics.size(101, 101, 1);
|
||||
}
|
||||
if (root.findToken(DbnToken.REFRESH)) {
|
||||
graphics.aiRefresh = false;
|
||||
}
|
||||
engine = new DbnEngine(root, graphics);
|
||||
engine.start();
|
||||
#else
|
||||
throw new Exception("dbn support not included");
|
||||
#endif
|
||||
|
||||
} else {
|
||||
/*
|
||||
forceStop = true;
|
||||
@@ -115,7 +98,22 @@ public class PdeRunner implements Runnable {
|
||||
forceStop = false;
|
||||
*/
|
||||
|
||||
engine = new KjcEngine(program, editor);
|
||||
//engine = new KjcEngine(program, "lib", editor);
|
||||
String buildPath =
|
||||
editor.sketchFile.getParent() + File.separator + "build";
|
||||
|
||||
/*
|
||||
Properties props = System.getProperties();
|
||||
String cp = props.getProperty("java.class.path");
|
||||
System.out.println("in: " + cp);
|
||||
props.put("java.class.path",
|
||||
cp + File.pathSeparator + buildPath);
|
||||
String cp2 = props.getProperty("java.class.path");
|
||||
System.out.println("out: " + cp2);
|
||||
System.setProperties(props);
|
||||
*/
|
||||
|
||||
engine = new KjcEngine(program, buildPath, editor);
|
||||
engine.start();
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user