diff options
author | Raphael Moll <ralf@android.com> | 2011-04-28 23:22:09 -0700 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2011-04-28 23:56:15 -0700 |
commit | 9e1748f533f9d25dcedb50f9464b36588eec686b (patch) | |
tree | 8d644010d1a7331d32b76e279a657035cec8b5c7 /swtmenubar/src-darwin | |
parent | 185782e15be0a3e56e53e950f522c11d0bf3d7f0 (diff) | |
download | sdk-9e1748f533f9d25dcedb50f9464b36588eec686b.zip sdk-9e1748f533f9d25dcedb50f9464b36588eec686b.tar.gz sdk-9e1748f533f9d25dcedb50f9464b36588eec686b.tar.bz2 |
Use SwtMenuBar in HierarchyViewer application.
Change-Id: I5f61e0c238520d8582e9bef8fa69c354a1165475
Diffstat (limited to 'swtmenubar/src-darwin')
-rwxr-xr-x | swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCarbon.java | 3 | ||||
-rw-r--r-- | swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCocoa.java | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCarbon.java b/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCarbon.java index eac3f30..45dacfb 100755 --- a/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCarbon.java +++ b/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCarbon.java @@ -44,9 +44,8 @@ public final class MenuBarEnhancerCarbon implements IMenuBarEnhancer { public void setupMenu( String appName, - Menu swtMenu, + Display display, final IMenuBarCallback callbacks) { - final Display display = swtMenu.getDisplay(); // Callback target Object target = new Object() { diff --git a/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCocoa.java b/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCocoa.java index cba2878..170603a 100644 --- a/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCocoa.java +++ b/swtmenubar/src-darwin/com/android/menubar/internal/MenuBarEnhancerCocoa.java @@ -109,16 +109,15 @@ public class MenuBarEnhancerCocoa implements IMenuBarEnhancer { * given application name and links them to the callback. * * @param appName The application name. - * @param swtMenu The tools menu. Not used here. + * @param display The SWT display. Must not be null. * @param callbacks The callbacks invoked by the menus. */ public void setupMenu( String appName, - Menu swtMenu, + Display display, IMenuBarCallback callbacks) { mAppName = appName; - final Display display = swtMenu.getDisplay(); // This is our callback object whose 'actionProc' method will be called // when the About or Preferences menuItem is invoked. |