@Override protected PageRec doCreatePage(IWorkbenchPart part) { IPageBookViewPage page = fPartsToPages.get(part); initPage(page); page.createControl(getPageBook()); PageRec rec = new PageRec(part, page); return rec; }
/* (non-Javadoc) * Method declared on PageBookView. * Returns the default property sheet page. */ protected IPage createDefaultPage(PageBook book) { IPageBookViewPage page = (IPageBookViewPage) ViewsPlugin.getAdapter(this, IPropertySheetPage.class, false); if (page == null) { page = new PropertySheetPage(); } initPage(page); page.createControl(book); return page; }
@Override protected IPage createDefaultPage(PageBook book) { IPageBookViewPage page = new EmptySearchView(); page.createControl(book); initPage(page); DummyPart part = new DummyPart(); fPartsToPages.put(part, page); fPagesToParts.put(page, part); fDefaultPart = part; return page; }