Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » addCTabFolderListener
addCTabFolderListener [message #449094] Tue, 18 January 2005 10:37 Go to next message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
I currently have usages of:

CTabFolder.addCTabFolderListener(new CTabFolderAdapter() { ... }

which is now deprecated. When I try moving this over to:

CTabFolder.addCTabFolder2Listener(new CTabFolder2Listener() { ... }

I no longer get the close button on the tab. Why is this?

Thanks.

James
Re: addCTabFolderListener [message #449097 is a reply to message #449094] Tue, 18 January 2005 11:21 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Just call CTabFolder's constructor with the style bit "SWT.CLOSE"

Ben

> I currently have usages of:
> CTabFolder.addCTabFolderListener(new CTabFolderAdapter() { ... }
> which is now deprecated. When I try moving this over to:
>
> CTabFolder.addCTabFolder2Listener(new CTabFolder2Listener() { ... }
>
> I no longer get the close button on the tab. Why is this?
>
> Thanks.
>
> James
>
>
>
Re: addCTabFolderListener [message #449100 is a reply to message #449097] Tue, 18 January 2005 14:08 Go to previous message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
Thanks Ben - that worked.

Benjamin Pasero wrote:


> Just call CTabFolder's constructor with the style bit "SWT.CLOSE"

> Ben

>> I currently have usages of:
>> CTabFolder.addCTabFolderListener(new CTabFolderAdapter() { ... }
>> which is now deprecated. When I try moving this over to:
>>
>> CTabFolder.addCTabFolder2Listener(new CTabFolder2Listener() { ... }
>>
>> I no longer get the close button on the tab. Why is this?
>>
>> Thanks.
>>
>> James
>>
>>
>>
Previous Topic:SWT_AWT setSelectionProvider
Next Topic:SWT vs Solaris Gnome desktop
Goto Forum:
  


Current Time: Thu Nov 14 16:52:20 GMT 2019

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

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

Back to the top