This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 41625
Collapse All | Expand All

(-)src/org/netbeans/modules/tasklist/suggestions/SuggestionsBroker.java (-5 / +8 lines)
Lines 342-348 Link Here
342
        workspace.addPropertyChangeListener(this);
342
        workspace.addPropertyChangeListener(this);
343
        */
343
        */
344
344
345
        doRescanInAWT();
345
        doRescanInAWT(false);
346
    }
346
    }
347
347
348
    /** Cache tracking suggestions in recently visited files */
348
    /** Cache tracking suggestions in recently visited files */
Lines 826-837 Link Here
826
            }
826
            }
827
        }
827
        }
828
828
829
        doRescanInAWT();
829
        doRescanInAWT(true);
830
830
831
    }
831
    }
832
832
833
    /** It sends asynchronously to AWT thread. */
833
    /**
834
    private void doRescanInAWT() {
834
     * It sends asynchronously to AWT thread.
835
     * @param delay if true schedule later acording to user settings otherwise do immediatelly
836
     */
837
    private void doRescanInAWT(final boolean delay) {
835
        if (pendingScan) {
838
        if (pendingScan) {
836
            return;
839
            return;
837
        }
840
        }
Lines 844-850 Link Here
844
                // be processing views
847
                // be processing views
845
                try {
848
                try {
846
                    if (clientCount > 0) {
849
                    if (clientCount > 0) {
847
                        findCurrentFile(true);
850
                        findCurrentFile(delay);
848
                    }
851
                    }
849
                } finally {
852
                } finally {
850
                    // XXX findCurrent file spawns a thread
853
                    // XXX findCurrent file spawns a thread

Return to bug 41625