diff options
author | Gun Kim <gune.kim@samsung.com> | 2014-06-15 15:53:23 +0900 |
---|---|---|
committer | Gun Kim <gune.kim@samsung.com> | 2014-06-15 16:03:43 +0900 |
commit | e1739a8e23d679183f6fe476331fcaf9d2a6ad91 (patch) | |
tree | e110352aba5a167cd80117bd23d163289983013a | |
parent | 29d25a7bb1d90e14c83e15763ff7c0e9ff16a29d (diff) | |
download | common-eplugin-e1739a8e23d679183f6fe476331fcaf9d2a6ad91.tar.gz common-eplugin-e1739a8e23d679183f6fe476331fcaf9d2a6ad91.tar.bz2 common-eplugin-e1739a8e23d679183f6fe476331fcaf9d2a6ad91.zip |
MISC: added method that checks whether a project type is OSP or not.
Added method that checks whether a project type is OSP or not.
Change-Id: Ia48315157178d39d1cce20d6164fb7c06b37f515
Signed-off-by: Gun Kim <gune.kim@samsung.com>
-rw-r--r-- | org.tizen.common/src/org/tizen/common/TizenProjectType.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/org.tizen.common/src/org/tizen/common/TizenProjectType.java b/org.tizen.common/src/org/tizen/common/TizenProjectType.java index f394c75d5..e41f9281f 100644 --- a/org.tizen.common/src/org/tizen/common/TizenProjectType.java +++ b/org.tizen.common/src/org/tizen/common/TizenProjectType.java @@ -191,6 +191,34 @@ public enum TizenProjectType implements IApplicationType { return false; } } + + /** + * Returns {@code true} if the project type is OSP. + * @return {@code true} if this project type is OSP, otherwise {@code false} + */ + public boolean isOSPProject() { + 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 core. + * @return {@code true} if this project type is core, otherwise {@code false} + */ + public boolean isCoreProject() { + switch (this) { + case TIZEN_C_UI_APPLICATION : + case TIZEN_C_SERVICE_APPLICATION : + return true; + default : + return false; + } + } public boolean isNativeServiceApplicationProject() { switch (this) { |