From a89cb727c3cce10bc4e3c7d463c1ec0291cb87fd Mon Sep 17 00:00:00 2001 From: Jonathan Feinberg Date: Mon, 31 Mar 2014 14:12:49 -0400 Subject: [PATCH 1/3] Remove unnecessary Eclipse dependencies from app project. --- app/.classpath | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/.classpath b/app/.classpath index eb8980d92..5f5f89e60 100644 --- a/app/.classpath +++ b/app/.classpath @@ -9,11 +9,6 @@ - - - - - From d52184fc0995a35cb4be3ccf01f81b4e29ccf7b2 Mon Sep 17 00:00:00 2001 From: Jonathan Feinberg Date: Tue, 1 Apr 2014 15:25:11 -0400 Subject: [PATCH 2/3] Make it possible for PApplet subclasses to override exitActual. --- core/src/processing/core/PApplet.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index b16bad1b1..18075f106 100755 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -4027,8 +4027,12 @@ public class PApplet extends Applet } } - - void exitActual() { + /** + * Some subclasses (I'm looking at you, processing.py) might wish to do something + * other than actually terminate the JVM. This gives them a chance to do whatever + * they have in mind when cleaning up. + */ + protected void exitActual() { try { System.exit(0); } catch (SecurityException e) { From 8e6dc95ef0c56b52a7b6b24af8ace519a15f73f1 Mon Sep 17 00:00:00 2001 From: Jonathan Feinberg Date: Tue, 1 Apr 2014 15:25:11 -0400 Subject: [PATCH 3/3] Make it possible for PApplet subclasses to override exitActual. --- core/src/processing/core/PApplet.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index b16bad1b1..18075f106 100755 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -4027,8 +4027,12 @@ public class PApplet extends Applet } } - - void exitActual() { + /** + * Some subclasses (I'm looking at you, processing.py) might wish to do something + * other than actually terminate the JVM. This gives them a chance to do whatever + * they have in mind when cleaning up. + */ + protected void exitActual() { try { System.exit(0); } catch (SecurityException e) {