[Title] convert getAbsolutePath to getCanonocalPath
authorgiwoong.kim <giwoong.kim@samsung.com>
Thu, 12 Apr 2012 09:12:26 +0000 (18:12 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Thu, 12 Apr 2012 16:25:50 +0000 (01:25 +0900)
[Type] enhancement
[Module] Emulator / menu
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index 3232ddd..0311d10 100644 (file)
@@ -30,6 +30,7 @@
 package org.tizen.emulator.skin;
 
 import java.io.File;
+import java.io.IOException;
 import java.lang.reflect.Field;
 import java.util.ArrayList;
 import java.util.Iterator;
@@ -956,9 +957,13 @@ public class EmulatorSkin {
                                File sdbFile = new File(sdbPath);
                                if (!sdbFile.exists()) {
                                        logger.log( Level.INFO, "SDB file is not exist : " + sdbFile.getAbsolutePath());
-                                       SkinUtil.openMessage( shell, null,
-                                                       "SDB file is not exist in the following folder.\n" + sdbFile.getAbsolutePath()
-                                                       , SWT.ICON_ERROR, config );
+                                       try {
+                                               SkinUtil.openMessage( shell, null,
+                                                               "SDB file is not exist in the following path.\n" + sdbFile.getCanonicalPath()
+                                                               , SWT.ICON_ERROR, config );
+                                       } catch (IOException ee) {
+                                               logger.log( Level.SEVERE, ee.getMessage(), ee );
+                                       }
                                        return;
                                }