[Title] Binary Settings Root set fixed
authorjooyoul_lee <jy.exe.lee@samsung.com>
Mon, 2 Dec 2013 10:43:52 +0000 (19:43 +0900)
committerjooyoul_lee <jy.exe.lee@samsung.com>
Mon, 2 Dec 2013 10:43:52 +0000 (19:43 +0900)
[Desc.]
[Issue]

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/platform/BinarySettingManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/platform/ui/InputRow.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/BinarySettingsPage.java

index b319aad..78947e0 100644 (file)
@@ -54,6 +54,8 @@ public class BinarySettingManager {
 
        private List<BinarySettingData> realBinarySettings = new ArrayList<BinarySettingData>();
 
+       private String debugRoot = PathManager.getRootStrapsPath();
+       
        public static synchronized BinarySettingManager getInstance() {
                if (null == instance) {
                        instance = new BinarySettingManager();
@@ -398,4 +400,12 @@ public class BinarySettingManager {
        public List<BinarySettingData> getRealBinarySettings() {
                return realBinarySettings;
        }
+
+       public String getDebugRoot() {
+               return debugRoot;
+       }
+
+       public void setDebugRoot(String debugRoot) {
+               this.debugRoot = debugRoot;
+       }
 }
index f5c59a2..363f70b 100644 (file)
@@ -92,7 +92,8 @@ public class InputRow extends Composite {
                public void handleClickEvent(DACustomButton button) {
                        FileExplorerDialog dialog = new FileExplorerDialog(getShell());
                        dialog.setFilter("debug");
-                       dialog.getExplorer().setRoot(PathManager.getRootStrapsPath());
+                       dialog.getExplorer().setRoot(
+                                       BinarySettingManager.getInstance().getDebugRoot());
                        Object result = dialog.open();
                        if (result != null) {
                                @SuppressWarnings("unchecked")
index ccb62a1..1ec9dcd 100644 (file)
@@ -179,6 +179,7 @@ public class BinarySettingsPage extends DAPageComposite {
                                        BinarySettingProgressManager.getInstance()
                                                        .startProcessStart("Wait for update debug path");
                                        BinarySettingProcessor.runUpdateDebugRoot(me);
+                                       BinarySettingManager.getInstance().setDebugRoot(rootPath);
                                }
                        }
                }
@@ -264,7 +265,7 @@ public class BinarySettingsPage extends DAPageComposite {
                data.left = new FormAttachment(0, 6);
                data.right = new FormAttachment(100, -6);
                data.height = 210;
-//             data.width = 590;
+               // data.width = 590;
                scrolledComposite.setLayoutData(data);
                scrolledComposite.setLayout(new FormLayout());
                scrolledComposite.setExpandHorizontal(true);