use of org.eclipse.tracecompass.analysis.timing.core.segmentstore.IAnalysisProgressListener in project tracecompass by tracecompass.
the class AbstractSegmentStoreDensityViewer method internalDispose.
private void internalDispose() {
fSegmentStoreProviders.entrySet().forEach(entry -> {
IAnalysisProgressListener listener = fProgressListeners.get(entry.getKey());
if (listener != null) {
Objects.requireNonNull(entry.getValue()).removeListener(listener);
}
});
fTooltipProvider.dispose();
fProgressListeners.clear();
fDragZoomProvider.dispose();
fDragProvider.dispose();
super.dispose();
}
use of org.eclipse.tracecompass.analysis.timing.core.segmentstore.IAnalysisProgressListener in project tracecompass by tracecompass.
the class AbstractSegmentStoreDensityViewer method updateWindowRange.
private void updateWindowRange(TmfTimeRange windowRange, boolean updateListeners) {
for (Entry<@NonNull String, @NonNull ISegmentStoreProvider> entry : fSegmentStoreProviders.entrySet()) {
ISegmentStoreProvider provider = Objects.requireNonNull(entry.getValue());
if (updateListeners) {
IAnalysisProgressListener listener = (segmentProvider, data) -> updateWithRange(windowRange);
provider.addListener(listener);
fProgressListeners.put(entry.getKey(), listener);
}
if (provider instanceof IAnalysisModule) {
((IAnalysisModule) provider).schedule();
}
}
}
Aggregations