[Title] String Externalization
authorLee <jy.exe.lee@samsung.com>
Mon, 30 Jul 2012 03:56:54 +0000 (12:56 +0900)
committerLee <jy.exe.lee@samsung.com>
Mon, 30 Jul 2012 03:56:54 +0000 (12:56 +0900)
[Type]
[Module] Dynamic Analyzer
[Priority] normal
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

30 files changed:
org.tizen.dynamicanalyzer.workbench/plugin.properties
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ColorResources.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ConfigureManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/DACommunicator.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/FontResources.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/LogSpliter.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/PathManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ResourceCommunicator.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/constants/AnalyzerConstants.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/constants/DeviceConstants.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/SaveTraceHandler.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/model/CallStackUnit.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.properties
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerMessages.java [deleted file]
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerMessages.properties [deleted file]
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/CoolbarArea.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/SnapshotView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/pageInfo/PageChartItem.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/pageInfo/PageDataColumn.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/threadPage/ThreadChartView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/timelinePage/CallTraceView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/timelinePage/DATimelineTabComposite.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/DAPageAPIListTable/DAPageAPIListTable.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/DAPageChart/DAPageChart.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/DAPageChart/DAPageChartTimelineCellRenderer.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/StopProgressDialog.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/tables/ProfilingTable.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/utils/CallStackManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/utils/FunctionUsageProfiler.java

index 7779482..c20970b 100644 (file)
@@ -4,7 +4,7 @@ pluginName=Dynamic Analyzer Workbench
 providerName=Samsung Electronics\r
 \r
 #Product name, Application Name\r
-DynamicAnalyzer=Dynamic Analyzer\r
+DynamicAnalyzer=Tizen Dynamic Analyzer\r
 \r
 #Perspective name\r
 MainPerspective=MainPerspective
