Added getPlatformVersionName() for returning 'tizen2.2'
authorkh5325.kim <kh5325.kim@samsung.com>
Thu, 13 Jun 2013 02:05:36 +0000 (11:05 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Thu, 13 Jun 2013 02:05:36 +0000 (11:05 +0900)
org.tizen.common/src/org/tizen/common/core/application/InstallPathConfig.java

index 3044cae..ff40eeb 100755 (executable)
@@ -113,14 +113,22 @@ final public class InstallPathConfig {
         return path;
     }
 
-    // return get platform version number. this value may be float type number string, but not guaranteed.
+    /**
+     * Returns platform version number.
+     */
     public static String getPlatformVersionNum() {
         return DIR_PLATFORMS_VER_NUM;
     }
 
+    /**
+     * Returns platform version name like "tizen2.2".
+     */
+    public static String getPlatformVersionName() {
+        return DIR_PLATFORMS_VER;
+    }
+
     /*
-     * return get platform version number.<br>
-     * this value float type number, if can't convert float type then return 0. or negative then return 0.
+     * Returns platform version number like 2.2 (float type).
      */
     public static float getPlatformVersionNumToFloat() {
         float version = 0;