Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can/Should a swt.widgets.List have a context menu?
Can/Should a swt.widgets.List have a context menu? [message #445907] Thu, 11 November 2004 18:58 Go to next message
Fred Clewis is currently offline Fred ClewisFriend
Messages: 31
Registered: July 2009
Member
How could a swt.widgets.List have a context menu? It is part of a
Viewpart. I don't see how to do it.

Is this a bad idea and unecessary?

thanks,
fred
Re: Can/Should a swt.widgets.List have a context menu? [message #445911 is a reply to message #445907] Thu, 11 November 2004 19:15 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See List.setMenu(Menu) (inherited from Control).

"Fred Clewis" <clewisf@us.ibm.com> wrote in message
news:cn0cok$9kl$1@eclipse.org...
> How could a swt.widgets.List have a context menu? It is part of a
> Viewpart. I don't see how to do it.
>
> Is this a bad idea and unecessary?
>
> thanks,
> fred
Re: Can/Should a swt.widgets.List have a context menu? [message #446560 is a reply to message #445907] Fri, 26 November 2004 14:57 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Fred, sorry for the late response,

If you want to hook a context menu onto an swt List directly (ie.- not
through some eclipse extension point, etc.) then it should be no different
than for any other widget. For an example of this see
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet40.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup .

Grant

"Fred Clewis" <clewisf@us.ibm.com> wrote in message
news:cn0cok$9kl$1@eclipse.org...
> How could a swt.widgets.List have a context menu? It is part of a
> Viewpart. I don't see how to do it.
>
> Is this a bad idea and unecessary?
>
> thanks,
> fred
Previous Topic:Mouse hover on items in a List
Next Topic:Mama mia
Goto Forum:
  


Current Time: Thu Mar 28 08:47:23 GMT 2024

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

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

Back to the top