Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » CTabFolder: remove CTabItem at runtime?
CTabFolder: remove CTabItem at runtime? [message #121505] Fri, 13 February 2009 10:01 Go to next message
Kristian Rink is currently offline Kristian RinkFriend
Messages: 64
Registered: July 2009
Member
Folks;

not sure whether this is RAP-specific or the same in SWT, as well: Using a
CTabFolder which, at runtime, gets CTabItem's dynamically added according to
our needs, things work rather fine. However I would like to have a way to,
the same way, remove CTabItem's from the CTabFolder in some situations,
making them disappear from the UI as well. So far however I failed to figure
out how to do so; even though I issue a "dispose()" on that CTabItem it's
still there in the UI. So:

- Is this possible at all? Can a CTabItem dynamically be dumped at runtime
(in RAP)?

- Is there a way to close a CTabItem at all? Looking at the UI, I noticed
there are no real controls to do anything to any of these items... can these
be enabled per configuration or do I manually have to add means to allow for
users closing a given CTabItem?

Thanks in advance and all the best,
Kristian

--
Kristian Rink
cell : +49 176 2447 2771
personal: http://pictorial.zimmer428.net
"Past midnight. Never knew such silence.
The earth might be uninhabited..."
//beckett / krapp's last tape//
Re: CTabFolder: remove CTabItem at runtime? [message #121513 is a reply to message #121505] Fri, 13 February 2009 12:42 Go to previous message
rollo is currently offline rolloFriend
Messages: 117
Registered: July 2009
Senior Member
Hi,

CTabItem item = new CTabItem( folder, SWT.CLOSE );

I think you are looking for this.

Roland

Kristian Rink schrieb:
> Folks;
>
> not sure whether this is RAP-specific or the same in SWT, as well: Using a
> CTabFolder which, at runtime, gets CTabItem's dynamically added according to
> our needs, things work rather fine. However I would like to have a way to,
> the same way, remove CTabItem's from the CTabFolder in some situations,
> making them disappear from the UI as well. So far however I failed to figure
> out how to do so; even though I issue a "dispose()" on that CTabItem it's
> still there in the UI. So:
>
> - Is this possible at all? Can a CTabItem dynamically be dumped at runtime
> (in RAP)?
>
> - Is there a way to close a CTabItem at all? Looking at the UI, I noticed
> there are no real controls to do anything to any of these items... can these
> be enabled per configuration or do I manually have to add means to allow for
> users closing a given CTabItem?
>
> Thanks in advance and all the best,
> Kristian
>
Previous Topic:MenuBar property "menuBarShellClientArea" not preserved
Next Topic:Editor with minimal Layout problem?
Goto Forum:
  


Current Time: Thu Jul 18 11:32:24 GMT 2024

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

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

Back to the top