From 44788e310ef1e52a5935959e954ddbc06c23d6cc Mon Sep 17 00:00:00 2001 From: Yehia Rasheed <157399068+yehiarasheed@users.noreply.github.com> Date: Thu, 13 Mar 2025 13:59:40 +0200 Subject: [PATCH] Refactor code style to comply with style guidelines: removed unnecessary whitespace and added two blank lines between function blocks for improved readability. --- app/src/processing/app/ui/Editor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/processing/app/ui/Editor.java b/app/src/processing/app/ui/Editor.java index 016143415..65efb27f0 100644 --- a/app/src/processing/app/ui/Editor.java +++ b/app/src/processing/app/ui/Editor.java @@ -844,7 +844,6 @@ public abstract class Editor extends JFrame implements RunnerListener { editMenuUpdatable.add(action); menu.add(item); - // Update copy/cut state on selection/de-selection menu.addMenuListener(new MenuListener() { // UndoAction and RedoAction do this for themselves. @@ -1889,7 +1888,6 @@ public abstract class Editor extends JFrame implements RunnerListener { } - public void handleIndent() { handleIndentOutdent(true); } @@ -1943,6 +1941,8 @@ public abstract class Editor extends JFrame implements RunnerListener { stopCompoundEdit(); sketch.setModified(true); } + + /** * Moves the selected lines up or down in the text editor. * @@ -2046,6 +2046,7 @@ public abstract class Editor extends JFrame implements RunnerListener { } } + static public boolean checkParen(char[] array, int index, int stop) { while (index < stop) { switch (array[index]) {