} catch (InterruptedException ex) {
Logger.getLogger(DefaultTODHandler.class.getName()).log(Level.SEVERE, null, ex);
}
this.processManager.getMaster().flush();
ILogBrowser browser = this.todSession.getLogBrowser();
if (thread == null) {
return browser.createBrowser().clone();
}
// Create a thread filter.
IThreadInfo todThread = this.getTODSession().getThreadTracker().getByReference(thread).getTODThreadReference();
if (todThread == null) {
return null;
}
IEventFilter filter = browser.createThreadFilter(todThread);
/*IEventFilter bcf = browser.createBehaviorCallFilter();
IEventFilter vwf = browser.createVariableWriteFilter();
IEventFilter fwf = browser.createFieldWriteFilter();*/
// If the depth is known, limit our scope to it.
if (depth != -1) {
IEventFilter depthFilter = browser.createDepthFilter(depth);
IEventFilter depthFilter2 = browser.createDepthFilter(depth - 1);
IEventFilter tmpFilter = browser.createUnionFilter(depthFilter, depthFilter2);
filter = browser.createIntersectionFilter(filter, tmpFilter);
}
//IEventFilter filter2 = browser.createUnionFilter(bcf, vwf, fwf);
//filter = browser.createIntersectionFilter(filter, filter2);
IEventBrowser clone = browser.createBrowser(filter).clone();
return clone;
}