initializeDataSource();
TmfUiRefreshHandler.getInstance().queueUpdate(TmfCommonXLineChartViewer.this,
new Runnable() {
- @Override
- public void run() {
- if (!getSwtChart().isDisposed()) {
- /* Delete the old series */
- clearContent();
- createSeries();
- }
- }
- });
+ @Override
+ public void run() {
+ if (!getSwtChart().isDisposed()) {
+ /* Delete the old series */
+ clearContent();
+ createSeries();
+ }
+ }
+ });
}
};
thread.start();
@Override
public void run() {
- updateData(getWindowStartTime(), getWindowEndTime(), fNumRequests, fMonitor);
+ Display.getDefault().syncExec(new Runnable() {
+ @Override
+ public void run() {
+ updateData(getWindowStartTime(), getWindowEndTime(), fNumRequests, fMonitor);
+ }
+ });
updateThreadFinished(this);
}
getSwtChart().redraw();
if (isSendTimeAlignSignals()) {
- // The width of the chart might have changed and its time
- // axis might be misaligned with the other views
+ // The width of the chart might have changed and its
+ // time axis might be misaligned with the other views
Point viewPos = TmfCommonXLineChartViewer.this.getParent().getParent().toDisplay(0, 0);
int axisPos = getSwtChart().toDisplay(0, 0).x + getPointAreaOffset();
int timeAxisOffset = axisPos - viewPos.x;