\ No newline at end of file
index 8868822..e9d6f1e 100755 (executable)
@@ -32,17 +32,17 @@ public class ColorResources {
        // shell window background color\r
        public static Color WINDOW_BG_COLOR = getColor("window_bg_color"); //$NON-NLS-1$\r
        \r
-       public static Color DIALOG_BG_UPPER = getColor("dialg_bg_upper");\r
-       public static Color DIALOG_BG_LOWER = getColor("dialg_bg_lower");\r
-       public static Color DIALOG_SUNKEN_1 = getColor("dialg_sunken_1");\r
-       public static Color DIALOG_SUNKEN_2 = getColor("dialg_sunken_2");\r
+       public static Color DIALOG_BG_UPPER = getColor("dialg_bg_upper");//$NON-NLS-1$\r
+       public static Color DIALOG_BG_LOWER = getColor("dialg_bg_lower");//$NON-NLS-1$\r
+       public static Color DIALOG_SUNKEN_1 = getColor("dialg_sunken_1");//$NON-NLS-1$\r
+       public static Color DIALOG_SUNKEN_2 = getColor("dialg_sunken_2");//$NON-NLS-1$\r
        \r
-       public static Color EDIT_CHART_DIALOG_UPPER = getColor("edit_chart_dialog_upper");\r
-       public static Color EDIT_CHART_DIALOG_LOWER = getColor("edit_chart_dialog_lower");\r
+       public static Color EDIT_CHART_DIALOG_UPPER = getColor("edit_chart_dialog_upper");//$NON-NLS-1$\r
+       public static Color EDIT_CHART_DIALOG_LOWER = getColor("edit_chart_dialog_lower");//$NON-NLS-1$\r
 \r
        public static Color VIEW_BORDER = getColor("view_border"); //$NON-NLS-1$\r
        public static Color VIEW_BG_COLOR = getColor("view_bg_color"); //$NON-NLS-1$\r
-       public static Color VIEW_TITLE_FONT_COLOR = getColor("view_title_font_color");\r
+       public static Color VIEW_TITLE_FONT_COLOR = getColor("view_title_font_color");//$NON-NLS-1$\r
        \r
        /** title bar colors **/\r
        public static Color TITLEBAR_TEXT_COLOR = getColor("titlebar_text_color"); //$NON-NLS-1$\r
@@ -50,7 +50,7 @@ public class ColorResources {
 \r
        /** Coolbar bg color **/\r
        public static Color COOLBAR_BG_COLOR = getColor("coolbar_bg_color"); //$NON-NLS-1$\r
-       public static Color DEFAULT_FONT_COLOR = getColor("default_font_color");\r
+       public static Color DEFAULT_FONT_COLOR = getColor("default_font_color");//$NON-NLS-1$\r
 \r
        /** device and application combo specific colors start **/\r
        public static Color DEVICE_APPLICATION_ENABLE = getColor("device_application_enable_font"); //$NON-NLS-1$\r
@@ -146,22 +146,22 @@ public class ColorResources {
        /** common table colors end **/\r
 \r
        /** open trace popup colors **/\r
-       public static Color OPEN_TRACE_LABEL_COLOR = getColor("open_trace_label_color");\r
-       public static Color OPEN_TRACE_SAVE_CONTENTS_COLOR = getColor("open_trace_save_contents_color");\r
-       public static Color OPEN_TRACE_TEMP_CONTENTS_COLOR = getColor("open_trace_temp_contents_color");\r
-       public static Color OPEN_TRACE_TABLE_OUTLINE_COLOR = getColor("open_trace_table_outline_color");\r
+       public static Color OPEN_TRACE_LABEL_COLOR = getColor("open_trace_label_color");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_SAVE_CONTENTS_COLOR = getColor("open_trace_save_contents_color");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_TEMP_CONTENTS_COLOR = getColor("open_trace_temp_contents_color");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_TABLE_OUTLINE_COLOR = getColor("open_trace_table_outline_color");//$NON-NLS-1$\r
 \r
-       public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR1 = getColor("open_trace_table_content_normal_color1");\r
-       public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR1 = getColor("open_trace_table_content_hover_color1");\r
-       public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR1 = getColor("open_trace_table_content_selected_start_color1");\r
-       public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR1 = getColor("open_trace_table_content_selected_end_color1");\r
+       public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR1 = getColor("open_trace_table_content_normal_color1");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR1 = getColor("open_trace_table_content_hover_color1");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR1 = getColor("open_trace_table_content_selected_start_color1");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR1 = getColor("open_trace_table_content_selected_end_color1");//$NON-NLS-1$\r
 \r
-       public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR2 = getColor("open_trace_table_content_normal_color2");\r
-       public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR2 = getColor("open_trace_table_content_hover_color2");\r
-       public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR2 = getColor("open_trace_table_content_selected_start_color2");\r
-       public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR2 = getColor("open_trace_table_content_selected_end_color2");\r
+       public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR2 = getColor("open_trace_table_content_normal_color2");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR2 = getColor("open_trace_table_content_hover_color2");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR2 = getColor("open_trace_table_content_selected_start_color2");//$NON-NLS-1$\r
+       public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR2 = getColor("open_trace_table_content_selected_end_color2");//$NON-NLS-1$\r
 \r
-       public static Color OPEN_TRACE_BUTTON_COMPOSITE_BG_COLOR = getColor("open_trace_button_composite_bg_color");\r
+       public static Color OPEN_TRACE_BUTTON_COMPOSITE_BG_COLOR = getColor("open_trace_button_composite_bg_color");//$NON-NLS-1$\r
 \r
        public static Color OPEN_TRACE_POPUP_CONTENTS_BG_COLOR = getColor("open_trace_popup_contents_bg_color"); //$NON-NLS-1$\r
        public static Color OPEN_TRACE_POPUP_BOTTOM_BG_COLOR = getColor("open_trace_popup_bottom_bg_color"); //$NON-NLS-1$\r
@@ -234,10 +234,10 @@ public class ColorResources {
        public static Color FILE_CHART_CHILD_BG_START = getColor("file_chart_child_bg_start"); //$NON-NLS-1$\r
        public static Color FILE_CHART_CHILD_BG_END = getColor("file_chart_child_bg_end"); //$NON-NLS-1$\r
 \r
-       public static Color FILE_CHART_GRADATION_COLOR = getColor("file_chart_gradation_color");\r
+       public static Color FILE_CHART_GRADATION_COLOR = getColor("file_chart_gradation_color");//$NON-NLS-1$\r
 \r
-       public static Color FILE_CHART_SELECTED_FONT_COLOR = getColor("file_chart_selected_font_color");\r
-       public static Color FILE_CHART_NORMAL_FONT_COLOR = getColor("file_chart_normal_font_color");\r
+       public static Color FILE_CHART_SELECTED_FONT_COLOR = getColor("file_chart_selected_font_color");//$NON-NLS-1$\r
+       public static Color FILE_CHART_NORMAL_FONT_COLOR = getColor("file_chart_normal_font_color");//$NON-NLS-1$\r
 \r
        public static Color UNSELECTED_TAB_FIRST = getColor("unselected_tab_first"); //$NON-NLS-1$\r
        public static Color UNSELECTED_TAB_SECOND = getColor("unselected_tab_second"); //$NON-NLS-1$\r
index 0c0f0db..10fe83c 100644 (file)
@@ -182,7 +182,7 @@ public class ConfigureManager {
         if (data == null) {\r
             ;\r
             data = new HashMap<String, String>();\r
-            return "";\r
+            return ""; //$NON-NLS-1$\r
         }\r
         String ret = data.get(key);\r
         if (null == ret)\r
index 51194d7..2efb531 100644 (file)
@@ -215,7 +215,7 @@ public class DACommunicator {
             int size = appList.size();
             for (int i = 0; i < size;) {
                 if (i % 2 == 0 && i + 1 >= size) {
-                    System.out.println(" Multi line app list!!" + appList.get(i));
+                    System.out.println(" Multi line app list!!" + appList.get(i)); //$NON-NLS-1$
                     reservedApplicationList = appList.get(i);
                     break;
                 }
index 1e94ec0..b873347 100644 (file)
@@ -145,12 +145,12 @@ public class FontResources {
                Font OSFont = PlatformUI.getWorkbench().getDisplay().getSystemFont();\r
                 if (AnalyzerUtil.isLinux()) \r
                 {\r
-                    OSFont = getFont("ex_font", new FontData[] { new FontData("Dejavu Sans", 9, SWT.NORMAL) });\r
+                    OSFont = getFont("ex_font", new FontData[] { new FontData("Dejavu Sans", 9, SWT.NORMAL) }); //$NON-NLS-1$ //$NON-NLS-2$\r
             } \r
                 else if (AnalyzerUtil.isWin()) \r
             {\r
             \r
-                OSFont = getFont("ex_font", new FontData[] { new FontData("Verdana", 9, SWT.NORMAL) });\r
+                OSFont = getFont("ex_font", new FontData[] { new FontData("Verdana", 9, SWT.NORMAL) }); //$NON-NLS-1$ //$NON-NLS-2$\r
             }\r
                 return OSFont;\r
        }\r
index ac34980..4570f75 100644 (file)
@@ -261,8 +261,8 @@ public class LogSpliter {
                                baseAddr);
                String prevFunctionName = functionName;
                functionName = SymbolNameDemangler.nameDemangle(prevFunctionName);
-               if (functionName.startsWith("_Z")) {
-                   System.out.println("at setFuncName : " + prevFunctionName + " after function name:" + functionName);
+               if (functionName.startsWith("_Z")) { //$NON-NLS-1$
+                   System.out.println("at setFuncName : " + prevFunctionName + " after function name:" + functionName); //$NON-NLS-1$ //$NON-NLS-2$
                }
                input[LogCenterConstants.APINAME_INDEX] = functionName;
        }
index dd9b821..ae1b7f7 100644 (file)
@@ -12,6 +12,7 @@ import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Shell;
 import org.eclipse.ui.PlatformUI;
 import org.tizen.dynamicanalyzer.constants.AnalyzerConstants;
+import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
 import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
 import org.tizen.dynamicanalyzer.widgets.button.DACustomButton;
 import org.tizen.dynamicanalyzer.widgets.button.DACustomButtonClickEventListener;
@@ -21,20 +22,20 @@ import org.tizen.dynamicanalyzer.widgets.dialog.DADialog;
 public class PathManager {
     public static String getRegistryValue(String node, String key) {
         BufferedReader br = null;
-        String value = "";
+        String value = ""; //$NON-NLS-1$
 
-        String query = "reg query " + "\"" + node + "\" /v " + "\"" + key + "\"";
+        String query = "reg query " + "\"" + node + "\" /v " + "\"" + key + "\""; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
         try {
             Process process = Runtime.getRuntime().exec(query);
-            String encoding = System.getProperty("sun.jnu.encoding");
+            String encoding = System.getProperty("sun.jnu.encoding"); //$NON-NLS-1$
 
             br = new BufferedReader(new InputStreamReader(process.getInputStream(), encoding));
 
             String line = null;
             while ((line = br.readLine()) != null) {
-                int index = line.indexOf("REG_SZ");
+                int index = line.indexOf("REG_SZ"); //$NON-NLS-1$
                 if (index >= 0) {
-                    value = line.substring(index + "REG_SZ".length()).trim();
+                    value = line.substring(index + "REG_SZ".length()).trim(); //$NON-NLS-1$
                 }
             }
         } catch (IOException e) {
@@ -125,7 +126,7 @@ public class PathManager {
     public static String getSdbPath() {
         String path = AnalyzerConstants.TIZEN_ROOT_PATH;
         if (null != path) {
-            path += File.separator + "tools" + File.separator + "sdb";
+            path += File.separator + "tools" + File.separator + "sdb"; //$NON-NLS-1$ //$NON-NLS-2$
         }
         return path;
     }
@@ -154,7 +155,7 @@ public class PathManager {
             DADialog dialog = daDailog;
             dialog.setBgColor(ColorResources.VIEW_BG_COLOR);
             dialog.setIcon(ImageResources.DYNAIC_ANALYZER_ICON);
-            dialog.setMessage("Please install the Tizen SDK");
+            dialog.setMessage(AnalyzerLabels.PATH_WARNING);
 
             dialog.getOkButton().addClickListener(new DACustomButtonClickEventListener() {
 
index c5bc920..443f826 100644 (file)
@@ -109,7 +109,7 @@ public class ResourceCommunicator extends DACommunicator {
                                                ConfigureManager.INTERNALCALL)
                                + AnalyzerConstants.CMD_SPLIT
                                + ResourceCommunicator.getSelectedApp().getExecPath();
-               System.out.println("Send message :" + message);
+               System.out.println("Send message :" + message); //$NON-NLS-1$
                sendMessage(message);
        }
 
index 16e9ac4..d0171a0 100644 (file)
@@ -84,7 +84,7 @@ public class AnalyzerConstants {
 \r
     public static final String WIN_INSTALL_NODE =\r
             "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders";//$NON-NLS-1$\r
-    public static final String WIN_INSTALL_KEY = "Local AppData";\r
+    public static final String WIN_INSTALL_KEY = "Local AppData"; //$NON-NLS-1$\r
 \r
     public static final String LINUX_INSTALL_ENV = "HOME";//$NON-NLS-1$\r
     public static final String ARM_ARCH = "arm"; //$NON-NLS-1$\r
index 7604fba..48401e1 100644 (file)
@@ -22,29 +22,29 @@ public class DeviceConstants {
        public static String DEVICE_INFO_NAME_TOTAL_MEMORY = "TotalMemory"; //$NON-NLS-1$
        public static String DEVICE_INFO_NAME_TOTAL_DRIVE = "TotalDrive"; //$NON-NLS-1$
 
-       public static String DEVICE_WIFI_STATUS_OFF = "OFF";
-       public static String DEVICE_WIFI_STATUS_ENABLED = "Unconnected";
-       public static String DEVICE_WIFI_STATUS_CONNECTED = "Connected";
-       public static String DEVICE_WIFI_STATUS_TRANSFER = "Transfer";
+       public static String DEVICE_WIFI_STATUS_OFF = "OFF"; //$NON-NLS-1$
+       public static String DEVICE_WIFI_STATUS_ENABLED = "Unconnected"; //$NON-NLS-1$
+       public static String DEVICE_WIFI_STATUS_CONNECTED = "Connected"; //$NON-NLS-1$
+       public static String DEVICE_WIFI_STATUS_TRANSFER = "Transfer"; //$NON-NLS-1$
 
        public static final int DEVICE_WIFI_VALUE_DISABLED = 0;
        public static final int DEVICE_WIFI_VALUE_ENABLED = 1;
        public static final int DEVICE_WIFI_VALUE_CONNECTED = 2;
        public static final int DEVICE_WIFI_VALUE_TRANSFER = 3;
 
-       public static String DEVICE_BT_STATUS_OFF = "OFF";
-       public static String DEVICE_BT_STATUS_ENABLED = "ON";
-       public static String DEVICE_BT_STATUS_CONNECTED = "Visible";
-       public static String DEVICE_BT_STATUS_TRANSFER = "Transfer";
+       public static String DEVICE_BT_STATUS_OFF = "OFF"; //$NON-NLS-1$
+       public static String DEVICE_BT_STATUS_ENABLED = "ON"; //$NON-NLS-1$
+       public static String DEVICE_BT_STATUS_CONNECTED = "Visible"; //$NON-NLS-1$
+       public static String DEVICE_BT_STATUS_TRANSFER = "Transfer"; //$NON-NLS-1$
 
        public static final int DEVICE_BT_VALUE_DISABLED = 0;
        public static final int DEVICE_BT_VALUE_ENABLED = 1;
        public static final int DEVICE_BT_VALUE_CONNECTED = 2;
        public static final int DEVICE_BT_VALUE_TRANSFER = 3;
 
-       public static String DEVICE_GPS_STATUS_OFF = "OFF";
-       public static String DEVICE_GPS_STATUS_ENABLED = "SEARCHING";
-       public static String DEVICE_GPS_STATUS_CONNECTED = "CONNECTED";
+       public static String DEVICE_GPS_STATUS_OFF = "OFF"; //$NON-NLS-1$
+       public static String DEVICE_GPS_STATUS_ENABLED = "SEARCHING"; //$NON-NLS-1$
+       public static String DEVICE_GPS_STATUS_CONNECTED = "CONNECTED"; //$NON-NLS-1$
 
        public static final int DEVICE_GPS_VALUE_DISABLED = 0;
        public static final int DEVICE_GPS_VALUE_ENABLED = 1;
@@ -53,14 +53,14 @@ public class DeviceConstants {
        public static final int DEVICE_DNET_VALUE_DISABLED = 0;
        public static final int DEVICE_DNET_VALUE_ENABLED = 1;
 
-       public static String DEVICE_CAMERA_STATUS_OFF = "OFF";
-       public static String DEVICE_CAMERA_STATUS_ON = "ON";
-       public static String DEVICE_CAMERA_STATUS_PREVIEW = "Preview";
-       public static String DEVICE_CAMERA_STATUS_PREVIEW_LOCK = "Preview Lock";
-       public static String DEVICE_CAMERA_STATUS_CAPTURING = "Capturing";
-       public static String DEVICE_CAMERA_STATUS_RECORDING = "Recording";
-       public static String DEVICE_CAMERA_STATUS_RECORDING_LOCK = "Recording Lock";
-       public static String DEVICE_CAMERA_STATUS_REVIEW = "Review";
+       public static String DEVICE_CAMERA_STATUS_OFF = "OFF"; //$NON-NLS-1$
+       public static String DEVICE_CAMERA_STATUS_ON = "ON"; //$NON-NLS-1$
+       public static String DEVICE_CAMERA_STATUS_PREVIEW = "Preview"; //$NON-NLS-1$
+       public static String DEVICE_CAMERA_STATUS_PREVIEW_LOCK = "Preview Lock"; //$NON-NLS-1$
+       public static String DEVICE_CAMERA_STATUS_CAPTURING = "Capturing"; //$NON-NLS-1$
+       public static String DEVICE_CAMERA_STATUS_RECORDING = "Recording"; //$NON-NLS-1$
+       public static String DEVICE_CAMERA_STATUS_RECORDING_LOCK = "Recording Lock"; //$NON-NLS-1$
+       public static String DEVICE_CAMERA_STATUS_REVIEW = "Review"; //$NON-NLS-1$
 
        public static final int DEVICE_CAMERA_VALUE_OFF = 0;
        public static final int DEVICE_CAMERA_VALUE_ON = 1;
@@ -71,20 +71,20 @@ public class DeviceConstants {
        public static final int DEVICE_CAMERA_VALUE_RECORDING_LOCK = 6;
        public static final int DEVICE_CAMERA_VALUE_REVIEW = 7;
 
-       public static String DEVICE_SOUND_STATUS_OFF = "OFF";
-       public static String DEVICE_SOUND_STATUS_ON = "ON";
+       public static String DEVICE_SOUND_STATUS_OFF = "OFF"; //$NON-NLS-1$
+       public static String DEVICE_SOUND_STATUS_ON = "ON"; //$NON-NLS-1$
 
        public static final int DEVICE_SOUND_VALUE_OFF = 0;
        public static final int DEVICE_SOUND_VALUE_ON = 1;
 
-       public static String DEVICE_AUDIO_STATUS_SPEAKER = "Speaker";
-       public static String DEVICE_AUDIO_STATUS_HEADPHONE = "Headphone";
+       public static String DEVICE_AUDIO_STATUS_SPEAKER = "Speaker"; //$NON-NLS-1$
+       public static String DEVICE_AUDIO_STATUS_HEADPHONE = "Headphone"; //$NON-NLS-1$
 
        public static final int DEVICE_AUDIO_VALUE_SPEAKER = 1;// 1
        public static final int DEVICE_AUDIO_VALUE_HEADPHONE = 2;
 
-       public static String DEVICE_VIBRATION_STATUS_OFF = "OFF";
-       public static String DEVICE_VIBRATION_STATUS_ON = "ON";
+       public static String DEVICE_VIBRATION_STATUS_OFF = "OFF"; //$NON-NLS-1$
+       public static String DEVICE_VIBRATION_STATUS_ON = "ON"; //$NON-NLS-1$
 
        public static final int DEVICE_VIBRATION_VALUE_OFF = 0;
        public static final int DEVICE_VIBRATION_VALUE_ON = 1;
index 4d1fec6..65a3d6f 100755 (executable)
@@ -24,11 +24,11 @@ public class SaveTraceHandler extends AbstractHandler {
                String sourcePath = project.getSavePath();\r
                String[] splitSourcePath = null;\r
                if (AnalyzerUtil.isWin()) {\r
-                       splitSourcePath = sourcePath.split("\\\\");\r
+                       splitSourcePath = sourcePath.split("\\\\"); //$NON-NLS-1$\r
                } else if (AnalyzerUtil.isMac()) {\r
-                       splitSourcePath = sourcePath.split("\\/");\r
+                       splitSourcePath = sourcePath.split("\\/"); //$NON-NLS-1$\r
                } else {\r
-                       splitSourcePath = sourcePath.split("\\/");\r
+                       splitSourcePath = sourcePath.split("\\/"); //$NON-NLS-1$\r
                }\r
 \r
                String saveName = new String(\r
index c724e34..7870ec0 100644 (file)
@@ -23,18 +23,18 @@ public class CallStackUnit {
         address = addr;
         this.originSymbol = symbol;
 
-        path = "";
-        functionName = "";
-        offset = "";
-        etc = "";
+        path = ""; //$NON-NLS-1$
+        functionName = ""; //$NON-NLS-1$
+        offset = ""; //$NON-NLS-1$
+        etc = ""; //$NON-NLS-1$
         makeCallstackData();
     }
 
     private void makeCallstackData() {
 
-        String[] splitPath = originSymbol.split("\\(");
+        String[] splitPath = originSymbol.split("\\("); //$NON-NLS-1$
         path = splitPath[0];
-        if (!path.startsWith("/") && !path.contains(FunctionUsageProfiler.APPLICATION)
+        if (!path.startsWith("/") && !path.contains(FunctionUsageProfiler.APPLICATION) //$NON-NLS-1$
                 && !path.contains(FunctionUsageProfiler.DEPENDENT_LIB)) {
             path = UNKNOWN;
         }
@@ -47,16 +47,16 @@ public class CallStackUnit {
             functionName =
                     SymbolManager.addr2func(binPath, Long.toString(address), isPieBuild, baseAddr);
             // FIXME: hard coding
-            if (functionName.equals("_end")) {
+            if (functionName.equals("_end")) { //$NON-NLS-1$
                 functionName = UNKNOWN;
             }
             String prevFunctionName = functionName;
             functionName = SymbolNameDemangler.nameDemangle(prevFunctionName);
-            if (functionName.startsWith("_Z")) {
-                System.out.println("at Callstack Unit : " + prevFunctionName + " after function name:" + functionName);
+            if (functionName.startsWith("_Z")) { //$NON-NLS-1$
+                System.out.println("at Callstack Unit : " + prevFunctionName + " after function name:" + functionName); //$NON-NLS-1$ //$NON-NLS-2$
             }
         } else {
-            String[] splitFunc = splitPath[1].split("\\+");
+            String[] splitFunc = splitPath[1].split("\\+"); //$NON-NLS-1$
             if (splitFunc.length != 0) {
                 functionName = splitFunc[0];
                 if (functionName.isEmpty()) {
@@ -68,7 +68,7 @@ public class CallStackUnit {
                             SymbolManager.addr2func(binPath, Long.toString(address), isPieBuild,
                                                     baseAddr);
                     // FIXME: hard coding
-                    if (functionName.equals("_end")) {
+                    if (functionName.equals("_end")) { //$NON-NLS-1$
                         functionName = UNKNOWN;
                     }
                 }
index 83bbb9e..e05772a 100644 (file)
@@ -84,6 +84,8 @@ public class AnalyzerLabels {
        public static String OPEN_TRACE_DLG_TEMP_FILE;
        public static String OPEN_TRACE_DLG_TEMP_FILE_NAME;
        public static String OPEN_TRACE_DLG_TRACE_FILE_NAME;
+       
+       public static String PATH_WARNING;
 
        public static String STOP_PROCESS_DLG_PLEASE_WAIT;
        public static String STOP_PROCESS_DLG_SUMMARIZING_DATA;
index f66207a..49fc55d 100644 (file)
@@ -77,6 +77,8 @@ OPEN_TRACE_DLG_TEMP_FILE=Temporary file
 OPEN_TRACE_DLG_TEMP_FILE_NAME=Trace file name
 OPEN_TRACE_DLG_TRACE_FILE_NAME=Trace file name
 
+PATH_WARNING=Please install the Tizen SDK
+
 STOP_PROCESS_DLG_PLEASE_WAIT=please wait...
 STOP_PROCESS_DLG_SUMMARIZING_DATA=Summarizing collected data
 STOP_PROCESS_DLG_DEVICE_DISCONNECTED=Device disconnected
diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerMessages.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerMessages.java
deleted file mode 100644 (file)
index 4465086..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.tizen.dynamicanalyzer.nl;\r
-\r
-import org.eclipse.osgi.util.NLS;\r
-\r
-public class AnalyzerMessages {\r
-\r
-       private static final String BUNDLE_NAME = "org.tizen.dynamicanalyzer.nl.AnalyzerMessages"; //$NON-NLS-1$\r
-\r
-       static {\r
-               NLS.initializeMessages(BUNDLE_NAME, AnalyzerMessages.class);\r
-       }\r
-\r
-       private AnalyzerMessages() {\r
-       }\r
-}\r
diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerMessages.properties b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerMessages.properties
deleted file mode 100644 (file)
index e69de29..0000000
index dd8e3c0..3bdd055 100755 (executable)
@@ -881,8 +881,8 @@ public class CoolbarArea {
        public void setAppComboText(String text) {
                AppDesktopInfo appInfo = DACommunicator.getAppDesktopInfoByName(text);
                if (null != appInfo) {
-                       System.out.println("combo set communicator appinfo :"
-                                       + appInfo.getName() + " exec : " + appInfo.getExecPath());
+                       System.out.println("combo set communicator appinfo :" //$NON-NLS-1$
+                                       + appInfo.getName() + " exec : " + appInfo.getExecPath()); //$NON-NLS-1$
                        DACommunicator.setSelectedApp(appInfo);
                        appCombo.setText(text);
                }
@@ -986,13 +986,13 @@ public class CoolbarArea {
                if (null != deviceName && null != appName && !deviceName.isEmpty()
                                && !appName.isEmpty()) {
                        if (!isCorrectDevice(deviceName)) {
-                               System.out.println("wrong device");
+                               System.out.println("wrong device"); //$NON-NLS-1$
                                return;
                        }
                        CoolbarArea.getInstance().setDeviceComboText(deviceName);
 
                        if (!isCorrectApplication(appName)) {
-                               System.out.println("wrong application");
+                               System.out.println("wrong application"); //$NON-NLS-1$
                                return;
                        }
                        CoolbarArea.getInstance().setAppComboText(appName);
index 99f5849..0c6d6d0 100644 (file)
@@ -308,7 +308,7 @@ public class SnapshotView extends DAView {
                }
                String[] cpuRates = input.get(
                                LogCenterConstants.DEVICE_SYSTEM_CPU_USAGE_INDEX + 1)
-                               .split(",");
+                               .split(","); //$NON-NLS-1$
                cpuUsage.clear();
                for (int i = 0; i < cpuRates.length - 1; i++) {
                        String cpu = cpuRates[i].trim();
@@ -402,7 +402,7 @@ public class SnapshotView extends DAView {
                List<String> input = inputs.get(lastIndex);
 
                String[] cpuRates = input.get(
-                               LogCenterConstants.DEVICE_SYSTEM_CPU_USAGE_INDEX).split(",");
+                               LogCenterConstants.DEVICE_SYSTEM_CPU_USAGE_INDEX).split(","); //$NON-NLS-1$
 //             String cpu = cpuRates[cpuRates.length - 1].trim();
                cpuUsage.clear();
                for (int i = 0; i < cpuRates.length - 1; i++) {
index b066cc5..13c14c3 100644 (file)
@@ -28,8 +28,8 @@ public class PageChartItem {
                        public void run() {
                                gridItem = new GridItem(chart.GetInnerChart(), SWT.NONE);
                                gridItem.setText(text);
-                               gridItem.setData("graphItems", graphItems);
-                               gridItem.setData("children", children);
+                               gridItem.setData("graphItems", graphItems); //$NON-NLS-1$
+                               gridItem.setData("children", children); //$NON-NLS-1$
                        }
                });
        }
index 69ac68d..4c63f22 100644 (file)
@@ -26,7 +26,7 @@ public class PageDataColumn {
                        if(Column.length > i)
                                SetColumnText(i,Column[i]);
                        else
-                               SetColumnText(i,"Column"+i);
+                               SetColumnText(i,"Column"+i); //$NON-NLS-1$
                        if(Column.length > i)
                                SetColumnAttribute(i,ColumnAttribute[i]);
                        else
index 8d4ced2..21833d1 100644 (file)
@@ -47,8 +47,8 @@ public class ThreadChartView extends DAView {
                                        return;
                                }
                                PageChartItem item = threadChart.GetItems().get(chart.getSelectionIndex());
-                               System.out.println("threadChart item" + threadChart.GetItems().get(chart.getSelectionIndex()));
-                               System.out.println("item select!!!!" + ((Grid)(e.widget)).getSelectionIndex());
+                               System.out.println("threadChart item" + threadChart.GetItems().get(chart.getSelectionIndex())); //$NON-NLS-1$
+                               System.out.println("item select!!!!" + ((Grid)(e.widget)).getSelectionIndex()); //$NON-NLS-1$
                                DASelectionData data = new DASelectionData(ID, 0, 0, item, chart);
                                AnalyzerManager.getCurrentPage().updatePage(data);
                        }
index 333b960..c6a95a6 100644 (file)
@@ -61,13 +61,13 @@ public class CallTraceView extends DAView {
         long end = selData.getEndTime();
 
         String query = "select count(time) from user_function where time < " //$NON-NLS-1$
-                + start + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$
+                + start + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$ //$NON-NLS-2$
         int selectionIndex = SqlManager.executeSelectOperation(query);
 
         String countQuery =
                 "select count(time) from user_function where time >" //$NON-NLS-1$
                         + start
-                        + " and time <= " + end + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$
+                        + " and time <= " + end + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
         int selectionCount = SqlManager.executeSelectOperation(countQuery);
 
         selectionIndex = ((selectionIndex < 0) && (selectionCount > 0)) ? 0 : selectionIndex;
index 2e3d480..50da830 100644 (file)
@@ -12,7 +12,6 @@ import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
 import org.tizen.dynamicanalyzer.timeline.TimelineComposite;\r
 import org.tizen.dynamicanalyzer.ui.views.RangeView;\r
 import org.tizen.dynamicanalyzer.ui.views.SnapshotView;\r
-import org.tizen.dynamicanalyzer.ui.views.base.ViewAction;\r
 import org.tizen.dynamicanalyzer.ui.widgets.DATabComposite;\r
 \r
 public class DATimelineTabComposite extends DATabComposite {\r
index 3f01df2..b89b680 100644 (file)
@@ -2,17 +2,10 @@ package org.tizen.dynamicanalyzer.ui.widgets.DAPageAPIListTable;
 
 import org.eclipse.nebula.widgets.grid.GridItem;
 import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
 import org.eclipse.swt.widgets.Composite;
-import org.tizen.dynamicanalyzer.AnalyzerManager;
-import org.tizen.dynamicanalyzer.constants.AnalyzerConstants;
-import org.tizen.dynamicanalyzer.model.DASelectionData;
-import org.tizen.dynamicanalyzer.ui.views.filePage.FileApiListView;
 import org.tizen.dynamicanalyzer.ui.views.pageInfo.PageDataItem;
 import org.tizen.dynamicanalyzer.ui.views.pageInfo.PageDataManager;
 import org.tizen.dynamicanalyzer.ui.widgets.DATable.DATableComposite;
-import org.tizen.dynamicanalyzer.ui.widgets.tables.FileApiListComparator;
 
 public class DAPageAPIListTable extends DATableComposite {
        public DAPageAPIListTable(Composite parent, int compStyle, int tableStyle) {
index af261ff..570bd44 100644 (file)
@@ -25,7 +25,6 @@ import org.tizen.dynamicanalyzer.FontResources;
 import org.tizen.dynamicanalyzer.nl.DAPageChartLabels;
 import org.tizen.dynamicanalyzer.ui.views.pageInfo.PageChartGraphItem;
 import org.tizen.dynamicanalyzer.ui.views.pageInfo.PageChartItem;
-import org.tizen.dynamicanalyzer.ui.widgets.DATable.DATableEmptyCellRenderer;
 import org.tizen.dynamicanalyzer.ui.widgets.DATable.DATableEmptyColumnHeaderRenderer;
 import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
 
@@ -137,19 +136,19 @@ public class DAPageChart extends Composite {
                if (items != null && items.size() != 0) {
                        for (int i = 0; i < items.size(); i++) {
                                for (int j = 0; j < depth; j++) {
-                                       System.out.print(" -");
+                                       System.out.print(" -"); //$NON-NLS-1$
                                }
                                item = items.get(i);
-                               System.out.print(item.GetText() + " : <");
+                               System.out.print(item.GetText() + " : <"); //$NON-NLS-1$
                                graphItems = item.GetGraphItem();
                                if (graphItems != null && graphItems.size() != 0) {
                                        for (int k = 0; k < graphItems.size(); k++) {
                                                graphItem = graphItems.get(k);
                                                System.out.print(graphItem.getY()
-                                                               + ", ");
+                                                               + ", "); //$NON-NLS-1$
                                        }
                                }
-                               System.out.println(">");
+                               System.out.println(">"); //$NON-NLS-1$
                                if (item.GetChildren() != null
                                                && item.GetChildren().size() != 0) {
                                        printItem(item.GetChildren(), depth + 1);
@@ -157,10 +156,10 @@ public class DAPageChart extends Composite {
                        }
                } else {
                        if (depth == 0) {
-                               System.out.println("no item!!!");
+                               System.out.println("no item!!!"); //$NON-NLS-1$
                        }
                }
-               System.out.println("\n");
+               System.out.println("\n"); //$NON-NLS-1$
        }
 
        public void printItems() {
index 0337823..31bf43d 100644 (file)
@@ -42,9 +42,9 @@ public class DAPageChartTimelineCellRenderer extends DefaultCellRenderer {
                                startTime, r);
 
                List<PageChartItem> children = (List<PageChartItem>) item
-                               .getData("children");
+                               .getData("children"); //$NON-NLS-1$
                List<PageChartGraphItem> graphItems = (List<PageChartGraphItem>) item
-                               .getData("graphItems");
+                               .getData("graphItems"); //$NON-NLS-1$
 
                PageChartGraphItem graphItem;
                int graphItemSize;
index dab42da..a654830 100644 (file)
@@ -27,7 +27,7 @@ public class StopProgressDialog {
        private Label processMessage = null;
        private Label processInfo = null;
        private ProgressBar progressbar = null;
-       private String message = "";
+       private String message = ""; //$NON-NLS-1$
        private String infomation = AnalyzerLabels.STOP_PROCESS_DLG_PLEASE_WAIT;
        private static final int DEFAULT_WIDTH = 300;
        private static final int DEFAULT_HEIGHT = 100;
index 80cee03..e56a7ce 100644 (file)
@@ -364,7 +364,7 @@ public class ProfilingTable extends DATableComposite {
                treeItem.setData(tableData);
 
                tableData.setObject(fuData.getName());
-               String exTime = "0", exRate = "0.00", inTime = "0", inRate = "0.00", callCount = "0", exeTime = "0", inExeTime = "0"; //$NON-NLS-1$
+               String exTime = "0", exRate = "0.00", inTime = "0", inRate = "0.00", callCount = "0", exeTime = "0", inExeTime = "0"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$
 
                try {
                        exTime = profiler.getCpuTime(fuData, true);
index fc6f979..26a2742 100644 (file)
@@ -200,7 +200,7 @@ public class CallStackManager {
                                        && (userFunctionBin == null || userFunctionBin.isEmpty())) {
                                if (AnalyzerManager.isOsp()) {
                                        userFunctionBin = new String(callstackUnit.getPath()
-                                                       + ".exe");
+                                                       + ".exe"); //$NON-NLS-1$
                                } else {
                                        userFunctionBin = new String(callstackUnit.getPath());
                                }
index 1f2c786..ec77fde 100644 (file)
@@ -10,7 +10,6 @@ import org.tizen.dynamicanalyzer.constants.LogCenterConstants;
 import org.tizen.dynamicanalyzer.model.CallStackUnit;
 import org.tizen.dynamicanalyzer.model.FunctionUsageProfilingData;
 import org.tizen.dynamicanalyzer.model.ProfilingChildData;
-import org.tizen.dynamicanalyzer.nl.InformationViewLabels;
 import org.tizen.dynamicanalyzer.nl.SummaryLabels;
 
 public class FunctionUsageProfiler {
@@ -51,7 +50,7 @@ public class FunctionUsageProfiler {
        public static final long SAMPLE_TIME = 10;
        public static final String APPLICATION = SummaryLabels.FUNCTION_USAGE_PROFILER_APPLICATION;
        public static final String DEPENDENT_LIB = SummaryLabels.FUNCTION_USAGE_PROFILER_DEPENDENT_LIB;
-       public static final String UNKNOWN = InformationViewLabels.CALLSTACK_TABLE_UNKNOWN;
+       public static final String UNKNOWN = "";//$NON-NLS-1$
 
        private int totalSampleCount = 0;
        private CallstackTree current = null;
@@ -153,7 +152,7 @@ public class FunctionUsageProfiler {
                        if (type == LogCenterConstants.USER_FUNCTION_EVENT_TYPE_EXIT) {
                                if (null == current) {
                                        // bug
-                                       System.out.println("bug found!!");
+                                       System.out.println("bug found!!"); //$NON-NLS-1$
                                } else {
                                        child.addInclusiveExeTime(current.getInclusiveExeTime());
                                        current = current.getParent();
@@ -329,7 +328,7 @@ public class FunctionUsageProfiler {
                String symbol = null;
                if (AnalyzerManager.isOsp()) {
                        symbol = AnalyzerManager.getFunctionUserProfiler().getAppBinName()
-                                       + AnalyzerConstants.DOT + "exe"
+                                       + AnalyzerConstants.DOT + "exe" //$NON-NLS-1$
                                        + AnalyzerConstants.CALLSTACK_API_TOKEN_STRING + funcName;
                } else {
                        symbol = AnalyzerManager.getFunctionUserProfiler().getAppBinName()