LAUNCH: Aligned messages with web and native 88/11988/1
authorkh5325.kim <kh5325.kim@samsung.com>
Sat, 9 Nov 2013 06:46:40 +0000 (15:46 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Sat, 9 Nov 2013 06:46:40 +0000 (15:46 +0900)
Aligns messages between web and native launch.
Removes user-unfriendly messages.

Change-Id: I0c2d5316d12020f93278bf20697065e1abecfbe0
Signed-off-by: kh5325.kim <kh5325.kim@samsung.com>
org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java
org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties
org.tizen.common/src/org/tizen/common/rds/RdsMessages.java
org.tizen.common/src/org/tizen/common/rds/RdsMessages.properties

index 6c05ca2..a89a5ea 100644 (file)
@@ -31,6 +31,7 @@ public class LaunchMessages extends NLS {
     static {
         NLS.initializeMessages(LaunchMessages.class.getName(), LaunchMessages.class);
     }
+
     public static String FAIL;
     public static String SUCCESS;
 
@@ -49,6 +50,10 @@ public class LaunchMessages extends NLS {
     public static String INSTALL_PACKAGE;
     public static String UNINSTALL_PACKAGE;
     public static String TRANSFER_PACKAGE;
+    public static String RUN_PACKAGE;
+
+    public static String LAUNCH_START;
+    public static String LAUNCH_END;
 
     public static String getFailMessage(String s) {
         return String.format("%s > %s", s, FAIL);
@@ -57,4 +62,17 @@ public class LaunchMessages extends NLS {
     public static String getSuccessMessage(String s) {
         return String.format("%s > %s", s, SUCCESS);
     }
+
+    public static String getTimeInterval(Long start, Long end) {
+        Double interval = ((end - start) / (double) 1000);
+        return Double.toString(interval);
+    }
+
+    public static String getElapsedTimeMessage(Long start, Long end) {
+        return "(" + getTimeInterval(start, end) + " sec)";
+    }
+
+    public static String getStepMessage(String step) {
+        return "[" + step + "]";
+    }
 }
index ebbe6f5..d21aaca 100644 (file)
@@ -21,3 +21,10 @@ UNINSTALL_PACKAGE = Uninstalling the package...
 \r
 # Transfer\r
 TRANSFER_PACKAGE = Transferring the package...\r
+\r
+# Run\r
+RUN_PACKAGE = Running the application...\r
+\r
+# Messages\r
+LAUNCH_START = Launching the Tizen application...\r
+LAUNCH_END = Tizen application is successfully launched.\r
index de49c50..e96c3e1 100644 (file)
@@ -32,7 +32,7 @@ public class RdsMessages {
     static {
         NLS.initializeMessages(RdsMessages.class.getName(), RdsMessages.class);
     }
-    
+
     public static String RDS_PUSH_LOG;
     public static String RDS_PUSH_ERROR;
     public static String RDS_DELETE_ERROR;
@@ -41,9 +41,8 @@ public class RdsMessages {
     public static String CANNOT_FIND_RDS_INFO;
     public static String CANNOT_FIND_DELTA;
     public static String CANNOT_PARTIALLY_INSTALL;
-    public static String RDS_MODE_DISABLE;
-    public static String RDS_MODE_ENABLE;
+    public static String RDS_MODE_DISABLED;
+    public static String RDS_MODE_ENABLED;
     public static String RDS_MODE_CONSOLE_TITLE;
     public static String RDS_MODE_PREFIX;
-
 }
index d4ac3f5..643a19c 100644 (file)
@@ -6,7 +6,7 @@ RDS_RES_INFO_PUSH_ERROR=Failed to upload resource information for RDS.
 CANNOT_FIND_RDS_INFO=Cannot find information of the latest launch.
 CANNOT_FIND_DELTA=Cannot find information of delta.
 CANNOT_PARTIALLY_INSTALL=Cannot partially upload or reinstall.
-RDS_MODE_DISABLE=RDS mode is disabled.
-RDS_MODE_ENABLE=RDS mode is enabled.
+RDS_MODE_DISABLED=RDS mode is disabled.
+RDS_MODE_ENABLED=RDS mode is enabled.
 RDS_MODE_CONSOLE_TITLE=, RDS Mode
-RDS_MODE_PREFIX=[RDS]
\ No newline at end of file
+RDS_MODE_PREFIX=[RDS]