Skip to main content


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 22:18 Go to next message
Testr t is currently offline Testr tFriend
Messages: 93
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.
Re: SWT popup menu not working [message #1251017 is a reply to message #1087603] Wed, 19 February 2014 20:58 Go to previous message
Arjan Kok is currently offline Arjan KokFriend
Messages: 40
Registered: July 2009
Member
Hi,

It looks that I have a similar problem. Did you already figure out a solution for this problem?

Arjan.
Previous Topic:Compilation of HelloWorldSWT fails with "no swt-gtk-4333 in java.library.path"
Next Topic:Re: Plugin installation with XULRunner 24
Goto Forum:
  


Current Time: Fri Apr 26 18:56:35 GMT 2024

Powered by FUDForum. Page generated in 0.32841 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top