{
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] );
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;
}