[Title] processing multi-app when RDS mode is enabled.
authorGun Kim <gune.kim@samsung.com>
Wed, 7 Nov 2012 08:07:39 +0000 (17:07 +0900)
committerGun Kim <gune.kim@samsung.com>
Thu, 8 Nov 2012 05:22:44 +0000 (14:22 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I36a5b0d4a3fe7127f5a9921b34ce7ab38eb5b250

org.tizen.common/src/org/tizen/common/rds/ui/preference/RdsPreferencePage.java
org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.properties

index 752168d..e930cbf 100644 (file)
@@ -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) {
index cec78c5..1af8bda 100644 (file)
@@ -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