/** The trace to state system multi map */
private final Multimap<ITmfTrace, ITmfStateSystem> fTraceSSMap = HashMultimap.create();
- /** Instance-specific logger, which will use the concrete class's name */
- private final Logger fLogger = TraceCompassLog.getLogger(getClass());
+ private static final Logger LOGGER = TraceCompassLog.getLogger(AbstractStateSystemTimeGraphView.class);
// ------------------------------------------------------------------------
// Classes
getTimeGraphViewer().setMarkers(markers);
});
} else {
- fLogger.info(() -> "[TimeGraphView:ZoomThreadCanceled]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:ZoomThreadCanceled]"); //$NON-NLS-1$
}
}
queryFullStates(ss, start, end, resolution, monitor, new IQueryHandler() {
@Override
public void handle(@NonNull List<List<ITmfStateInterval>> fullStates, @Nullable List<ITmfStateInterval> prevFullState) {
- fLogger.config(() -> "[TimeGraphView:ZoomThreadGettingStates]"); //$NON-NLS-1$
+ LOGGER.config(() -> "[TimeGraphView:ZoomThreadGettingStates]"); //$NON-NLS-1$
if (!fullRange) {
for (TimeGraphEntry entry : entryList) {
zoom(checkNotNull(entry), ss, fullStates, prevFullState, monitor);
}
}
/* Refresh the arrows when zooming */
- fLogger.config(() -> "[TimeGraphView:ZoomThreadGettingLinks]"); //$NON-NLS-1$
+ LOGGER.config(() -> "[TimeGraphView:ZoomThreadGettingLinks]"); //$NON-NLS-1$
links.addAll(getLinkList(ss, fullStates, prevFullState, monitor));
/* Refresh the view-specific markers when zooming */
- fLogger.config(() -> "[TimeGraphView:ZoomThreadGettingMarkers]"); //$NON-NLS-1$
+ LOGGER.config(() -> "[TimeGraphView:ZoomThreadGettingMarkers]"); //$NON-NLS-1$
markers.addAll(getViewMarkerList(ss, fullStates, prevFullState, monitor));
- fLogger.config(() -> "[TimeGraphView:ZoomThreadDone]"); //$NON-NLS-1$
+ LOGGER.config(() -> "[TimeGraphView:ZoomThreadDone]"); //$NON-NLS-1$
}
});
refresh();
}
for (TimeGraphEntry child : entry.getChildren()) {
if (monitor.isCanceled()) {
- fLogger.info(() -> "[TimeGraphView:ZoomThreadCanceled]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:ZoomThreadCanceled]"); //$NON-NLS-1$
return;
}
zoom(child, ss, fullStates, prevFullState, monitor);
private static final Pattern RGBA_PATTERN = Pattern.compile("RGBA \\{(\\d+), (\\d+), (\\d+), (\\d+)\\}"); //$NON-NLS-1$
- /** Instance-specific logger, which will use the concrete class's name */
- private final Logger fLogger = TraceCompassLog.getLogger(getClass());
+ private static final Logger LOGGER = TraceCompassLog.getLogger(AbstractTimeGraphView.class);
/**
* Redraw state enum
@Override
public void run() {
- fLogger.info(() -> "[TimeGraphView:BuildThreadStart] trace=" + fBuildTrace.getName()); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:BuildThreadStart] trace=" + fBuildTrace.getName()); //$NON-NLS-1$
buildEntryList(fBuildTrace, fParentTrace, fMonitor);
synchronized (fBuildThreadMap) {
fBuildThreadMap.remove(fBuildTrace);
}
- fLogger.info(() -> "[TimeGraphView:BuildThreadEnd]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:BuildThreadEnd]"); //$NON-NLS-1$
}
public void cancel() {
@Override
public final void run() {
- fLogger.info(() -> "[TimeGraphView:ZoomThreadStart] start=" + fZoomStartTime + ", end=" + fZoomEndTime); //$NON-NLS-1$ //$NON-NLS-2$
+ LOGGER.info(() -> "[TimeGraphView:ZoomThreadStart] start=" + fZoomStartTime + ", end=" + fZoomEndTime); //$NON-NLS-1$ //$NON-NLS-2$
doRun();
fDirty.decrementAndGet();
- fLogger.info(() -> "[TimeGraphView:ZoomThreadEnd]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:ZoomThreadEnd]"); //$NON-NLS-1$
}
/**
@Override
public void doRun() {
- fLogger.config(() -> "[TimeGraphView:ZoomThreadGettingStates]"); //$NON-NLS-1$
+ LOGGER.config(() -> "[TimeGraphView:ZoomThreadGettingStates]"); //$NON-NLS-1$
for (TimeGraphEntry entry : fZoomEntryList) {
if (getMonitor().isCanceled()) {
- fLogger.info(() -> "[TimeGraphView:ZoomThreadCanceled]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:ZoomThreadCanceled]"); //$NON-NLS-1$
return;
}
if (entry == null) {
zoom(entry, getMonitor());
}
/* Refresh the arrows when zooming */
- fLogger.config(() -> "[TimeGraphView:ZoomThreadGettingLinks]"); //$NON-NLS-1$
+ LOGGER.config(() -> "[TimeGraphView:ZoomThreadGettingLinks]"); //$NON-NLS-1$
List<ILinkEvent> events = getLinkList(getZoomStartTime(), getZoomEndTime(), getResolution(), getMonitor());
/* Refresh the view-specific markers when zooming */
- fLogger.config(() -> "[TimeGraphView:ZoomThreadGettingMarkers]"); //$NON-NLS-1$
+ LOGGER.config(() -> "[TimeGraphView:ZoomThreadGettingMarkers]"); //$NON-NLS-1$
List<IMarkerEvent> markers = new ArrayList<>(getViewMarkerList(getZoomStartTime(), getZoomEndTime(), getResolution(), getMonitor()));
/* Refresh the trace-specific markers when zooming */
markers.addAll(getTraceMarkerList(getZoomStartTime(), getZoomEndTime(), getResolution(), getMonitor()));
}
fTrace = trace;
- fLogger.info(() -> "[TimeGraphView:LoadingTrace] trace=" + trace.getName()); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:LoadingTrace] trace=" + trace.getName()); //$NON-NLS-1$
restoreViewContext();
fEditorFile = TmfTraceManager.getInstance().getTraceEditorFile(trace);
* Refresh the display
*/
protected void refresh() {
- fLogger.info(() -> "[TimeGraphView:RefreshRequested]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:RefreshRequested]"); //$NON-NLS-1$
final boolean zoomThread = Thread.currentThread() instanceof ZoomThread;
TmfUiRefreshHandler.getInstance().queueUpdate(this, new Runnable() {
@Override
public void run() {
- fLogger.info(() -> "[TimeGraphView:RefreshStart]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:RefreshStart]"); //$NON-NLS-1$
if (fTimeGraphWrapper.isDisposed()) {
return;
}
startZoomThread(startTime, endTime);
}
fDirty.decrementAndGet();
- fLogger.info(() -> "[TimeGraphView:RefreshEnd]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:RefreshEnd]"); //$NON-NLS-1$
}
});
}
return;
}
}
- fLogger.info(() -> "[TimeGraphView:RedrawRequested]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:RedrawRequested]"); //$NON-NLS-1$
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
- fLogger.info(() -> "[TimeGraphView:RedrawStart]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:RedrawStart]"); //$NON-NLS-1$
if (fTimeGraphWrapper.isDisposed()) {
return;
}
fRedrawState = State.IDLE;
}
}
- fLogger.info(() -> "[TimeGraphView:RedrawEnd]"); //$NON-NLS-1$
+ LOGGER.info(() -> "[TimeGraphView:RedrawEnd]"); //$NON-NLS-1$
}
});
}