From: kh5325.kim Date: Sat, 9 Nov 2013 06:46:40 +0000 (+0900) Subject: LAUNCH: Aligned messages with web and native X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F11988%2F1;p=sdk%2Fide%2Fcommon-eplugin.git LAUNCH: Aligned messages with web and native Aligns messages between web and native launch. Removes user-unfriendly messages. Change-Id: I0c2d5316d12020f93278bf20697065e1abecfbe0 Signed-off-by: kh5325.kim --- diff --git a/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java b/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java index 6c05ca2..a89a5ea 100644 --- a/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java +++ b/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java @@ -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 + "]"; + } } diff --git a/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties b/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties index ebbe6f5..d21aaca 100644 --- a/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties +++ b/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties @@ -21,3 +21,10 @@ UNINSTALL_PACKAGE = Uninstalling the package... # Transfer TRANSFER_PACKAGE = Transferring the package... + +# Run +RUN_PACKAGE = Running the application... + +# Messages +LAUNCH_START = Launching the Tizen application... +LAUNCH_END = Tizen application is successfully launched. diff --git a/org.tizen.common/src/org/tizen/common/rds/RdsMessages.java b/org.tizen.common/src/org/tizen/common/rds/RdsMessages.java index de49c50..e96c3e1 100644 --- a/org.tizen.common/src/org/tizen/common/rds/RdsMessages.java +++ b/org.tizen.common/src/org/tizen/common/rds/RdsMessages.java @@ -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; - } diff --git a/org.tizen.common/src/org/tizen/common/rds/RdsMessages.properties b/org.tizen.common/src/org/tizen/common/rds/RdsMessages.properties index d4ac3f5..643a19c 100644 --- a/org.tizen.common/src/org/tizen/common/rds/RdsMessages.properties +++ b/org.tizen.common/src/org/tizen/common/rds/RdsMessages.properties @@ -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]