[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: How to set the style of a CTabItem.

Hi Oli,

Did you figure out how to create the tab folder with SWT.Close in the multi-page editor? I have a similar requirement but am not able to find any solution. I was wondering if you can share your solution with me.

Thanks
Anand


Oli wrote:
Hi Grant,

thanks for your quick answer. But how to create the CTabFolder
in the MultiPageEditorPart with the SWT.Close parameter. Everything
is private of protected.

That would finally answer my question.

Thanks a lot
oli










Grant Gayed wrote:

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
:)
'


--
_____________________________________________________________________________________

Anand Narasimhan
anandn@xxxxxxxxx