[Title] fix bug : No CPU arch in Windows Detail Info dialog
authorSon Hyunjun <hj79.son@samsung.com>
Wed, 4 Apr 2012 12:00:26 +0000 (21:00 +0900)
committerSon Hyunjun <hj79.son@samsung.com>
Wed, 4 Apr 2012 12:00:26 +0000 (21:00 +0900)
[Type] Bugfix
[Module] Skin
[Priority] Minor
[CQ#]
[Redmine#]
[Problem] parsing path problem in Windows
[Cause]
[Solution]

Change-Id: Ie560aaf11c2768db4dab14ca2d2a48119cc7e02a

tizen/src/skin/client/src/org/tizen/emulator/skin/dialog/DetailInfoDialog.java

index f0b10aa..e17ce97 100644 (file)
@@ -217,6 +217,12 @@ public class DetailInfoDialog extends SkinDialog {
                        if ( 0 == i ) {
 
                                String exec = split[i].trim().toLowerCase();
+                               if( SkinUtil.isWindowsPlatform() ) {
+                                       if( 4 <= exec.length() ) {
+                                               // remove '.exe' in Windows
+                                               exec = exec.substring( 0, exec.length() - 4 );
+                                       }
+                               }
                                logger.info( "exec:" + exec );
                                if ( exec.endsWith( "x86" ) ) {
                                        cpu = "X86";