Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace and popup menus
JFace and popup menus [message #436127] Tue, 11 May 2004 23:34 Go to next message
Eclipse UserFriend
Originally posted by: lewandom.USUNTOop.pl

Hi

How to create popup menu for some jface control (like
TreeViewer) using MenuManager? I've searched through
net and found nothing.

Thanks

Marcin
Re: JFace and popup menus [message #436187 is a reply to message #436127] Wed, 12 May 2004 12:48 Go to previous message
michael is currently offline michaelFriend
Messages: 44
Registered: July 2009
Member
Am Wed, 12 May 2004 01:34:07 +0200 schrieb Marcin Lewandowski
<lewandom@USUNTOop.pl>:

> Hi
>
> How to create popup menu for some jface control (like
> TreeViewer) using MenuManager? I've searched through
> net and found nothing.
>
> Thanks
>
> Marcin
>
>
>

MenuManager mm = new MenuManager();
mm.add (new DescendantOfAction());
yourTreeViewer.getControl().setMenu (mm.createContextMenu
(yourTreeViewer.getControl()));

Regards,
michael
Previous Topic:Some slides about Eclipse, SWT, etc.
Next Topic:SWT asyncExec() problem
Goto Forum:
  


Current Time: Fri Apr 26 01:21:35 GMT 2024

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

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

Back to the top