bring back unused getCodeIndex() function for GUI Builder Tool

This commit is contained in:
Ben Fry
2022-09-23 16:01:54 -04:00
parent 8ad8b2df51
commit 80532b82a2
2 changed files with 15 additions and 2 deletions
+2 -2
View File
@@ -1769,7 +1769,8 @@ public class Sketch {
}
/*
// Cannot remove because this is used by GUI Builder for Processing
// https://github.com/processing/processing4/issues/545
public int getCodeIndex(SketchCode who) {
for (int i = 0; i < codeCount; i++) {
if (who == code[i]) {
@@ -1778,7 +1779,6 @@ public class Sketch {
}
return -1;
}
*/
public SketchCode getCurrentCode() {
+13
View File
@@ -2,6 +2,19 @@
X using Java 17 in more syntax
X fix potential casting problem with Platform and DefaultPlatform
X should be unreachable, but fixed anyway
X bring back getCodeIndex() for GUI Builder Tool
X https://github.com/processing/processing4/issues/545
contribs
X Catalan translation for Processing 4.0.1
X https://github.com/processing/processing4/issues/550
X https://github.com/processing/processing4/pull/554
docs
X added a "Translations" page to the wiki
X https://github.com/processing/processing4/wiki/Translations
X https://github.com/processing/processing/wiki/Localization
_ set more build.xml files to use Java 17
_ remove target.path from build/build.xml