gridData = new GridData(GridData.FILL_BOTH);
gridData.horizontalSpan = 1;
label.setLayoutData(gridData);
Messages.setLanguageText(label, msg_text);
final Button checkBox = new Button(shell, SWT.CHECK);
checkBox.setSelection(false);
gridData = new GridData(GridData.FILL_BOTH);
gridData.horizontalSpan = 2;
checkBox.setLayoutData(gridData);
checkboxes[i] = checkBox;
for ( int j=0;j<tracker_networks.length;j++ ){
if ( tracker_networks[j] == network ){
checkBox.setSelection( true );
}
}
}
// line
labelSeparator = new Label(shell,SWT.SEPARATOR | SWT.HORIZONTAL);
gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.horizontalSpan = 3;
labelSeparator.setLayoutData(gridData);
// buttons
new Label(shell,SWT.NULL);
Button bOk = new Button(shell,SWT.PUSH);
bOk.setText(MessageText.getString("Button.ok"));
gridData = new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END | GridData.HORIZONTAL_ALIGN_FILL);
gridData.grabExcessHorizontalSpace = true;
gridData.widthHint = 70;
bOk.setLayoutData(gridData);
bOk.addListener(SWT.Selection,new Listener() {
public void handleEvent(Event e) {
close(true);
}
});
Button bCancel = new Button(shell,SWT.PUSH);
bCancel.setText(MessageText.getString("Button.cancel"));
gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
gridData.grabExcessHorizontalSpace = false;
gridData.widthHint = 70;
bCancel.setLayoutData(gridData);
bCancel.addListener(SWT.Selection,new Listener() {
public void handleEvent(Event e) {
close(false);
}
});