// Usage
Label usageLabel = new Label( superiorUsageGroup, SWT.NONE );
usageLabel.setText( Messages.getString( "NewAttributeTypeContentWizardPage.Usage" ) ); //$NON-NLS-1$
Combo usageCombo = new Combo( superiorUsageGroup, SWT.READ_ONLY );
usageCombo.setLayoutData( new GridData( SWT.NONE, SWT.NONE, false, false, 2, 1 ) );
usageComboViewer = new ComboViewer( usageCombo );
usageComboViewer.setLabelProvider( new LabelProvider() );
usageComboViewer.setContentProvider( new ArrayContentProvider() );
usageComboViewer
.setInput( new String[]
{
Messages.getString( "NewAttributeTypeContentWizardPage.DirectoryOperation" ), Messages.getString( "NewAttributeTypeContentWizardPage.DistributedOperation" ), Messages.getString( "NewAttributeTypeContentWizardPage.DSAOperation" ), Messages.getString( "NewAttributeTypeContentWizardPage.UserApplications" ) } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
usageComboViewer.setSelection( new StructuredSelection( Messages
.getString( "NewAttributeTypeContentWizardPage.UserApplications" ) ) ); //$NON-NLS-1$
// Syntax Group
Group syntaxGroup = new Group( composite, SWT.NONE );
syntaxGroup.setText( Messages.getString( "NewAttributeTypeContentWizardPage.Syntax" ) ); //$NON-NLS-1$
syntaxGroup.setLayout( new GridLayout( 2, false ) );
syntaxGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
// Syntax
Label syntaxLabel = new Label( syntaxGroup, SWT.NONE );
syntaxLabel.setText( Messages.getString( "NewAttributeTypeContentWizardPage.SyntaxColon" ) ); //$NON-NLS-1$
Combo syntaxCombo = new Combo( syntaxGroup, SWT.READ_ONLY );
syntaxCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
syntaxComboViewer = new ComboViewer( syntaxCombo );
syntaxComboViewer.setContentProvider( new ArrayContentProvider() );
syntaxComboViewer.setLabelProvider( new LabelProvider()
{
public String getText( Object element )
{