From ef9199588ba9050358457570534f6b1de6632436 Mon Sep 17 00:00:00 2001 From: "kh5325.kim" Date: Tue, 14 May 2013 15:01:36 +0900 Subject: [PATCH] Added helpers for project type Change-Id: I273b53a11ff534880f130c81085d2cea877d8ebb --- .../src/org/tizen/common/TizenProjectType.java | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/org.tizen.common/src/org/tizen/common/TizenProjectType.java b/org.tizen.common/src/org/tizen/common/TizenProjectType.java index 6589fac..ced4558 100644 --- a/org.tizen.common/src/org/tizen/common/TizenProjectType.java +++ b/org.tizen.common/src/org/tizen/common/TizenProjectType.java @@ -96,6 +96,64 @@ public enum TizenProjectType { } /** + * Returns {@code true} if the project type is native application. + * @return {@code true} if this project type is native application, otherwise {@code false} + */ + public boolean isNativeApplicationProject() { + switch (this) { + case TIZEN_C_UI_APPLICATION : + case TIZEN_CPP_UI_APPLICATION : + case TIZEN_C_SERVICE_APPLICATION : + case TIZEN_CPP_SERVICE_APPLICATION : + return true; + default : + return false; + } + } + + /** + * Returns {@code true} if the project type is native shared library. + * @return {@code true} if this project type is native shared library, otherwise {@code false} + */ + public boolean isNativeSharedLibraryProject() { + switch (this) { + case TIZEN_C_SHAREDLIBRARY : + case TIZEN_CPP_SHAREDLIBRARY : + return true; + default : + return false; + } + } + + /** + * Returns {@code true} if the project type is native static library. + * @return {@code true} if this project type is native static library, otherwise {@code false} + */ + public boolean isNativeStaticLibraryProject() { + switch (this) { + case TIZEN_C_STATICLIBRARY : + case TIZEN_CPP_STATICLIBRARY : + return true; + default : + return false; + } + } + + /** + * Returns {@code true} if the project type is native debuggable. + * @return {@code true} if this project type is native debuggable, otherwise {@code false} + */ + public boolean isNativeDebuggableProject() { + 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 web. * @return {@code true} if this project type is web, otherwise {@code false} */ -- 2.7.4