Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » IPageBookViewPage reuse in multiple PageBookViews?(Is it allowed to reuse the same Page in multiple PageBookViews?)
IPageBookViewPage reuse in multiple PageBookViews? [message #1798793] Sun, 25 November 2018 12:44 Go to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 81
Registered: April 2012
Member
Simple question: Is it allowed to reuse the same Page (IPageBookViewPage) in multiple PageBookViews?

The implementations do not check for the re-use of a Page in another PageBookView. However, I would be surprised that this works correctly as it seems that 'createControl' and 'init' would be called multiple times on the same Page. Or do I miss something here?
Re: IPageBookViewPage reuse in multiple PageBookViews? [message #1799253 is a reply to message #1798793] Mon, 03 December 2018 14:08 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 872
Registered: January 2012
Senior Member

I wouldn't recommend doing this. If your PageBookViewPages had no state, then it might work. But Page, the base class, holds onto the Page Site, which is tightly tied to a view part. So you're likely to hit some problem at some point.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: IPageBookViewPage reuse in multiple PageBookViews? [message #1799404 is a reply to message #1799253] Thu, 06 December 2018 09:11 Go to previous messageGo to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 81
Registered: April 2012
Member
Just to be sure, if the Page Site would be closed, and after that the Page is re-used in another Page Site would that potentially be a problem? To be concrete, this behavior is present in almost every IContentOutlinePage I have seen so far.
Re: IPageBookViewPage reuse in multiple PageBookViews? [message #1799425 is a reply to message #1799404] Thu, 06 December 2018 16:03 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 872
Registered: January 2012
Senior Member

Can I turn the question around and ask: why do you want to reuse a page in multiple page book views?

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Unable to connect to the network for update
Next Topic:Eclipse RCP crashes with lots of GTK warnings and errors after latest Gnome update
Goto Forum:
  


Current Time: Mon Feb 24 00:52:31 GMT 2020

Powered by FUDForum. Page generated in 0.08480 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top