Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.views.styledmap
Class GTKAWTBridgePopupFix

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.views.styledmap.GTKAWTBridgePopupFix

public class GTKAWTBridgePopupFix
extends Object

Helper class providing a work-around for Eclipse Bug 233450 ( "https://bugs.eclipse.org/bugs/show_bug.cgi?id=233450") where with GTK as windowing system it is not possible to show a SWT menu on top of a AWT/Swing component.

Implementation based on "http://www.eclipsezone.com/eclipse/forums/t95687.html"

Author:
Simon Templer

Constructor Summary
GTKAWTBridgePopupFix()
           
 
Method Summary
static void showMenu(org.eclipse.swt.widgets.Menu menu)
          Show the given SWT menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GTKAWTBridgePopupFix

public GTKAWTBridgePopupFix()
Method Detail

showMenu

public static void showMenu(org.eclipse.swt.widgets.Menu menu)
Show the given SWT menu. Must be called from the display thread.

Parameters:
menu - the menu to show

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d