# HG changeset patch # User Jaroslav Tulach # Date 1344458553 -7200 # Node ID ee6bd6cf2bf32f2a693e42ae475f6d24c27ae392 # Parent 5319f085d966ae683ecccd600e51ac63949b1615 Andrei: Hide in the book the fact that in the code Playback is an innerclass diff -r 5319f085d966 -r ee6bd6cf2bf3 samples/individualsamples/build.xml --- a/samples/individualsamples/build.xml Wed Aug 08 22:35:26 2012 +0200 +++ b/samples/individualsamples/build.xml Wed Aug 08 22:42:33 2012 +0200 @@ -2,6 +2,11 @@ + + + + + Builds, tests, and runs the project individualsamples. diff -r 5319f085d966 -r ee6bd6cf2bf3 samples/individualsamples/nbproject/build-impl.xml --- a/samples/individualsamples/nbproject/build-impl.xml Wed Aug 08 22:35:26 2012 +0200 +++ b/samples/individualsamples/nbproject/build-impl.xml Wed Aug 08 22:42:33 2012 +0200 @@ -12,14 +12,21 @@ - execution - debugging - javadoc - - junit compilation - - junit execution - - junit debugging + - test compilation + - test execution + - test debugging - applet - cleanup --> - + + + + + + + + @@ -144,26 +248,79 @@ - + + + - + + - + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -180,51 +337,386 @@ Must set javac.includes - + + + - + + + + - + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + - + @@ -235,7 +727,9 @@ - + + + @@ -253,6 +747,12 @@ + + + + + + @@ -261,9 +761,13 @@ + - + + + + @@ -279,12 +783,18 @@ + + + + + + - + @@ -295,20 +805,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + @@ -317,19 +904,30 @@ - + + + + + + - - + + + + + + + + - + @@ -337,13 +935,13 @@ Must select some files in the IDE or set javac.includes - + - + - + - + - + - To run this application from the command line without Ant, try: + To run this application from the command line without Ant, try: - java -cp "${run.classpath.with.dist.jar}" ${main.class} + java -cp "${run.classpath.with.dist.jar}" ${main.class} - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: - java -jar "${dist.jar.resolved}" + java -jar "${dist.jar.resolved}" + + + + + + @@ -423,10 +1029,14 @@ - + Must select one file in the IDE or set run.class + + Must select one file in the IDE or set run.class + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + - + + + + + + + + + - + + + + + + + + + + + + + + @@ -482,7 +1220,7 @@ @@ -495,8 +1233,8 @@ - - + + @@ -510,10 +1248,10 @@ - + Must select some files in the IDE or set javac.includes - + @@ -525,17 +1263,17 @@ - + - Some tests failed; see details above. + Some tests failed; see details above. @@ -545,39 +1283,40 @@ Must select some files in the IDE or set test.includes - + - Some tests failed; see details above. + Some tests failed; see details above. - + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + - + Must select one file in the IDE or set test.class - - - - - - - - - - - - - - - + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + - + + @@ -614,14 +1353,48 @@ CLEANUP SECTION =============== --> - + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + diff -r 5319f085d966 -r ee6bd6cf2bf3 samples/individualsamples/nbproject/genfiles.properties --- a/samples/individualsamples/nbproject/genfiles.properties Wed Aug 08 22:35:26 2012 +0200 +++ b/samples/individualsamples/nbproject/genfiles.properties Wed Aug 08 22:42:33 2012 +0200 @@ -1,8 +1,8 @@ build.xml.data.CRC32=b3e64e2a -build.xml.script.CRC32=fc7f81ad -build.xml.stylesheet.CRC32=be360661 +build.xml.script.CRC32=33aaef08 +build.xml.stylesheet.CRC32=28e38971@1.54.0.46 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=b3e64e2a -nbproject/build-impl.xml.script.CRC32=330c4cd3 -nbproject/build-impl.xml.stylesheet.CRC32=f1d9da08 +nbproject/build-impl.xml.script.CRC32=8d71c369 +nbproject/build-impl.xml.stylesheet.CRC32=6ddba6b6@1.54.0.46 diff -r 5319f085d966 -r ee6bd6cf2bf3 samples/individualsamples/nbproject/project.properties --- a/samples/individualsamples/nbproject/project.properties Wed Aug 08 22:35:26 2012 +0200 +++ b/samples/individualsamples/nbproject/project.properties Wed Aug 08 22:42:33 2012 +0200 @@ -5,6 +5,7 @@ # This directory is removed when the project is cleaned: build.dir=build build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes diff -r 5319f085d966 -r ee6bd6cf2bf3 samples/individualsamples/src/org/apidesign/samples/XMMS.java --- a/samples/individualsamples/src/org/apidesign/samples/XMMS.java Wed Aug 08 22:35:26 2012 +0200 +++ b/samples/individualsamples/src/org/apidesign/samples/XMMS.java Wed Aug 08 22:42:33 2012 +0200 @@ -1,6 +1,9 @@ package org.apidesign.samples; // BEGIN: xmms.java.api.ext + +import org.apidesign.samples.XMMS.Playback.Volume; + // BEGIN: xmms.java.api public final class XMMS { public void play() { @@ -47,8 +50,8 @@ } // BEGIN: xmms.java.spi.instanceof private void doSetVolume(int volume) { - if (callback instanceof Playback.Volume) { - Playback.Volume pv = (Playback.Volume) callback; + if (callback instanceof Volume) { + Volume pv = (Volume) callback; pv.setVolume(volume); } }