From 573d20990655b273a6e92882ed1087291588b028 Mon Sep 17 00:00:00 2001 From: "ho.namkoong" Date: Thu, 21 Feb 2013 10:56:51 +0900 Subject: [PATCH] [Title] Make isRootPrj and isRefPrj to the enum TizenProjectType [Type] [Module] [Priority] [Jira#] [Redmine#] 8406 [Problem] [Cause] [Solution] [TestCase] Change-Id: If3b674e7c835fe63b3f373ae4bf1221ca817eaaa --- .../src/org/tizen/common/TizenProjectType.java | 40 ++++++++++++++++------ 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/org.tizen.common/src/org/tizen/common/TizenProjectType.java b/org.tizen.common/src/org/tizen/common/TizenProjectType.java index 4998fb1..b9c1b5a 100644 --- a/org.tizen.common/src/org/tizen/common/TizenProjectType.java +++ b/org.tizen.common/src/org/tizen/common/TizenProjectType.java @@ -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; + } } -- 2.7.4