private void changeComboThreadToSync() {
stackLayout.topControl = syncChartBoard;
- threadCombo.setText(ThreadPageLabels.THREAD_CHART_SYNC);
+ syncCombo.setText(ThreadPageLabels.THREAD_CHART_SYNC);
syncChartBoard.setScaleVal(threadChartBoard.getScaleVal());
syncChartBoard.setVisibleStart(threadChartBoard.getVisibleStart());
syncChartBoard.setItemsHeightMode(threadChartBoard.isItemMinimized());
private void selectionFromSummary(DASelectionData selData) {
Object odata = selData.getData();
String category = LogDataFactory.getLogFormatName(((ProbeCommonData) odata).getId());
- if(null == category){
+ if (null == category) {
return;
}
String selectTid = Integer.toString(((ProbeCommonData) odata).getTid());
double startTime = (double) start / TimelineConstants.MEGA_DOUBLE;
double endTime = (double) end / TimelineConstants.MEGA_DOUBLE;
intervalMarker.setInterval(startTime, endTime);
+ moveSelectTime(startTime);
}
private void selectionFromAPITable(DASelectionData selData) {
double startTime = (double) start / TimelineConstants.MEGA_DOUBLE;
double endTime = (double) end / TimelineConstants.MEGA_DOUBLE;
intervalMarker.setInterval(startTime, endTime);
+ moveSelectTime(startTime);
+ }
+
+ private void moveSelectTime(double time) {
+ if (stackLayout.topControl == syncChartBoard) {
+ syncChartBoard.setVisibleMiddleTime(time);
+ syncChartBoard.updateChart();
+ } else {
+ threadChartBoard.setVisibleMiddleTime(time);
+ threadChartBoard.updateChart();
+ }
}
private int getThreadChartIndexOfSelected(String tID) {
}
return 0;
}
-
+
private int getSyncChartIndexOfSelected(String tID) {
int itemSize = syncChartBoard.getItemList().getItemSize();
if (null == tID || 0 == itemSize) {