mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
more package mania.. preproc now inserts "public" in front of void setup
This commit is contained in:
@@ -231,6 +231,7 @@ public class PdePreprocessor {
|
||||
*/
|
||||
void writeHeader(PrintStream out, String imports[],
|
||||
String className) {
|
||||
//out.print("package pootime;");
|
||||
|
||||
// emit emports that are needed for classes from the code folder
|
||||
if (imports != null) {
|
||||
@@ -247,7 +248,7 @@ public class PdePreprocessor {
|
||||
if (jdkVersionStr.equals("1.3")) { jdkVersion = JDK13; };
|
||||
if (jdkVersionStr.equals("1.4")) { jdkVersion = JDK14; };
|
||||
|
||||
for (int i = 0; i < jdkVersion; i++) {
|
||||
for (int i = 0; i <= jdkVersion; i++) {
|
||||
for (int j = 0; j < defaultImports[i].length; j++) {
|
||||
out.print("import " + defaultImports[i][j] + ".*; ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user