menu: added "not supported" msg popup for mac
authorgiwoong.kim <giwoong.kim@samsung.com>
Fri, 19 Oct 2012 11:09:26 +0000 (20:09 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Fri, 19 Oct 2012 11:09:26 +0000 (20:09 +0900)
The Alaways on Top menu is not supported yet in Mac.
So, I added temporary message popup for user.

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index 73b127c..1ef3464 100644 (file)
@@ -1779,7 +1779,11 @@ public class EmulatorSkin {
                        invokeOSMethod( m, shellHandle, hWndInsertAfter, location.x, location.y, 0, 0, noSize );
                } else if( SwtUtil.isMacPlatform() ) {
                        //TODO:
-                       logger.warning( "not supported yet" );
+                       logger.warning("not supported yet");
+
+                       SkinUtil.openMessage(shell, null,
+                                       "Sorry. This feature is not supported yet.",
+                                       SWT.ICON_WARNING, config);
                }
 
                return true;
@@ -1826,14 +1830,18 @@ public class EmulatorSkin {
 
                                // readyToReopen( EmulatorSkin.this, isOnTop );
 
-                               //internal/Library.java::arch()
+                               /* internal/Library.java::arch() */
                                String osArch = System.getProperty("os.arch"); //$NON-NLS-1$
                                logger.info(osArch);
-                               if (osArch.equals("amd64") || osArch.equals("IA64N") || osArch.equals("IA64W")) { //$NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
+                               if (osArch.equals("amd64") || osArch.equals("x86_64") ||
+                                               osArch.equals("IA64W") || osArch.equals("ia64")) {
+                                       //$NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
                                        logger.info("64bit architecture");
-                                       setTopMost64(isOnTop); //64bit
+
+                                       setTopMost64(isOnTop); /* 64bit */
                                } else {
                                        logger.info("32bit architecture");
+
                                        setTopMost32(isOnTop);
                                }
                        }