Added helpers for project type
authorkh5325.kim <kh5325.kim@samsung.com>
Tue, 14 May 2013 06:01:36 +0000 (15:01 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Tue, 14 May 2013 06:01:36 +0000 (15:01 +0900)
Change-Id: I273b53a11ff534880f130c81085d2cea877d8ebb

org.tizen.common/src/org/tizen/common/TizenProjectType.java

index 6589fac..ced4558 100644 (file)
@@ -96,6 +96,64 @@ public enum TizenProjectType {
     }
 
     /**
+     * Returns {@code true} if the project type is native application.
+     * @return {@code true} if this project type is native application, otherwise {@code false}
+     */
+    public boolean isNativeApplicationProject() {
+        switch (this) {
+            case TIZEN_C_UI_APPLICATION :
+            case TIZEN_CPP_UI_APPLICATION :
+            case TIZEN_C_SERVICE_APPLICATION :
+            case TIZEN_CPP_SERVICE_APPLICATION :
+                return true;
+            default :
+                return false;
+        }
+    }
+
+    /**
+     * Returns {@code true} if the project type is native shared library.
+     * @return {@code true} if this project type is native shared library, otherwise {@code false}
+     */
+    public boolean isNativeSharedLibraryProject() {
+        switch (this) {
+            case TIZEN_C_SHAREDLIBRARY :
+            case TIZEN_CPP_SHAREDLIBRARY :
+                return true;
+            default :
+                return false;
+        }
+    }
+
+    /**
+     * Returns {@code true} if the project type is native static library.
+     * @return {@code true} if this project type is native static library, otherwise {@code false}
+     */
+    public boolean isNativeStaticLibraryProject() {
+        switch (this) {
+            case TIZEN_C_STATICLIBRARY :
+            case TIZEN_CPP_STATICLIBRARY :
+                return true;
+            default :
+                return false;
+        }
+    }
+
+    /**
+     * Returns {@code true} if the project type is native debuggable.
+     * @return {@code true} if this project type is native debuggable, otherwise {@code false}
+     */
+    public boolean isNativeDebuggableProject() {
+        switch (this) {
+            case TIZEN_CPP_UI_APPLICATION :
+            case TIZEN_CPP_SERVICE_APPLICATION :
+                return true;
+            default :
+                return false;
+        }
+    }
+
+    /**
      * Returns {@code true} if the project type is web.
      * @return {@code true} if this project type is web, otherwise {@code false}
      */