[SRADA-786]Fix : Click Analyze Range set "dlogselection" false, DlogTable Scroll...
authorggh1933.go <ggh1933.go@samsung.com>
Fri, 24 Jun 2016 01:20:11 +0000 (10:20 +0900)
committerdongkyu6 lee <dongkyu6.lee@samsung.com>
Mon, 27 Jun 2016 02:49:17 +0000 (11:49 +0900)
 - Dlogtable Scroll move to Selection start time
 - If click Analyze Range, make dlog selection false for fix dlogtable selection update issue.

Change-Id: I741b0d82ee8c7f390798a270620a757f8b917385

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/range/RangeDataManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/dlog/DlogTable.java

index cd8ffd7..486ddec 100644 (file)
@@ -328,6 +328,9 @@ public class RangeDataManager implements Runnable {
                                markerEndTime = markerTimeList.get(findIndex);
                        }
                        
+                       // if click analyze range, setDlogselection false.
+                       Toolbar.INSTANCE.setDlogSelection(false);
+                       
                        AnalyzerManager.getCurrentPage().updateView(
                                        new DASelectionData(TimelinePage.timelineViewID, markerStartTime, markerEndTime, null, null));
                }
index 3be2029..deb9f22 100644 (file)
@@ -439,7 +439,8 @@ public class DlogTable extends DATableComposite {
        }\r
        \r
        private void selectTablefromChartDrag(long start, long end){\r
-                               \r
+               \r
+               boolean getFocusIndex = false;          \r
 \r
                if(Toolbar.INSTANCE.getDlogSelection()){\r
                        return;\r
@@ -453,6 +454,12 @@ public class DlogTable extends DATableComposite {
                        long diffTime = Long.parseLong(dlogClone.get(i).getTime());\r
                        \r
                        if(diffTime >= start && diffTime <= end){\r
+                               /// Dlog focus move to selection start\r
+                               if(!getFocusIndex){\r
+                               table.getVerticalBar().setSelection(i - 1);\r
+                               getFocusIndex = true;\r
+                               }\r
+                               \r
                                table.getItem(i).setBackground(ColorResources.TABLE_CONTENTS_SELECTED_START);\r
                                table.getItem(i).setForeground(ColorResources.WHITE);\r
                        }\r