开发者

difference between pagebookview and normal view

开发者 https://www.devze.com 2023-03-13 14:56 出处:网络
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.ecli

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

0

精彩评论

暂无评论...
验证码 换一张
取 消