Skip to main content



      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 13:58 Go to next message
Eclipse UserFriend
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 14:15 Go to previous messageGo to next message
Eclipse UserFriend
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 09:57 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 09:07:50 EDT 2025

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

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

Back to the top