? netbeans Index: src/org/netbeans/modules/tasklist/suggestions/SuggestionsBroker.java =================================================================== RCS file: /cvs/tasklist/suggestions/src/org/netbeans/modules/tasklist/suggestions/SuggestionsBroker.java,v retrieving revision 1.24 diff -u -r1.24 SuggestionsBroker.java --- src/org/netbeans/modules/tasklist/suggestions/SuggestionsBroker.java 30 Mar 2004 14:21:33 -0000 1.24 +++ src/org/netbeans/modules/tasklist/suggestions/SuggestionsBroker.java 2 Apr 2004 10:40:43 -0000 @@ -342,7 +342,7 @@ workspace.addPropertyChangeListener(this); */ - doRescanInAWT(); + doRescanInAWT(false); } /** Cache tracking suggestions in recently visited files */ @@ -826,12 +826,15 @@ } } - doRescanInAWT(); + doRescanInAWT(true); } - /** It sends asynchronously to AWT thread. */ - private void doRescanInAWT() { + /** + * It sends asynchronously to AWT thread. + * @param delay if true schedule later acording to user settings otherwise do immediatelly + */ + private void doRescanInAWT(final boolean delay) { if (pendingScan) { return; } @@ -844,7 +847,7 @@ // be processing views try { if (clientCount > 0) { - findCurrentFile(true); + findCurrentFile(delay); } } finally { // XXX findCurrent file spawns a thread