History log of /sdk/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCocoa.java
Revision Date Author Comments
9e1748f533f9d25dcedb50f9464b36588eec686b 29-Apr-2011 Raphael Moll <ralf@android.com> Use SwtMenuBar in HierarchyViewer application.

Change-Id: I5f61e0c238520d8582e9bef8fa69c354a1165475
9058318f1052d7813e1c4989fdad49735d65b523 21-Apr-2011 Raphael Moll <ralf@android.com> Use SwtMenuBar for DDMS.

Change-Id: I32121a336e5b3256ef1661fff5afe84741295d08
9d333439029e282e9b8fec93e57ebedeb5c4016a 27-Apr-2011 Raphael Moll <ralf@android.com> Cocoa implementation for SwtMenuBar.

Note that in the Android SDK tools, we ship:
- SWT in 32-bit with Carbon only.
- SWT in 64-bit with Cocoa only.

The previous implementation was carbon-only and the
menus were basically not 'macified' when running on
a recent Mac from the command-line. This missing
implementation fixes it.

After experimenting with various implementations of
the original SWT CocoaMenuEnhancer, I finally settled with
this one since it solely uses reflection and does not
import anything from the swt.cocoa namespace. This means
we can easily build this using the makefile which *only*
links with the 32-bit/carbon version of SWT.jar.

Note that on Windows/Linux, the src-darwin folder will
be ignored, which is why it is not mapped as a source
directory and which is why we can't build this directly
from Eclipse.

Change-Id: I53859d3b15bc7026d6bd4f77e048a0c4b4eeb02c