[Title] Add Chart To String externalization
authorphjwithyou.park <phjwithyou.park@samsung.com>
Tue, 17 Jul 2012 07:58:42 +0000 (16:58 +0900)
committerphjwithyou.park <phjwithyou.park@samsung.com>
Tue, 17 Jul 2012 07:58:42 +0000 (16:58 +0900)
[Type] Feature
[Module] Chart Page - Add Chart Dlg - Item Sub String
[Priority] Noamal
[CQ#]
[Redmine#] 5096
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/TimelineChartLables.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/TimelineChartLables.properties
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/timeline/TimelineEditItemsDialog.java

index 5dd9c33..2e14874 100644 (file)
@@ -103,6 +103,9 @@ public class TimelineChartLables extends NLS {
        public static String TIMELINE_UTILS_VOLTAGE;
        public static String TIMELINE_UTILS_WIFI;
        public static String CHART_AXIS_LABEL_PERCENT;
+       
+       public static String ADD_CHART_DLG_ITEM_SUB;
+       
        static {
                // initialize resource bundle
                NLS.initializeMessages(BUNDLE_NAME, TimelineChartLables.class);
index 6388d32..1f424b2 100644 (file)
@@ -21,6 +21,7 @@ import org.eclipse.swt.widgets.TableColumn;
 import org.eclipse.swt.widgets.TableItem;
 import org.tizen.dynamicanalyzer.ColorResources;
 import org.tizen.dynamicanalyzer.ImageResources;
+import org.tizen.dynamicanalyzer.nl.TimelineChartLables;
 import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
 import org.eclipse.swt.dnd.*;
 import org.eclipse.swt.graphics.Color;
@@ -162,7 +163,7 @@ public class TimelineEditItemsDialog extends Dialog {
                    Point size = event.gc.textExtent(itemName);
                    int offset2 = event.index == 0 ? Math.max(0, (event.height - size.y) / 2) : 0;
                    
-                   String itemExplan = "com.samsung.calculator_2012-07-16:10:10:01";
+                   String itemExplan = TimelineChartLables.ADD_CHART_DLG_ITEM_SUB;
                    size = event.gc.textExtent(itemExplan);
                    offset2 = event.index == 0 ? Math.max(0, (event.height - size.y) / 2) : 0;
 
@@ -182,7 +183,7 @@ public class TimelineEditItemsDialog extends Dialog {
                                    event.gc.setForeground(ColorResources.ADD_CHART_DISABLE_COLOR_START);
                                    event.gc.setBackground(ColorResources.ADD_CHART_DISABLE_COLOR_END);
                    }
-                   event.gc.fillGradientRectangle(0, rect.y, 402, 66, false);
+                   event.gc.fillGradientRectangle(0, rect.y, 402, 66, true);
                    gc.setForeground(foreground);
                    gc.setBackground(background);
                    event.detail &= ~SWT.SELECTED;