From 6c8aba865f7bfe1a01fc191551915747b6e2bba9 Mon Sep 17 00:00:00 2001 From: Gun Kim Date: Tue, 13 Nov 2012 11:47:24 +0900 Subject: [PATCH] [Title] fixed bug : check command whether the application is running & prerence page's message. [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: Id3c2b674588a48832e02a2c72bfb539dfdbab74d --- org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java | 5 ++++- .../src/org/tizen/common/rds/ui/preference/RdsPreferencePage.java | 2 +- .../src/org/tizen/common/ui/page/preference/Messages.java | 1 + .../src/org/tizen/common/ui/page/preference/Messages.properties | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java b/org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java index 8ebddae..7a541a3 100644 --- a/org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java +++ b/org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java @@ -49,6 +49,9 @@ public class TizenPlatformConstants { // Definitions for packaging public static final String PACKAGENAME_PREFIX = "org.tizen"; public static final String DEBIAN_INSTALL_PATH = "opt/*"; + public static final String PKGTYPE_TPK = "TPK"; + public static final String PKGTYPE_RPM = "RPM"; + public static final String PKGTYPE_DEB = "DEB"; // Definitions for debugging public static final String PUBICL_PLATFORM_CORE_PATH = "/opt/bs/core"; @@ -65,7 +68,7 @@ public class TizenPlatformConstants { public static final String PKG_TOOL_REMOVE_COMMAND = PKG_TOOL + " -q -u -t %s -n %s"; public static final String PKG_TOOL_INSTALL_COMMAND = PKG_TOOL + " -q -i -t %s -p %s"; public static final String PKG_TOOL_RUNNING_CHECK_COMMAND = PKG_TOOL + " -C -t %s -n %s"; - public static final String PKG_TOOL_TERMINATE_COMMAND = PKG_TOOL + " -k -t %s -n%s"; + public static final String PKG_TOOL_TERMINATE_COMMAND = PKG_TOOL + " -k -t %s -n %s"; public static final String PKG_TOOL_INSTALL_PATH_COMMAND = PKG_TOOL + " -a"; // Definitions for launching 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 e930cbf..231faff 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 @@ -89,7 +89,7 @@ public class RdsPreferencePage extends PropertyAndPreferencePage implements IWor rdsComposite.setLayout(gridLayout); btnRdsCheck = new Button(rdsComposite, SWT.CHECK); - btnRdsCheck.setText("Enable Rapid Development Support"); + btnRdsCheck.setText(Messages.RDS_MODE_PREFERENCE); btnRdsCheck.setSelection( getRdsOption() ); createNoteComposite(JFaceResources.getDialogFont(), rdsComposite, "Note:", Messages.RDS_NOTE); } diff --git a/org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.java b/org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.java index 99acede..ec48dd8 100644 --- a/org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.java +++ b/org.tizen.common/src/org/tizen/common/ui/page/preference/Messages.java @@ -41,6 +41,7 @@ public class Messages { public static String PROPERTIES_PAGE_BODY; public static String RDS_NOTE; public static String RDS_OPTION_SAVE_FAIL; + public static String RDS_MODE_PREFERENCE; static { // initialize resource bundle 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 1af8bda..103cb40 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 @@ -5,4 +5,5 @@ 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 project and multi-app project. -RDS_OPTION_SAVE_FAIL=Failed to save options. \ No newline at end of file +RDS_OPTION_SAVE_FAIL=Failed to save options. +RDS_MODE_PREFERENCE=Enable rapid development mode \ No newline at end of file -- 2.7.4