performApply();
return super.performOk();
}
-
+
public static boolean isRdsMode( IProject project ) {
String projectSpecificOption = "";
String rdsOption = OPTION_DISABLE;
// TODO: ad-hoc code. If the project referencing other projects, RDS is disabled.
try {
- IProject[] refPrjs = project.getReferencedProjects();
+ IProject[] refPrjs = project.getReferencedProjects();
if (refPrjs.length != 0 ) {
return false;
}
return prefStore.getBoolean(RDS_OPTION_ID);
}
}
+
+ // TODO : refactoring this method, this method is temporary, hybrid-app RDS support in webapp
+ public static boolean isWebRdsMode( IProject project ) {
+ String projectSpecificOption = "";
+ String rdsOption = OPTION_DISABLE;
+
+ try {
+ projectSpecificOption = project.getPersistentProperty(RDS_PROPERTIES_SPECIFIC_OPTION_NAME);
+ } catch (CoreException e) {
+ Logger.error("Failed to read project specific option.", e);
+ }
+ if ( OPTION_ENABLE.equals(projectSpecificOption)) {
+ try {
+ rdsOption = project.getPersistentProperty(RDS_PROPERTIES_RDS_OPTION_NAME);
+ } catch (CoreException e) {
+ Logger.error("Failed to read RDS option.", e);
+ }
+
+ return OPTION_ENABLE.equals(rdsOption);
+ }
+ else {
+ IPreferenceStore prefStore = CommonPlugin.getDefault().getPreferenceStore();
+ return prefStore.getBoolean(RDS_OPTION_ID);
+ }
+ }
}
+* 1.0.109
+- modified RDS mode check logic RdsPreferencePage#isWebRdsMode() added
+== gyeongseok.seo <gyeongseok.seo@samsung.com> 2012-12-27
* 1.0.108
- modifed OnDemandInstall#copyPackage() using sdblib
== mariah <kh5325.kim@samsung.com> 2012-12-18
-Version:1.0.108
+Version:1.0.109
Source:common-eplugin
Maintainer:kangho kim <kh5325.kim@samsung.com>, yoonki park <yoonki.park@samsung.com>, hyunsik non <hyunsik.noh@samsung.com>, taeyoung son <taeyoung2.son@samsung.com>, gune Kim <gune.kim@samsung.com>, ho namkoong <ho.namkoong@samsung.com>, hyeongseok heo <hyeong-seok.heo@samsung.com>, gyeongseok seo <gyeongseok.seo@samsung.com>, jihoon song <jihoon80.song@samsung.com>, changhyun lee <changhyun1.lee@samsung.com>, bonyong lee <bonyong.lee@samsung.com>