[Title] Applied changed IDevice.isOnline method
authordonghyuk.yang <donghyuk.yang@samsung.com>
Wed, 5 Jun 2013 07:04:09 +0000 (16:04 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Wed, 5 Jun 2013 07:04:09 +0000 (16:04 +0900)
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/wizards/PlatformLaunchUtils.java

index b722473..30c6ca4 100644 (file)
@@ -83,6 +83,7 @@ import org.tizen.sdblib.IDevice;
 import org.tizen.sdblib.exception.SdbCommandRejectedException;
 import org.tizen.sdblib.exception.TimeoutException;
 import org.tizen.sdblib.service.SyncResult;
+import org.tizen.sdblib.util.DeviceUtil;
 
 @SuppressWarnings("restriction")
 public class PlatformLaunchUtils {
@@ -123,7 +124,7 @@ public class PlatformLaunchUtils {
 
     public boolean installPkgsToDevice(List<LocalPackage> packages, IPkgCommander.TOOL type,
             IProgressMonitor monitor) throws InterruptedException {
-        if (!target.getDevice().isOnline()) {
+        if (!DeviceUtil.isOnline(target.getDevice())) {
             newException(TizenLaunchMessages.CANNOT_CONNECT_TO_DEVICE);
         } else if (!target.getDevice().isRoot()) {
             newException(PlatformLaunchMessages.DEVICE_IS_NOT_ROOT_ON);