Index: apichanges.xml =================================================================== RCS file: /cvs/java/source/apichanges.xml,v retrieving revision 1.10 diff -u -r1.10 apichanges.xml --- apichanges.xml 5 Jun 2007 13:08:54 -0000 1.10 +++ apichanges.xml 13 Jun 2007 16:43:27 -0000 @@ -82,7 +82,21 @@ - + + + CancellableTask split into Task and CancellableTask. + + + + + + The JavaSource.runModificationTask(), runWhenScanFinished() and runUserActionTask() never call the cancel method of the + CancellableTask, the implementor of such a CancellableTask just writes an empty cancel method. The compatible API + change splits the CancellableTask into Task with run method and CancellableTask which extends the Task by cancel method. + The JavaSource methods mentioned above take Task rather than CancellableTask. The CancellableTask is used only for tasks + registered by factories. + + Added a method to obtain top level elements defined in the source/class file.