From 2cbab63bd6c230d31b8ae6f1d794ad49bf23bb53 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 19 Dec 2010 14:54:08 +0100 Subject: JOGL/NEWT: Introduce WindowClosingProtocol (solves Bug/Request 444) Similar to JFrame's closing behavior, the following components window closing follow the new WindowClosingProtocol: - GLCanvas - GLJPanel - NEWT Window, GLWindow - NEWT NewtCanvasAWT The implementation obeys either 1) the user value set by this interface, 2) an underlying toolkit set user value (JFrame, ..) 3) or it's default, eg. {@link #DO_NOTHING_ON_CLOSE DO_NOTHING_ON_CLOSE} within an AWT environment. If none of the above determines the operation, this protocol default behavior {@link #DISPOSE_ON_CLOSE DISPOSE_ON_CLOSE} shall be used. --- make/build-test.xml | 4 ++-- make/scripts/tests.sh | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'make') diff --git a/make/build-test.xml b/make/build-test.xml index 0b0fe1695..40bdcf7a3 100644 --- a/make/build-test.xml +++ b/make/build-test.xml @@ -21,9 +21,9 @@ + - - + diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index f8fd30f80..03f3d4b98 100644 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -74,8 +74,8 @@ function testawt() { #testawt com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextListNEWT $* #testnoawt com.jogamp.opengl.test.junit.jogl.glsl.TestTransformFeedbackVaryingsBug407NEWT $* #testnoawt com.jogamp.opengl.test.junit.jogl.glsl.TestGLSLSimple01NEWT $* -#testnoawt com.jogamp.opengl.test.junit.newt.TestRemoteWindow01NEWT -time 1000000 -#testnoawt com.jogamp.opengl.test.junit.newt.TestRemoteGLWindows01NEWT -time 1000000 +#testnoawt com.jogamp.opengl.test.junit.newt.TestRemoteWindow01NEWT $* +#testnoawt com.jogamp.opengl.test.junit.newt.TestRemoteGLWindows01NEWT $* #testawt com.jogamp.opengl.test.junit.jogl.demos.gl2.gears.newt.TestGearsNEWT $* #testawt com.jogamp.opengl.test.junit.newt.TestDisplayLifecycle01NEWT #testawt com.jogamp.opengl.test.junit.newt.TestDisplayLifecycle02NEWT @@ -92,7 +92,7 @@ function testawt() { # # awt (testawt) # -testawt com.jogamp.newt.impl.awt.opengl.VersionApplet $* +#testawt com.jogamp.newt.impl.awt.opengl.VersionApplet $* #testawt javax.media.opengl.awt.GLCanvas $* #testawt com.jogamp.opengl.test.junit.jogl.awt.TestAWT01GLn $* #testawt com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextListAWT $* @@ -128,6 +128,10 @@ testawt com.jogamp.newt.impl.awt.opengl.VersionApplet $* #testawt com.jogamp.opengl.test.junit.jogl.newt.TestSwingAWTRobotUsageBeforeJOGLInitBug411 $* #testawt com.jogamp.opengl.test.junit.newt.parenting.TestParenting01NEWT $* +#testawt com.jogamp.opengl.test.junit.newt.TestWindowClosingProtocol01AWT $* +#testawt com.jogamp.opengl.test.junit.newt.TestWindowClosingProtocol02NEWT $* +testawt com.jogamp.opengl.test.junit.newt.TestWindowClosingProtocol03NewtAWT $* + #testawt $* #testawt com.jogamp.opengl.test.junit.jogl.acore.TestGLProfile01NEWT $* -- cgit v1.2.3