Skip to content

Commit 3cd158a

Browse files
authored
Merge branch 'processing:main' into main-gradle
2 parents b421274 + 42d331a commit 3cd158a

22 files changed

+132
-19
lines changed

.all-contributorsrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,34 @@
14281428
"contributions": [
14291429
"doc"
14301430
]
1431+
},
1432+
{
1433+
"login": "xinemata",
1434+
"name": "Xin Xin",
1435+
"avatar_url": "https://avatars.githubusercontent.com/u/9159424?v=4",
1436+
"profile": "https://github.com/xinemata",
1437+
"contributions": [
1438+
"eventOrganizing",
1439+
"ideas"
1440+
]
1441+
},
1442+
{
1443+
"login": "tracerstar",
1444+
"name": "Benjamin Fox",
1445+
"avatar_url": "https://avatars.githubusercontent.com/u/234190?v=4",
1446+
"profile": "http://benjaminfoxstudios.com",
1447+
"contributions": [
1448+
"code"
1449+
]
1450+
},
1451+
{
1452+
"login": "e1dem",
1453+
"name": "e1dem",
1454+
"avatar_url": "https://avatars.githubusercontent.com/u/32488297?v=4",
1455+
"profile": "https://github.com/e1dem",
1456+
"contributions": [
1457+
"code"
1458+
]
14311459
}
14321460
],
14331461
"repoType": "github",

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Build Release
5656
run: ant -noinput -buildfile build/build.xml ${{ matrix.os_prefix }}-dist -Dversion="${{ github.sha }}" -Dplatform=${{ matrix.os_prefix }}
5757
- name: Add artifact
58-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5959
id: upload
6060
with:
6161
name: processing-pr${{ github.event.pull_request.number }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-ant

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ For licensing information about the Processing website see the [processing-websi
6464

6565
Copyright (c) 2015-now The Processing Foundation
6666

67-
## Contributors
67+
## All Contributors List
6868

6969
Add yourself to the contributors list [here](https://github.com/processing/processing4-carbon-aug-19/issues/839)!
7070

@@ -281,6 +281,11 @@ Add yourself to the contributors list [here](https://github.com/processing/proce
281281
<td align="center" valign="top" width="16.66%"><a href="http://d.hatena.ne.jp/junology/"><img src="https://avatars.githubusercontent.com/u/1933073?v=4?s=120" width="120px;" alt="Junology"/><br /><sub><b>Junology</b></sub></a><br /><a href="https://github.com/processing/processing4/commits?author=Junology" title="Code">💻</a></td>
282282
<td align="center" valign="top" width="16.66%"><a href="https://github.com/twisst"><img src="https://avatars.githubusercontent.com/u/2244463?v=4?s=120" width="120px;" alt="Jaap Meijers"/><br /><sub><b>Jaap Meijers</b></sub></a><br /><a href="https://github.com/processing/processing4/commits?author=twisst" title="Documentation">📖</a></td>
283283
</tr>
284+
<tr>
285+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/xinemata"><img src="https://avatars.githubusercontent.com/u/9159424?v=4?s=120" width="120px;" alt="Xin Xin"/><br /><sub><b>Xin Xin</b></sub></a><br /><a href="#eventOrganizing-xinemata" title="Event Organizing">📋</a> <a href="#ideas-xinemata" title="Ideas, Planning, & Feedback">🤔</a></td>
286+
<td align="center" valign="top" width="16.66%"><a href="http://benjaminfoxstudios.com"><img src="https://avatars.githubusercontent.com/u/234190?v=4?s=120" width="120px;" alt="Benjamin Fox"/><br /><sub><b>Benjamin Fox</b></sub></a><br /><a href="https://github.com/processing/processing4/commits?author=tracerstar" title="Code">💻</a></td>
287+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/e1dem"><img src="https://avatars.githubusercontent.com/u/32488297?v=4?s=120" width="120px;" alt="e1dem"/><br /><sub><b>e1dem</b></sub></a><br /><a href="https://github.com/processing/processing4/commits?author=e1dem" title="Code">💻</a></td>
288+
</tr>
284289
</tbody>
285290
</table>
286291

app/src/processing/app/Sketch.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,25 @@ public void handleDeleteCode() {
659659
return;
660660
}
661661

662+
if(currentIndex == 0){
663+
Object[] options = { Language.text("menu.sketch.show_sketch_folder"), Language.text("prompt.cancel") };
664+
int result = JOptionPane.showOptionDialog(editor,
665+
Language.interpolate("warn.delete.sketch_last", getName()),
666+
Language.text("warn.delete"),
667+
JOptionPane.YES_NO_OPTION,
668+
JOptionPane.ERROR_MESSAGE,
669+
null,
670+
options,
671+
options[1]);
672+
if (result == JOptionPane.YES_OPTION) {
673+
Platform.openFolder(folder);
674+
}
675+
return;
676+
}
677+
662678
// confirm deletion with user, yes/no
663679
Object[] options = { Language.text("prompt.ok"), Language.text("prompt.cancel") };
664-
String prompt = (currentIndex == 0) ?
665-
Language.interpolate("warn.delete.sketch_folder", getName()) :
666-
Language.interpolate("warn.delete.sketch_file", current.getPrettyName());
680+
String prompt = Language.interpolate("warn.delete.sketch_file", current.getPrettyName());
667681
int result = JOptionPane.showOptionDialog(editor,
668682
prompt,
669683
Language.text("warn.delete"),
@@ -672,6 +686,7 @@ public void handleDeleteCode() {
672686
null,
673687
options,
674688
options[0]);
689+
// TODO: Remove the code to remove the entire sketch folder
675690
if (result == JOptionPane.YES_OPTION) {
676691
if (currentIndex == 0) { // delete the entire sketch
677692
// need to unset all the modified flags, otherwise tries

build/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ First, [download the IntelliJ IDEA Community Edition](https://www.jetbrains.com/
99
1. Clone the Processing4 repository to your machine locally
1010
1. Open the cloned repository in IntelliJ IDEA CE
1111
1. Click `Install Required Plugins` on the bottom right or in the notification tray
12-
1. In the main menu, go to File > Project Structure > Project Settings > Project.
13-
1. In the SDK Dropdown option, select a JDK version 17 or Download the jdk
12+
1. Open the `Project Structure` window (`Ctrl+Alt+Shift+S` on Windows/Linux or `⌘;` on macOS)
13+
2. Go to `Project Settings > Project`
14+
1. In the SDK Dropdown option, select a JDK version 17 or `Download a JDK`
1415
1. Select your platform (Windows, MacOS or Linux) in the top right of the window
1516
1. Click the green Run Icon next to it
1617
1. Logs can be found in the `messages` or `run` pane on the bottom left of the window

build/shared/lib/languages/PDE.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ contrib.import.errors.link = Error: The library %s has a strange looking downloa
600600

601601
warn.delete = Delete
602602
warn.delete.sketch_folder = Are you sure you want to delete this sketch?\nThis will remove the entire “%s” folder.
603+
warn.delete.sketch_last = To keep your files safe, deleting the whole sketch folder is not supported in Processing. \nPlease open the sketch folder in your file explorer to delete it.
603604
warn.delete.sketch_file = Are you sure you want to delete “%s”?
604605
warn.cannot_change_mode.title = Cannot change mode
605606
warn.cannot_change_mode.body = Cannot change mode,\nbecause “%s” mode is not compatible with current mode.

build/shared/lib/languages/PDE_de.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ editor.status.error.syntax = Syntaxfehler - %s
407407

408408
warn.delete = Löschen
409409
warn.delete.sketch = Den Sketch endgültig löschen?
410+
warn.delete.sketch_last = Um deine Dateien sicher zu halten, wird das Löschen des gesamten Sketch-Ordners in Processing nicht unterstützt. \nBitte öffne den Sketch-Ordner in deinem Datei-Explorer, um ihn zu löschen.
410411
warn.delete.file = Die Datei "%s" entgültig löschen?
411412

412413

build/shared/lib/languages/PDE_el.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ contrib.import.errors.link = Error: The library %s has a strange looking downloa
478478

479479
warn.delete = Διαγραφή
480480
warn.delete.sketch = Είσαι σίγουρος ότι θέλεις να διαγραφεί το Σχέδιο;
481+
warn.delete.sketch_last = Για να διατηρήσετε τα αρχεία σας ασφαλή, η διαγραφή ολόκληρου του φακέλου Σχεδίου δεν υποστηρίζεται στο Processing.\nΠαρακαλούμε ανοίξτε το φάκελο Σχεδίου στον εξερευνητή αρχείων για να το διαγράψετε.
481482
warn.delete.file = Είσαι σίγουρος ότι θέλεις να διαγράψεις το "%s";
482483

483484

build/shared/lib/languages/PDE_es.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ contrib.import.errors.link = Error: el enlace de descarga de la biblioteca «%s
599599

600600
warn.delete = Eliminar
601601
warn.delete.sketch_folder = ¿Seguro que quieres eliminar el sketch?\nEsto suprimirá la carpeta «%s» y todo su contenido.
602+
warn.delete.sketch_last = Para mantener tus archivos seguros, no se admite eliminar toda la carpeta del sketch en Processing.\nAbre la carpeta del sketch en tu explorador de archivos para eliminarla.
602603
warn.delete.sketch_file = ¿Seguro que quieres eliminar el archivo «%s»?
603604
warn.cannot_change_mode.title = Error cambio de modo
604605
warn.cannot_change_mode.body = No se puede cambiar al modo «%s»\nporque no es compatible con el modo actual.

build/shared/lib/languages/PDE_fr.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ contrib.import.errors.link = Erreur : Le lien de téléchargement de la biblioth
487487
# Warnings
488488

489489
warn.delete = Supprimer
490-
warn.delete.sketch = Êtes-vous sûr(e) de vouloir supprimer ce sketch?
490+
warn.delete.sketch = Êtes-vous sûr(e) de vouloir supprimer ce sketch? \nLe dossier “%s” sera entièrement effacé.
491+
# warn.delete.sketch_last = To keep your files safe, deleting the whole sketch folder isn?t supported in Processing. \nPlease open the sketch folder in your file explorer to delete it.
492+
warn.delete.sketch_last = Pour protéger vos fichiers, la suppression du dossier de sketch entier n'est pas prise en charge dans Processing. \nVeuillez ouvrir le dossier de sketch dans votre explorateur de fichiers pour le supprimer.
491493
warn.delete.file = Êtes-vous sûr(e) de vouloir supprimer «%s»?
492494
warn.cannot_change_mode.title = Impossible de changer le mode
493495
warn.cannot_change_mode.body = Impossible de changer de mode, \ncar le mode "%s" n'est pas compatible avec le mode actuel.

0 commit comments

Comments
 (0)