CTabFolder: remove CTabItem at runtime? [message #121505] |
Fri, 13 February 2009 05:01  |
Eclipse User |
|
|
|
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 07:42  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03223 seconds