public bool OnDisplayReparseAllWords(object commandObject, ref UIItemDisplayProperties display) { CheckDisposed(); ParserConnection con = Connection; ParserScheduler parser = null; if (con != null) { parser = con.Parser; } // must wait for the queue to empty before we can fill it up again or else we run the risk of breaking the parser thread display.Enabled = ((con != null) && (parser != null) && parser.GetQueueSize(ParserScheduler.Priority.eventually) == 0); return(true); //we handled this. }
public int GetQueueSize(ParserPriority priority) { CheckDisposed(); return(m_scheduler.GetQueueSize(priority)); }