ILibraryProvider provider = (ILibraryProvider) editor.getAdapter( ILibraryProvider.class ); if( provider != null )
if(editor !=null)
	protected PageRec doCreatePage( IWorkbenchPart part )	{		if ( part instanceof AbstractMultiPageLayoutEditor )		{			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 );			}		}		return null;	}