Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Remove a menu item
Remove a menu item [message #666470] Wed, 20 April 2011 14:20 Go to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
I've been searching how to remove a menu item from a menu, but I don't see any public API for it. Confused

Am I right?
Is there a workaround?
Thanks in advance.

David
Re: Remove a menu item [message #666476 is a reply to message #666470] Wed, 20 April 2011 14:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Simply dispose it

Tom

Am 20.04.11 16:20, schrieb David Pérez:
> I've been searching how to remove a menu item from a menu, but I don't
> see any public API for it. :?
> Am I right?
> Is there a workaround?
> Thanks in advance.
>
> David
Re: Remove a menu item [message #666492 is a reply to message #666476] Wed, 20 April 2011 15:14 Go to previous messageGo to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
Thanks Tom. Smile
Normally for removing an item from a List or a Table you have calls in the style of removeItem(), but this case is different.

Tom Schindl wrote on Wed, 20 April 2011 10:34
Simply dispose it


Re: Remove a menu item [message #666502 is a reply to message #666492] Wed, 20 April 2011 15:28 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
In SWT you remove TableItem also using .dispose() only for List/Combo it
is different.

Tom

Am 20.04.11 17:14, schrieb David Pérez:
> Thanks Tom. :) Normally for removing an item from a List or a Table you
> have calls in the style of removeItem(), but this case is different.
>
> Tom Schindl wrote on Wed, 20 April 2011 10:34
>> Simply dispose it
>
>
Previous Topic:Display#addFilter() not functional while a menu is open
Next Topic:TrayIcon Redraw?
Goto Forum:
  


Current Time: Thu Apr 25 16:02:56 GMT 2024

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

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

Back to the top