IPageBookViewPage page = new LibraryExplorerTreeViewPage( ); ( (LibraryExplorerTreeViewPage) page ).setLibraryProvider( new LibraryProvider( ) ); initPage( page ); page.createControl( getPageBook( ) ); return new PageRec( part, page );
LibraryExplorerTreeViewPage page = new LibraryExplorerTreeViewPage( ); IEditorPart editor = UIUtil.getActiveEditor( true ); ILibraryProvider provider = (ILibraryProvider) editor.getAdapter( ILibraryProvider.class ); if( provider != null ) { page.setLibraryProvider( provider ); initPage( page ); page.createControl( getPageBook( ) ); return new PageRec( part, page ); }
	protected PageRec doCreatePage( IWorkbenchPart part )	{		if ( part instanceof AbstractMultiPageLayoutEditor )		{			IPageBookViewPage page = new LibraryExplorerTreeViewPage( );			( (LibraryExplorerTreeViewPage) page ).setLibraryProvider( new LibraryProvider( ) );			initPage( page );			page.createControl( getPageBook( ) );			return new PageRec( part, page );		}		return null;	}