diff options
author | Taeyoung Son <taeyoung2.son@samsung.com> | 2014-06-20 00:36:29 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2014-06-20 00:36:29 -0700 |
commit | 3335cd8086f9bafeacee4558eb89f7ddaef94fd9 (patch) | |
tree | c84602cb1d1d77a738d2296b4de04d477cf4d140 | |
parent | adb5c56832dd1cd1e356f1f90dc2abc99a2184cd (diff) | |
parent | e1739a8e23d679183f6fe476331fcaf9d2a6ad91 (diff) | |
download | common-eplugin-3335cd8086f9bafeacee4558eb89f7ddaef94fd9.tar.gz common-eplugin-3335cd8086f9bafeacee4558eb89f7ddaef94fd9.tar.bz2 common-eplugin-3335cd8086f9bafeacee4558eb89f7ddaef94fd9.zip |
Merge "MISC: added method that checks whether a project type is OSP or not." into tizen
-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) { |