# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\Projects\core-main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: spi.tasklist/apichanges.xml --- spi.tasklist/apichanges.xml Base (BASE) +++ spi.tasklist/apichanges.xml Locally Modified (Based On LOCAL) @@ -75,6 +75,21 @@ + + + PushTaskScanner.Callback provides additional information. + + + + + +

+ PushTaskScanner.Callback provides information whether the framework is observed and whether the current editor scope is set. + Both these methods are needed for performance improvements of NB PushTaskScanners. +

+
+ +
Task List implementation uses Indexing API to cache scanned tasks. Index: spi.tasklist/nbproject/project.properties --- spi.tasklist/nbproject/project.properties Base (BASE) +++ spi.tasklist/nbproject/project.properties Locally Modified (Based On LOCAL) @@ -3,6 +3,6 @@ javac.source=1.6 javadoc.arch=${basedir}/arch.xml javadoc.apichanges=${basedir}/apichanges.xml -spec.version.base=1.23.0 +spec.version.base=1.24 test.config.stableBTD.includes=**/*Test.class Index: spi.tasklist/src/org/netbeans/spi/tasklist/PushTaskScanner.java --- spi.tasklist/src/org/netbeans/spi/tasklist/PushTaskScanner.java Base (BASE) +++ spi.tasklist/src/org/netbeans/spi/tasklist/PushTaskScanner.java Locally Modified (Based On LOCAL) @@ -168,5 +168,22 @@ public void finished() { tm.finished( scanner ); } + + /** + * @returns true, if the framework is observed. + * @since spi.tasklist/1.24 + */ + public boolean isObserved() { + return tm.isObserved(); + } + + /** + * @returns true, if the current editor scope is set in the framework. + * Performance helper method. + * @since spi.tasklist/1.24 + */ + public boolean isCurrentEditorScope() { + return tm.isCurrentEditorScope(); + } } }