[Title] Fix. DA File Page - Print Called APi
authorphjwithyou.park <phjwithyou.park@samsung.com>
Thu, 2 Aug 2012 08:08:57 +0000 (17:08 +0900)
committerphjwithyou.park <phjwithyou.park@samsung.com>
Thu, 2 Aug 2012 08:08:57 +0000 (17:08 +0900)
[Type] bug.
[Module] File Page
[Priority] normal
[CQ#]
[Redmine#] 6186
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/filePage/fileChart/DAFileChartCellRenderer.java

index d102536..6d47aa4 100644 (file)
@@ -339,7 +339,8 @@ public class DAFileChartCellRenderer extends DefaultCellRenderer {
             {
                 fx += AnalyzerUtil.getWidth(time - startTime);
                 Rectangle failedRect = new Rectangle(fx-1, fy, fWidth+1, height);
-                String strApiName = ffd.getData().get(LogCenterConstants.APINAME_INDEX);
+                
+                String strApiName = ffd.getData().get(LogCenterConstants.RESOURCE_FDAPITYPE_INDEX);
                 Color[] pAPiColor = getFileAPiColorBright( strApiName );
                 gc.setForeground( pAPiColor[0] );
                 gc.setBackground( pAPiColor[1] );
@@ -356,11 +357,11 @@ public class DAFileChartCellRenderer extends DefaultCellRenderer {
     public static Color[] getFileAPiColorBright( String strApiName ) 
     {
        Color[] pApiColor = new Color[2];
-       if ( strApiName.endsWith("write") ){
+       if ( strApiName.endsWith(LogCenterConstants.FD_API_TYPE_READ) ){
                pApiColor[0] = ColorResources.TURQUOISE;
                pApiColor[1] = ColorResources.TURQUOISE;
        }
-       else if ( strApiName.endsWith("read") ){
+       else if ( strApiName.endsWith(LogCenterConstants.FD_API_TYPE_WRITE) ){
                pApiColor[0] = ColorResources.YELLOWGREEN;
                pApiColor[1] = ColorResources.YELLOWGREEN;
        }