import org.eclipse.swt.widgets.MenuItem;\r
import org.eclipse.swt.widgets.Shell;\r
import org.tizen.dynamicanalyzer.common.AnalyzerConstants;\r
+import org.tizen.dynamicanalyzer.common.AnalyzerManager;\r
+import org.tizen.dynamicanalyzer.common.DASelectionData;\r
import org.tizen.dynamicanalyzer.common.Global;\r
import org.tizen.dynamicanalyzer.model.TableInput;\r
import org.tizen.dynamicanalyzer.resources.ColorResources;\r
private int[] columnSizes = { 70, 50, 60, 60, 80, 600};\r
private int[] columnAlignment = { SWT.CENTER, SWT.CENTER, SWT.CENTER, SWT.CENTER, SWT.LEFT, SWT.LEFT };\r
private boolean[] columnVisibility = { true, true, true, true, true, true };\r
- private int[] sortTypes = { AnalyzerConstants.SORT_TYPE_NUM, AnalyzerConstants.SORT_TYPE_STRING, AnalyzerConstants.SORT_TYPE_NUM,\r
- AnalyzerConstants.SORT_TYPE_NUM,AnalyzerConstants.SORT_TYPE_STRING, AnalyzerConstants.SORT_TYPE_STRING };\r
+ private int[] sortTypes = { AnalyzerConstants.SORT_TYPE_NONE, AnalyzerConstants.SORT_TYPE_NONE, AnalyzerConstants.SORT_TYPE_NONE,\r
+ AnalyzerConstants.SORT_TYPE_NONE,AnalyzerConstants.SORT_TYPE_NONE, AnalyzerConstants.SORT_TYPE_NONE };\r
\r
private List<TableInput> tableClone = new ArrayList<TableInput>();\r
private List<DADlogData> dlogClone = new ArrayList<DADlogData>();\r
double endMarkerTime = endTime\r
/ (TimelineConstants.MEGA_DOUBLE);\r
\r
+ clearAllselection();\r
+ \r
TimelineChartView TLchartView = (TimelineChartView) AnalyzerUtil.getView(TimelinePage.pageID, TimelineChartView.class.getName());\r
\r
DAChartPlotIntervalMarker intervalMarker = (DAChartPlotIntervalMarker) TLchartView.getChartBoard()\r
.getMarkers().get(UICommonConstants.SELECTION_MARKER_INDEX);\r
intervalMarker.setInterval(startMarkerTime, endMarkerTime);\r
\r
+ Toolbar.INSTANCE.setChartDragStartTime(startTime);\r
+ Toolbar.INSTANCE.setChartDragEndTime(endTime);\r
+ \r
+ /// send selection time to callTrace too selected in range\r
+ AnalyzerManager.getCurrentPage().updateView(\r
+ new DASelectionData(TimelinePage.timelineViewID, startTime, endTime, null, null));\r
}\r
private long convertTimeStringToLong(String timestring) {\r
long timelong = 0;\r
}\r
\r
private void selectTablefromChartDrag(long start, long end){\r
+ \r
+ if(start == end) return;\r
+ \r
+ // clear selection made by dragging mouse on table.\r
+ table.deselectAll();\r
+\r
for(int i = 0 ; i < table.getItems().length ; i++){\r
\r
long diffTime = Long.parseLong(dlogClone.get(i).getTime());\r
\r
}\r
}\r
+ \r
+ // clear selection made by selectTablefromChartDrag.\r
+ private void clearAllselection(){\r
+ \r
+ for(int i = 0 ; i < table.getItems().length ; i++){\r
+ table.getItem(i).setBackground(ColorResources.TABLE_CONTENTS_NORMAL);\r
+ table.getItem(i).setForeground(ColorResources.TABLE_CONTENTS_FONT_COLOR);\r
+ }\r
+ }\r
}\r
import org.tizen.dynamicanalyzer.model.FindProperty;
import org.tizen.dynamicanalyzer.model.TableInput;
import org.tizen.dynamicanalyzer.resources.ColorResources;
+import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar;
import org.tizen.dynamicanalyzer.ui.widgets.DAGrid;
import org.tizen.dynamicanalyzer.ui.widgets.SearchDialog;
import org.tizen.dynamicanalyzer.util.CommonUtil;
if (itemCount <= 0) {
return;
}
-
+
+ /// when updateTable, selectionTime updated by ToolBar INSTANCE dragtime.
+ if(selectionStartTime == selectionEndTime || selectionStartTime < 0 || selectionEndTime < 0 ){
+ if( !(Toolbar.INSTANCE.getChartDragStartTime() < 0) && !(Toolbar.INSTANCE.getChartDragEndTime() < 0) )
+ {
+ selectionStartTime = Toolbar.INSTANCE.getChartDragStartTime();
+ selectionEndTime = Toolbar.INSTANCE.getChartDragEndTime();
+ }
+ }
+
List<TableInput> output = null;
output = makeTableInputFromDB(itemCount);
if (null == output) {