[Title] applied new method that get app's installation path.
authorGun Kim <gune.kim@samsung.com>
Thu, 21 Mar 2013 04:40:40 +0000 (13:40 +0900)
committerGun Kim <gune.kim@samsung.com>
Fri, 22 Mar 2013 08:01:23 +0000 (17:01 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: Ifc650a877e2053bc7c1e17f5f41d1d5d562b1e14

org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/TizenDebianMainAttachTab.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/TizenDebianMainTab.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/shortcut/TizenPathInputDialog.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/wizard/pages/PlatformLaunchSettingBinPage.java

index f5b5e2a..a603c66 100644 (file)
@@ -123,7 +123,6 @@ public class TizenDebianMainAttachTab extends CMainTab {
        private boolean fSpecifyCoreFile;
        private IDevice device;
        private ArrayList<LocalPackage> packages = new ArrayList<LocalPackage>();
-       private static final String DEFAULT_APP_PATH = "/opt/apps/";
        private String filePath = "";
        private String selectedFileList = "";
        
@@ -364,7 +363,7 @@ public class TizenDebianMainAttachTab extends CMainTab {
                                public void run() {
                                        IDevice device = ConnectionPlugin.getDefault().getCurrentDevice();
                                        TizenRemoteFileDialog dlg = new TizenRemoteFileDialog(shell, 
-                                                       resources.getString("Remote.Dialog.Title"), device, false, DEFAULT_APP_PATH);
+                                                       resources.getString("Remote.Dialog.Title"), device, false, device.getAppInstallPath() + "/");
                                        if(dlg.open() == TizenRemoteFileDialogResult.OK) {
                                                FileEntry selectedFile = dlg.getSelectedFileEntry();
                                                filePath = selectedFile.getFullPath();
index 93fdf19..7894edf 100644 (file)
@@ -114,7 +114,6 @@ public class TizenDebianMainTab extends CMainTab {
        private TableViewer tableViewer;
        private boolean fSpecifyCoreFile;
        private ArrayList<LocalPackage> packages = new ArrayList<LocalPackage>();
-       private static final String DEFAULT_APP_PATH = "/opt/apps/";
        private String filePath = "";
        private String selectedFileList = "";
        
@@ -493,7 +492,7 @@ public class TizenDebianMainTab extends CMainTab {
                                public void run() {
                                        IDevice device = ConnectionPlugin.getDefault().getCurrentDevice();
                                        TizenRemoteFileDialog dlg = new TizenRemoteFileDialog(shell, 
-                                                       resources.getString("Remote.Dialog.Title"), device, false, DEFAULT_APP_PATH);
+                                                       resources.getString("Remote.Dialog.Title"), device, false, device.getAppInstallPath() + "/");
                                        if(dlg.open() == TizenRemoteFileDialogResult.OK) {
                                                FileEntry selectedFile = dlg.getSelectedFileEntry();
                                                filePath = selectedFile.getFullPath();
index 6f456c7..eeff0e9 100644 (file)
@@ -81,7 +81,6 @@ public class TizenPathInputDialog extends Dialog {
 
        private String filePath = "";
        
-       private static final String DEFAULT_APP_PATH = "/opt/apps/";
        private static final String REMOTE_BROWSE = "Remote Browse...";
        private static final String SELECT_AN_APPLICATION = "Select an Application";
        private static final String SELECT_A_FILE = "Select a file";
@@ -269,7 +268,7 @@ public class TizenPathInputDialog extends Dialog {
                        shell.getDisplay().syncExec( new Runnable() {
                                public void run() {
                                        IDevice device = ConnectionPlugin.getDefault().getCurrentDevice();
-                                       TizenRemoteFileDialog dlg = new TizenRemoteFileDialog(shell, SELECT_AN_APPLICATION, device, false, DEFAULT_APP_PATH);
+                                       TizenRemoteFileDialog dlg = new TizenRemoteFileDialog(shell, SELECT_AN_APPLICATION, device, false, device.getAppInstallPath() + "/");
                                        if(dlg.open() == TizenRemoteFileDialogResult.OK) {
                                                FileEntry selectedFile = dlg.getSelectedFileEntry();
                                                filePath = selectedFile.getFullPath();
index 383cc14..7f2552a 100644 (file)
@@ -60,7 +60,6 @@ public class PlatformLaunchSettingBinPage extends WizardPage {
        
        private Text text;
        private String filePath = "";
-       private static final String DEFAULT_APP_PATH = "/opt/apps/";
        
        public PlatformLaunchSettingBinPage(PlatformLaunchWizard wizard, String pageName) {
                super(pageName);
@@ -121,7 +120,7 @@ public class PlatformLaunchSettingBinPage extends WizardPage {
                                public void run() {
                                        IDevice device = ConnectionPlugin.getDefault().getCurrentDevice();
                                        TizenRemoteFileDialog dlg = new TizenRemoteFileDialog(shell, 
-                                                       resources.getString("BinPage.Remote.Dialog.Title"), device, false, DEFAULT_APP_PATH);
+                                                       resources.getString("BinPage.Remote.Dialog.Title"), device, false, device.getAppInstallPath() + "/");
                                        if(dlg.open() == TizenRemoteFileDialogResult.OK) {
                                                FileEntry selectedFile = dlg.getSelectedFileEntry();
                                                filePath = selectedFile.getFullPath().trim();