Composite controlsComposite = new Composite( this.tabFolder, SWT.NONE );
controlsComposite.setLayoutData( new RowData( 10, 10 ) );
GridLayout controlsLayout = new GridLayout();
controlsComposite.setLayout( controlsLayout );
ListViewer controlsViewer = new ListViewer( controlsComposite );
controlsViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
controlsViewer.setContentProvider( new ArrayContentProvider() );
controlsViewer.setLabelProvider( new LabelProvider() );
if ( connection != null && connection.getRootDSE() != null )
{
String[] supportedControls = ( ( RootDSE ) connection.getRootDSE() ).getSupportedControls();
addDescritionsToOIDs( supportedControls );
controlsViewer.setInput( supportedControls );
}
this.controlsTab = new TabItem( this.tabFolder, SWT.NONE );
this.controlsTab.setText( "Controls" );
this.controlsTab.setControl( controlsComposite );
Composite extensionComposite = new Composite( this.tabFolder, SWT.NONE );
extensionComposite.setLayoutData( new RowData( 10, 10 ) );
GridLayout extensionLayout = new GridLayout();
extensionComposite.setLayout( extensionLayout );
ListViewer extensionViewer = new ListViewer( extensionComposite );
extensionViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
extensionViewer.setContentProvider( new ArrayContentProvider() );
extensionViewer.setLabelProvider( new LabelProvider() );
if ( connection != null && connection.getRootDSE() != null )
{
String[] supportedExtensions = ( ( RootDSE ) connection.getRootDSE() ).getSupportedExtensions();
addDescritionsToOIDs( supportedExtensions );
extensionViewer.setInput( supportedExtensions );
}
this.extensionsTab = new TabItem( this.tabFolder, SWT.NONE );
this.extensionsTab.setText( "Extensions" );
this.extensionsTab.setControl( extensionComposite );
Composite featureComposite = new Composite( this.tabFolder, SWT.NONE );
featureComposite.setLayoutData( new RowData( 10, 10 ) );
GridLayout featureLayout = new GridLayout();
featureComposite.setLayout( featureLayout );
ListViewer featureViewer = new ListViewer( featureComposite );
featureViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
featureViewer.setContentProvider( new ArrayContentProvider() );
featureViewer.setLabelProvider( new LabelProvider() );
if ( connection != null && connection.getRootDSE() != null )
{
String[] supportedFeatures = ( ( RootDSE ) connection.getRootDSE() ).getSupportedFeatures();
addDescritionsToOIDs( supportedFeatures );
featureViewer.setInput( supportedFeatures );
}
this.featuresTab = new TabItem( this.tabFolder, SWT.NONE );
this.featuresTab.setText( "Features" );
this.featuresTab.setControl( featureComposite );