IEditorPart editor = UIUtil.getActiveEditor( true ); if ( editor != null ) { Object fileAdapter = editor.getEditorInput( ) .getAdapter( IFile.class ); LibraryExplorerTreeViewPage page = getPage( fileAdapter, editor ); initPage( page ); page.createControl( getPageBook( ) ); return new PageRec( part, page ); }  return null;
if ( treeViewPage == null ) { treeViewPage = new LibraryExplorerTreeViewPage( ); initPage( treeViewPage ); treeViewPage.createControl( getPageBook( ) ); } return new PageRec( part, treeViewPage );
	protected PageRec doCreatePage( IWorkbenchPart part )	{//		if ( part instanceof AbstractMultiPageEditor )//		{			IEditorPart editor = UIUtil.getActiveEditor( true );			if ( editor != null )			{				Object fileAdapter = editor.getEditorInput( )						.getAdapter( IFile.class );				LibraryExplorerTreeViewPage page = getPage( fileAdapter, editor );				initPage( page );				page.createControl( getPageBook( ) );				return new PageRec( part, page );			}//		}		return null;	}