return this.emptyPage;
}
public void refresh()
{
IContentOutlinePage page = this.editor.getContentOutlineForActivePage();
if( page == null )
{
page = getEmptyPage();
}
if( this.currentPage != null )
{
this.currentPage.removeSelectionChangedListener( this );
this.pageToPageSite.get( this.currentPage ).deactivate();
}
page.addSelectionChangedListener( this );
this.currentPage = page;
if( this.pagebook == null )
{
return;
}
Control control = page.getControl();
final SubPageSite site;
if( control == null || control.isDisposed() )
{
site = new SubPageSite( getSite() );
this.pageToPageSite.put( page, site );
if( page instanceof IPageBookViewPage )
{
try
{
( (IPageBookViewPage) page ).init( site );
}
catch( PartInitException e )
{
throw new RuntimeException( e );
}
}
page.createControl( this.pagebook );
control = page.getControl();
}
else
{
site = this.pageToPageSite.get( this.currentPage );
}