Setting : remove welcomeDialog potential bugs 69/26269/1
authorheeyoung <heeyoung1008.hwang@samsung.com>
Wed, 20 Aug 2014 04:53:25 +0000 (13:53 +0900)
committerheeyoung <heeyoung1008.hwang@samsung.com>
Wed, 20 Aug 2014 04:53:25 +0000 (13:53 +0900)
Change-Id: I1048e10008d873f62e1527dd399bebd530f7d2e7
Signed-off-by: heeyoung <heeyoung1008.hwang@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/IDECommunicator.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/WelcomeDialog.java

index d659613..428994e 100644 (file)
@@ -94,7 +94,7 @@ public class IDECommunicator implements Runnable {
 
        private static Boolean openWelcomeDlg = Boolean.FALSE;
 
-       private static final Integer waitingWelcomeDlg = new Integer(0);
+       private static final Object waitingWelcomeDlg = new Object();
 
        private ServerSocket daServerSocket = null;
        private static Socket lastCommunicationIdeSocket = null;
@@ -413,7 +413,7 @@ public class IDECommunicator implements Runnable {
                }
        }
 
-       public static Integer getWaitingWelcomeDlg() {
+       public static Object getWaitingWelcomeDlg() {
                return waitingWelcomeDlg;
        }
 
index ef524fb..2d7432a 100644 (file)
@@ -261,9 +261,9 @@ public class WelcomeDialog extends DAMessageBox {
 
        private void notifyAutoRun() {
                synchronized (IDECommunicator.getWaitingWelcomeDlg()) {
+                       IDECommunicator.setOpenWelcomeDlg(false);
                        IDECommunicator.getWaitingWelcomeDlg().notifyAll();
                }
-               IDECommunicator.setOpenWelcomeDlg(false);
        }
 
        private ShellListener shellListener = new ShellListener() {