From: ho.namkoong Date: Thu, 21 Feb 2013 01:56:51 +0000 (+0900) Subject: [Title] Make isRootPrj and isRefPrj to the enum TizenProjectType X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=573d20990655b273a6e92882ed1087291588b028;p=sdk%2Fide%2Fcommon-eplugin.git [Title] Make isRootPrj and isRefPrj to the enum TizenProjectType [Type] [Module] [Priority] [Jira#] [Redmine#] 8406 [Problem] [Cause] [Solution] [TestCase] Change-Id: If3b674e7c835fe63b3f373ae4bf1221ca817eaaa --- 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; + } }