autoOID.addSelectionListener( new SelectionAdapter()
{
public void widgetSelected( SelectionEvent e )
{
IEclipsePreferences prefs = new ConfigurationScope().getNode( Application.PLUGIN_ID );
prefs.putBoolean( GeneralPreferencePage.AUTO_OID, autoOID.getSelection() );
if ( autoOID.getSelection() )
{
String temp = prefs.get( GeneralPreferencePage.COMPANY_OID, "1.2.3.4.5.6" ); //$NON-NLS-1$
oidField.setText( temp + "." ); //$NON-NLS-1$
}
else
{
oidField.setText( "" ); //$NON-NLS-1$
}
}
} );
IEclipsePreferences prefs = new ConfigurationScope().getNode( Application.PLUGIN_ID );
boolean auto_oid = prefs.getBoolean( GeneralPreferencePage.AUTO_OID, true );
autoOID.setSelection( auto_oid );
Label label = new Label( container, SWT.NULL );