lots of fixes for 0070p7

This commit is contained in:
benfry
2004-09-28 03:54:00 +00:00
parent 9047c52827
commit 6996fefa09
11 changed files with 55 additions and 26 deletions

View File

@@ -311,10 +311,18 @@ public class PdeCompiler implements PdeMessageConsumer {
// c:/fry/processing/build/windows/work/lib/build/Temporary_6858_2476.java:1:34:1:41: Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Package "poo/shoe" could not be found in:
String classpathProblem = "You need to modify your classpath";
if (description.indexOf(classpathProblem) != -1) {
int nextSentence = description.indexOf(". Package") + 2;
description =
description.substring(nextSentence, description.indexOf(':')) +
" the code folder or in any libraries.";
if (description.indexOf("quicktime/std") != -1) {
// special case for the quicktime libraries
description =
"To run sketches that use the Processing video library, " +
"you must first install QuickTime for Java.";
} else {
int nextSentence = description.indexOf(". Package") + 2;
description =
description.substring(nextSentence, description.indexOf(':')) +
" the code folder or in any libraries.";
}
}
//System.out.println("description = " + description);

View File

@@ -261,6 +261,7 @@ public class PdePreferences extends JComponent {
exportLibraryBox = new JCheckBox("Enable advanced \"Library\" features" +
" (requires restart)");
exportLibraryBox.setEnabled(false);
pain.add(exportLibraryBox);
d = exportLibraryBox.getPreferredSize();
exportLibraryBox.setBounds(left, top, d.width, d.height);

View File

@@ -90,8 +90,7 @@ public class PdeRuntime implements PdeMessageConsumer {
windowLocation.x + "," + windowLocation.y) :
(PApplet.EXT_LOCATION + x1 + "," + y1);
System.out.println("library path is " + sketch.libraryPath);
//System.out.println("library path is " + sketch.libraryPath);
String command[] = new String[] {
//"cmd", "/c", "start",

View File

@@ -368,6 +368,9 @@ public class PdeSketchbook {
e.printStackTrace();
}
/*
// don't do this until it's finished
// libraries don't show up as proper sketches anyway
try {
if (PdePreferences.getBoolean("export.library")) {
JMenu librariesMenu = new JMenu("Libraries");
@@ -377,7 +380,7 @@ public class PdeSketchbook {
} catch (IOException e) {
e.printStackTrace();
}
*/
}