From 80532b82a2a10f9adbf9d6dfdc3315fbdc833104 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Fri, 23 Sep 2022 16:01:54 -0400 Subject: [PATCH] bring back unused getCodeIndex() function for GUI Builder Tool --- app/src/processing/app/Sketch.java | 4 ++-- todo.txt | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/src/processing/app/Sketch.java b/app/src/processing/app/Sketch.java index a8f0fad73..ea8c93262 100644 --- a/app/src/processing/app/Sketch.java +++ b/app/src/processing/app/Sketch.java @@ -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() { diff --git a/todo.txt b/todo.txt index db0729251..471728e30 100755 --- a/todo.txt +++ b/todo.txt @@ -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