Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT popup menu not working
SWT popup menu not working [message #1087603] Thu, 15 August 2013 18:18
Testr t is currently offline Testr t
Messages: 67
Registered: April 2013
Member
I am creating an Eclipse plugin and using the SWT popup menu(context menu) for one of the controls in plugin. The context menu item works, but the accelerator(shortcut) that I set for the menu item has no effect and it does not work.I create the menuitem like this,

MenuItem parent = new Menu( getShell(), SWT.POP_UP );
MenuItem menuItem = new MenuItem(parent, SWT.PUSH);
menuItem.setText( "Click me");
menuItem.setAccelerator( SWT.CTRL+ 'F');
Note that the shortcut problem is there for the POP_UP menu, not the BAR menu item.
Previous Topic:Problems generating JNI libraries
Next Topic:Column grouping for jface TableViewer
Goto Forum:
  


Current Time: Tue Oct 08 00:50:28 EDT 2013

Powered by FUDForum. Page generated in 0.01540 seconds