ocViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
ocViewer.setContentProvider( new ArrayContentProvider() );
ocViewer.setLabelProvider( new LabelProvider() );
if ( EntryPropertyPage.getEntry( getElement() ) != null )
{
IEntry entry = EntryPropertyPage.getEntry( getElement() );
if ( entry != null )
{
Object[] ocds = entry.getSubschema().getObjectClassNames();
ocViewer.setInput( ocds );
}
}
this.ocTab = new TabItem( this.tabFolder, SWT.NONE );
this.ocTab.setText( "Object Classes" );
this.ocTab.setControl( ocComposite );
Composite atComposite = new Composite( this.tabFolder, SWT.NONE );
atComposite.setLayoutData( new RowData( 10, 10 ) );
GridLayout atLayout = new GridLayout();
atComposite.setLayout( atLayout );
ListViewer atViewer = new ListViewer( atComposite );
atViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
atViewer.setContentProvider( new ArrayContentProvider() );
atViewer.setLabelProvider( new LabelProvider() );
if ( EntryPropertyPage.getEntry( getElement() ) != null )
{
IEntry entry = EntryPropertyPage.getEntry( getElement() );
if ( entry != null )
{
Object[] atds = entry.getSubschema().getAllAttributeNames();
atViewer.setInput( atds );
}
}
this.atTab = new TabItem( this.tabFolder, SWT.NONE );
this.atTab.setText( "Attribute Types" );