Timeline : fix potential bug 08/26408/1
authorjungwook.ryu <jungwook.ryu@samsung.com>
Fri, 22 Aug 2014 05:12:06 +0000 (14:12 +0900)
committerjungwook.ryu <jungwook.ryu@samsung.com>
Fri, 22 Aug 2014 05:12:33 +0000 (14:12 +0900)
Change-Id: I3bab4d2e059a1d96103b465532b9fdff77501f57
Signed-off-by: jungwook.ryu <jungwook.ryu@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineChartManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineEditItemsDialog.java

index 65f22ea..4a70d25 100644 (file)
@@ -100,7 +100,7 @@ public class TimelineChartManager extends PageDataManager implements
        private HashMap<String, TimelineChart> chartInstanceMapNameKey;
        private HashMap<Integer, TimelineChart> chartInstanceMapTypeKey;
 
-       private HashMap<Long, UserCustomChart> customChartMap;
+       private HashMap<Integer, UserCustomChart> customChartMap;
        private DAChartBoard chartBoard = null;
 
        private CustomLogParser customLogParser = null;
@@ -138,7 +138,7 @@ public class TimelineChartManager extends PageDataManager implements
                selectedChartList = new ArrayList<TimelineChart>();
                chartInstanceMapNameKey = new HashMap<String, TimelineChart>();
                chartInstanceMapTypeKey = new HashMap<Integer, TimelineChart>();
-               customChartMap = new HashMap<Long, UserCustomChart>();
+               customChartMap = new HashMap<Integer, UserCustomChart>();
 
                customLogParser = new CustomLogParser(this);
 
@@ -250,7 +250,7 @@ public class TimelineChartManager extends PageDataManager implements
        }
 
        public void addCustomChart(UserCustomChart customChart) {
-               long chartType = customChart.getChartType();
+               int chartType = customChart.getChartType();
                if (!customChartMap.containsKey(chartType)) {
                        customChartMap.put(chartType, customChart);
                        chartList.add(customChart);
index 7c45206..f48c19d 100644 (file)
@@ -555,7 +555,7 @@ public class TimelineEditItemsDialog extends DAMessageBox {
                return chartTableViewer.getTable().getItem(new Point(x, y));
        }
        
-       private class TableItemData {
+       private static class TableItemData {
                int index;
                int chartType;
                Image titleImage;