From 2f18fdf50a4df97a41501cf56b09315425d91db8 Mon Sep 17 00:00:00 2001 From: Gun Kim Date: Thu, 11 Apr 2013 16:46:53 +0900 Subject: [PATCH] [Title] modified error messages of pkgcmd. [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: Ib57b2d551034eebbc3819b19bdc800060eb27f63 --- .../rds/ui/preference/RdsPreferencePage.java | 24 +++++++++++++--------- .../command/message/PkgcmdErrorMessages.properties | 2 +- 2 files changed, 15 insertions(+), 11 deletions(-) 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 34d1272..2693042 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 @@ -194,20 +194,24 @@ public class RdsPreferencePage extends PropertyAndPreferencePage implements IWor 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; + if ( project != null ) { + try { + IProject[] refPrjs = project.getReferencedProjects(); + if (refPrjs.length != 0 ) { + return false; + } + } catch (CoreException e) { + Logger.error("Failed to read the referenced project list.", e); } - } 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) { - Logger.error("Failed to read project specific option.", e); + if ( project != null ) { + 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 { diff --git a/org.tizen.common/src/org/tizen/common/sdb/command/message/PkgcmdErrorMessages.properties b/org.tizen.common/src/org/tizen/common/sdb/command/message/PkgcmdErrorMessages.properties index 264d1cb..9542c42 100644 --- a/org.tizen.common/src/org/tizen/common/sdb/command/message/PkgcmdErrorMessages.properties +++ b/org.tizen.common/src/org/tizen/common/sdb/command/message/PkgcmdErrorMessages.properties @@ -2,7 +2,7 @@ MESSAGE_FORMAT=\nError code: %s\nError message: %s\nCommand: %s\nManagement: %s\ ERROR_PACKAGE_NOT_FOUND=Check package components in Project Explorer. ERROR_PACKAGE_INVALID=Check package components in Project Explorer. -ERROR_PACKAGE_LOWER_VARSION=RDS does not support installation for the lower version. If you want to install the lower version, please turn off RDS. +ERROR_PACKAGE_LOWER_VARSION=RDS and Update Mode do not support installation for the lower version. If you want to install the lower version, please turn off RDS and Update Mode. ERROR_PACKAGE_EXECUTABLE_NOT_FOUND=Check "Right Click" in Project Explorer > Build Configurations. ERROR_MANIFEST_NOT_FOUND=Check manifest.xml in Project Explorer. ERROR_MANIFEST_INVALID=Check manifest.xml in manifest editor. -- 2.7.4