[SRADA-767] Fixed a issue : changing toolbar status
authordongkyu6 lee <dongkyu6.lee@samsung.com>
Thu, 23 Jun 2016 06:49:55 +0000 (15:49 +0900)
committerdongkyu6 lee <dongkyu6.lee@samsung.com>
Thu, 23 Jun 2016 23:29:08 +0000 (08:29 +0900)
 - If user click "OK" button, status of toolbar should be changed to runable.

Change-Id: I813727f07eb6c70f39e9dfc55c1791d332538ae3

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/setting/TargetDialog.java

index 2402af9..394da59 100644 (file)
@@ -40,6 +40,7 @@ import org.eclipse.swt.widgets.Event;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Listener;
 import org.eclipse.swt.widgets.Shell;
+import org.tizen.dynamicanalyzer.common.DAState;
 import org.tizen.dynamicanalyzer.common.Global;
 import org.tizen.dynamicanalyzer.communicator.DeviceInfo;
 import org.tizen.dynamicanalyzer.nl.TargetDialogLabels;
@@ -367,6 +368,7 @@ public class TargetDialog extends DAMessageBox {
                                        String appName = curApp.getMainApp().getLabel();
                                        if (Toolbar.INSTANCE.setApplication(appName)) {
                                                Global.setCurrentApplication(curApp);
+                                               Toolbar.INSTANCE.changeUIState(DAState.INIT);
                                        } else {
                                                Logger.warning("Failed to set application to toolbar - " + appName);
                                        }