layoutData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_BEGINNING);
layoutData.widthHint = 80;
dateLabel.setLayoutData(layoutData);
dateLabel.setFont(parent.getFont());
calendar = new DateTime(composite, SWT.CALENDAR);
layoutData = new GridData(GridData.FILL_VERTICAL | GridData.HORIZONTAL_ALIGN_BEGINNING);
layoutData.horizontalSpan = 1;
calendar.setLayoutData(layoutData);
calendar.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
updateSelection();
}
});
Label timeLabel = new Label(composite, SWT.WRAP);
timeLabel.setText("Time:");
layoutData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_BEGINNING);
layoutData.widthHint = 80;
timeLabel.setLayoutData(layoutData);
timeLabel.setFont(parent.getFont());
time = new DateTime(composite, SWT.TIME);
layoutData = new GridData(GridData.FILL_VERTICAL | GridData.HORIZONTAL_ALIGN_BEGINNING);
layoutData.horizontalSpan = 1;
time.setLayoutData(layoutData);
time.addSelectionListener(new SelectionAdapter() {
@Override