From 087fde38c8c5c098128919b36ea9fd3c8902f364 Mon Sep 17 00:00:00 2001 From: Gun Kim Date: Wed, 7 Nov 2012 17:07:39 +0900 Subject: [PATCH] [Title] processing multi-app when RDS mode is enabled. [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I36a5b0d4a3fe7127f5a9921b34ce7ab38eb5b250 --- .../tizen/common/rds/ui/preference/RdsPreferencePage.java | 12 ++++++++++++ .../org/tizen/common/ui/page/preference/Messages.properties | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/org.tizen.common/src/org/tizen/common/rds/ui/preference/RdsPreferencePage.java b/org.tizen.common/src/org/tizen/common/rds/ui/preference/RdsPreferencePage.java index 752168d..e930cbf 100644 --- a/org.tizen.common/src/org/tizen/common/rds/ui/preference/RdsPreferencePage.java +++ b/org.tizen.common/src/org/tizen/common/rds/ui/preference/RdsPreferencePage.java @@ -192,6 +192,18 @@ public class RdsPreferencePage extends PropertyAndPreferencePage implements IWor 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(); + if (refPrjs.length != 0 ) { + return false; + } + } catch (CoreException e) { + Logger.error("Failed to read the referenced project list.", e); + } + + try { projectSpecificOption = project.getPersistentProperty(RDS_PROPERTIES_SPECIFIC_OPTION_NAME); } catch (CoreException e) { diff --git a/org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.properties b/org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.properties index cec78c5..1af8bda 100644 --- a/org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.properties +++ b/org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.properties @@ -4,5 +4,5 @@ LABEL_LOCATION=Location: GROUP2=SDK update LABEL_UPDATE=Automatically find new updates at start-up and notify me PROPERTIES_PAGE_BODY=Expand the tree to edit preferences for a specific feature. -RDS_NOTE=Currently, this option is not supported for web application. +RDS_NOTE=Currently, this option is not supported for web project and multi-app project. RDS_OPTION_SAVE_FAIL=Failed to save options. \ No newline at end of file -- 2.7.4