|
Re: Shared palette in MultiPageEditor [message #174964 is a reply to message #174915] |
Fri, 01 April 2005 17:05 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Are you trying to share the palette viewer instance across the pages? you
could do this. The FlyoutPaletteComposite is designed to host any Control
as the "diagram", so your tabfolder could be the diagram center.
"sf76" <sf76@hotmail.com> wrote in message
news:a8d827b9c287f1936404036531769e47$1@www.eclipse.org...
> Dear all,
>
> i'm trying to create a MultiPageEditor with a Flyout Palette shared
> between the different pages.
> I would like to have one single editDomain for all the various editor
> pages (one single command stack) and a palette that change contents based
> on the current selected page. There would be one PaletteRoot with children
> swapped in/out on page activation.
>
> I'm having some trouble in setting up the palette viewer correctly (only
> the last added palette page works), but more important i don't know if i'm
> taking the right approach.
>
> Are there some guidelines to follow? Is it there a (simple) example to
> study?
>
>
> Thanks in advance
>
|
|
|
|
Re: Shared palette in MultiPageEditor [message #175333 is a reply to message #175303] |
Mon, 04 April 2005 14:33 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
> but this come out with different palette viewer for the various page...
> Should i create a shared FlyoutPaletteComposite instead?
The Flyout should be created by the MPE, not each page.
|
|
|
|
|
Re: Shared palette in MultiPageEditor [message #176051 is a reply to message #175646] |
Thu, 07 April 2005 17:01 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Actually, it can just be the Composite that the workbench passes to the
Editor.
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d2uio9$ni1$1@news.eclipse.org...
> The palette's parent composite should be the multipage editor's control,
> not
> the pages' controls.
>
> "sf76" <sf76@hotmail.com> wrote in message
> news:d289471d69b24f9b0567dc6ed9af09b8$1@www.eclipse.org...
>> OK.
>>
>> The point is that the flyout is asking for a parent composite in its
>> constructor.
>> How could i select a right one taking into account the fact that the same
>> viewer should then be reused inside the different pages? (every page has
>> its own parent composite under which new page's elements are attached,
>> given in the createPageControl method)
>>
>> Thanks in advance
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.48038 seconds