public void widgetSelected( SelectionEvent ev ) { e.setValue( btn.getSelection() ); } } );
Button lastbtn = closeAllFilesBtn; for ( final GUIOption<Object> e : PropsUI.getInstance().getRegisteredEditableComponents() ) { if ( e.getLabelText() == null ) { continue; wlMaxNrLogLines1.setText( e.getLabelText() ); props.setLook( wlMaxNrLogLines1 ); FormData fdlMaxNrLogLinesTemp = new FormData(); fdlMaxNrLogLinesTemp.top = new FormAttachment( refLabel, margin ); wlMaxNrLogLines1.setLayoutData( fdlMaxNrLogLinesTemp ); switch ( e.getType() ) { case TEXT_FIELD: // TODO: IMPLEMENT! break; final Button btn = new Button( wGeneralComp, SWT.CHECK ); props.setLook( btn ); btn.setSelection( new Boolean( e.getLastValue().toString() ).booleanValue() ); btn.setText( e.getLabelText() ); FormData btnData = new FormData(); btnData.left = new FormAttachment( middle, 0 );