label = new Label(container, SWT.NONE);
label.setText("Options:");
GridData chkGridData = new GridData(GridData.FILL_HORIZONTAL);
_chkCopyLocalContent = new Button(container, SWT.CHECK);
_chkCopyLocalContent.setText("copy local content");
_chkCopyLocalContent.setLayoutData(chkGridData);
_chkCopyLocalContent.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
if (_chkCopyLocalContent.getSelection()) {
_chkIncludeACL.setEnabled(true);
} else {
_chkIncludeACL.setEnabled(false);
}
performValidation();
}
public void widgetDefaultSelected(SelectionEvent e) {
if (_chkCopyLocalContent.getSelection()) {
_chkIncludeACL.setEnabled(true);
} else {
_chkIncludeACL.setEnabled(false);
}
performValidation();
}
});
Label filler = new Label(container, SWT.NONE);
_chkIncludeACL = new Button(container, SWT.CHECK);
_chkIncludeACL.setText("include ACL on content copy");
_chkIncludeACL.setLayoutData(GridDataFactory.copyData(chkGridData));
_chkIncludeACL.addSelectionListener(this);
_chkCopyLocalContent.setSelection(true);