private List<BinarySettingData> realBinarySettings = new ArrayList<BinarySettingData>();
+ private String debugRoot = PathManager.getRootStrapsPath();
+
public static synchronized BinarySettingManager getInstance() {
if (null == instance) {
instance = new BinarySettingManager();
public List<BinarySettingData> getRealBinarySettings() {
return realBinarySettings;
}
+
+ public String getDebugRoot() {
+ return debugRoot;
+ }
+
+ public void setDebugRoot(String debugRoot) {
+ this.debugRoot = debugRoot;
+ }
}
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")
BinarySettingProgressManager.getInstance()
.startProcessStart("Wait for update debug path");
BinarySettingProcessor.runUpdateDebugRoot(me);
+ BinarySettingManager.getInstance().setDebugRoot(rootPath);
}
}
}
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);