if( oldPageComposite != null )
{
oldPageComposite.setVisible( false );
}
final PropertiesViewPagePart pagePart = visiblePages.get( newSelectionIndex );
SapphirePropertySheetPage.this.part.setSelectedPage( pagePart );
if( newPageComposite == null )
{
newPageComposite = new Composite( tabbedPropertiesComposite.getTabComposite(), SWT.NO_FOCUS );
newPageComposite.setVisible( false );
final FormData data = new FormData();
data.top = new FormAttachment( 0, 0 );
data.bottom = new FormAttachment( 100, 0 );
data.left = new FormAttachment( 0, 0 );
data.right = new FormAttachment( 100, 0 );
newPageComposite.setLayoutData( data );
newPageComposite.setLayout( glayout( 2, 5, 5, 10, 10 ) );
pagePart.createPresentation( null, newPageComposite ).render();
pageComposites[ newSelectionIndex ] = newPageComposite;
}
newPageComposite.moveAbove( null );