RTSDK: disp error msg when flash command is executed
authorgyeongmin.ju <gyeongmin.ju@samsung.com>
Tue, 7 Mar 2017 11:39:04 +0000 (20:39 +0900)
committergyeongmin.ju <gyeongmin.ju@samsung.com>
Tue, 7 Mar 2017 11:43:36 +0000 (20:43 +0900)
Change-Id: I75adccd346bf0f1bd1628d07ea78984cff5f2117
Signed-off-by: gyeongmin.ju <gyeongmin.ju@samsung.com>
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/handlers/FlashHandler.java

index 6ef07df..30aea01 100644 (file)
@@ -33,6 +33,8 @@ import org.eclipse.core.commands.AbstractHandler;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.swt.widgets.Display;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.tizen.rt.ide.flash.FlashBuilder;
@@ -45,7 +47,7 @@ import org.tizen.rt.ide.util.Util;
  * @see org.eclipse.core.commands.AbstractHandler
  */
 public class FlashHandler extends AbstractHandler {
-    private final Logger logger = LoggerFactory.getLogger(getClass());
+    // private final Logger logger = LoggerFactory.getLogger(getClass());
 
     @Override
     public Object execute(ExecutionEvent event) throws ExecutionException {
@@ -64,7 +66,8 @@ public class FlashHandler extends AbstractHandler {
                 try {
                     buildInfo.load(new FileReader(new File(outputPath, "build.info")));
                 } catch (IOException e) {
-                    logger.error(e.getMessage());
+                    // logger.error(e.getMessage());
+                    MessageDialog.openError(Display.getDefault().getActiveShell(), "Error", "Could not found file : build.info");
                     return;
                 }
                 String board = buildInfo.getProperty("board");