[Title] Make isRootPrj and isRefPrj to the enum TizenProjectType
authorho.namkoong <ho.namkoong@samsung.com>
Thu, 21 Feb 2013 01:56:51 +0000 (10:56 +0900)
committerho.namkoong <ho.namkoong@samsung.com>
Fri, 22 Feb 2013 03:13:56 +0000 (12:13 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#] 8406
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: If3b674e7c835fe63b3f373ae4bf1221ca817eaaa

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

index 4998fb1..b9c1b5a 100644 (file)
@@ -30,23 +30,43 @@ package org.tizen.common;
  * Represents that TIZEN supports the given project types.
  */
 public enum TizenProjectType {
-    TIZEN_C_UI_APPLICATION(true),
-    TIZEN_C_SERVICE_APPLICATION(false),
-    TIZEN_C_SHAREDLIBRARY(false),
-    TIZEN_C_STATICLIBRARY(false),
-    TIZEN_CPP_UI_APPLICATION(true),
-    TIZEN_CPP_SERVICE_APPLICATION(false),
-    TIZEN_CPP_SHAREDLIBRARY(false),
-    TIZEN_CPP_STATICLIBRARY(false),
-    TIZEN_PLATFORM_PROJECT(false);
+    TIZEN_C_UI_APPLICATION(true, false, false),
+    TIZEN_C_SERVICE_APPLICATION(false, false, false),
+    TIZEN_C_SHAREDLIBRARY(false, false, false),
+    TIZEN_C_STATICLIBRARY(false, false, false),
+    TIZEN_CPP_UI_APPLICATION(true, true, true),
+    TIZEN_CPP_SERVICE_APPLICATION(false, false, true),
+    TIZEN_CPP_SHAREDLIBRARY(false, false, false),
+    TIZEN_CPP_STATICLIBRARY(false, false, false),
+    TIZEN_PLATFORM_PROJECT(false, false, false);
     
     private boolean isNeededIconValidation;
+    private boolean isRootPrj;
+    private boolean isRefPrj;
     
-    private TizenProjectType(boolean isNeededIconValidation) {
+    private TizenProjectType(boolean isNeededIconValidation, boolean isRootPrj, boolean isRefPrj) {
         this.isNeededIconValidation = isNeededIconValidation;
+        this.isRootPrj = isRootPrj;
+        this.isRefPrj = isRefPrj;
     }
     
     public boolean isNeededIconValidation() {
         return isNeededIconValidation;
     }
+    
+    /**
+     * Returns whether this project can be root project of multi app project.
+     * @return {@code true} if this project can be root project. {@code false} if not.
+     */
+    public boolean isRootProject() {
+        return isRootPrj;
+    }
+    
+    /**
+     * Returns whether this project can be referenced project of multi app project.
+     * @return {@code true} if this project can be referenced project. {@code false} if not.
+     */
+    public boolean isReferencedProject() {
+        return isRefPrj;
+    }
 }