[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: activeEditorPart is always null (setActivePage)
|
You will probably get more response to this question in the eclipse.platform
newsgroup:
news://news.eclipse.org/eclipse.platform
"David Black" <dblack@xxxxxxxxxxxxxxx> wrote in message
news:csp0g8$bam$1@xxxxxxxxxxxxxxxxxx
> Hi,
>
> I have a MultiPageEditorActionBarContributor and a multi page editor with
> 2 pages. Every time MultiPageEditorActionBarContributor.setActivePage is
> called, the editor part passed to it is null. Each time I click on the tab
> of one of editors, setActivePage is called but with null. I have tried
> calling setActivePage(0) and setActivePage(1) and both times the same
> thing, null. I traced the code and there is a CTabFolder involved for the
> mutlipage editor, and the lookup of the CTabItem takes place, but its data
> property is null. Should the CTabItem data property point to my editor?
>
> Is there an "obvious" reason for this? Something I have forgotten to do
> perhaps ... my multiple editors work fine apart from this. Problem is I
> have nowhere to direct my actions from the contributor if I cannot access
> the activeEditorPart.
>
> thanks
> David Black