LAUNCH: Packaging project before checking rootstrap initializing 62/13262/1
authordonghyuk.yang <donghyuk.yang@samsung.com>
Mon, 2 Dec 2013 05:08:03 +0000 (14:08 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Mon, 2 Dec 2013 05:08:03 +0000 (14:08 +0900)
Launching process had a problem for ordering. First, packaging the
project. Second, checking rootstrap initializing.

Change-Id: I543904ced7818966814217bff5c2416882d68c09
Signed-off-by: donghyuk.yang <donghyuk.yang@samsung.com>
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/shortcut/PlatformProjectAttachLaunchShortcut.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/ui/shortcut/PlatformProjectLaunchShortcut.java

index 0bbb745..c934cc2 100644 (file)
@@ -57,14 +57,14 @@ public class PlatformProjectAttachLaunchShortcut extends PlatformProjectCommonLa
             ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, getLaunchManager()
                     .generateLaunchConfigurationName(project.getName()));
             setPkgCommandTarget(project);
+            if (!checkPackaging(project)) {
+                return null;
+            }
             if (!checkInitializedRootstrap()) {
                 MessageDialog.openError(SWTUtil.getShell(), TizenLaunchMessages.LAUNCH_ERROR,
                         PlatformLaunchMessages.ROOTSTRAP_NOT_INITED);
                 return null;
             }
-            if (!checkPackaging(project)) {
-                return null;
-            }
 
             // Set Tizen specific default values
             TizenLaunchConfiguration tc = new TizenLaunchConfiguration(wc, device);
index 8d11c7e..3d803e1 100644 (file)
@@ -56,14 +56,14 @@ public class PlatformProjectLaunchShortcut extends PlatformProjectCommonLaunchSh
             ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, getLaunchManager()
                     .generateLaunchConfigurationName(project.getName()));
             setPkgCommandTarget(project);
+            if (!checkPackaging(project)) {
+                return null;
+            }
             if (!checkInitializedRootstrap()) {
                 MessageDialog.openError(SWTUtil.getShell(), TizenLaunchMessages.LAUNCH_ERROR,
                         PlatformLaunchMessages.ROOTSTRAP_NOT_INITED);
                 return null;
             }
-            if (!checkPackaging(project)) {
-                return null;
-            }
 
             // Set Tizen specific default values
             TizenLaunchConfiguration tc = new TizenLaunchConfiguration(wc, device);