difference between pagebookview and normal view
what is the difference between PageBookView and Normal view? when do we use Pag开发者_高级运维eBookView and Normal View?
A PageBookView simply is used to implement views like the Outline view, org.eclipse.ui.views.contentoutline.ContentOutline
. It provides the default framework to switch pages based on the incoming active part.
EDIT: A PageBookView is a view that can contain multiple pages, but it only shows one page at a time. In this context, a page is a class implementing org.eclipse.ui.part.IPageBookViewPage
. It can create a Control
and can interact with the framework, like providing view tool items.
The Console view, org.eclipse.ui.internal.console.ConsoleView
is an example that uses the PageBookView to manage pages, but doesn't switch console pages on part activation. Instead it offers a dropdown of pages that the user can switch to.
PW
精彩评论