Hi Oli,
The current design is that either all or none of the tabs have close
buttons, based on whether or not the CTabFolder is created with the CLOSE
style. The presence of these close buttons cannot be changed once a
CTabFolder is created, but their function can be overridden to not close
individual tabs by hooking a CTabFolder2Listener and setting doit=false in
the #close callback.
If the widget is otherwise not doing what you need then you can log a
Feature Request with Platform - SWT.
Grant
"Oli" <prinzadam@xxxxxxxx> wrote in message
news:ciooq3$91v$2@xxxxxxxxxxxxxx
Hi everybody,
I have an editor derived from MultiPageEditorPart.
Unfortunately I can't override the createItem() method
to create a closable CTabItem, nor can I set the
style of a CTabItem to SWT.CLOSE.
Is there any good reason why the createItem() method is private?
However, I dealt with it by disposing the non closable
CTabItem and then creating a new one, but that can't
be the answer.
Any idea?
Thank's in advance.
Oli
:)