this.setLayout(gridLayout); // Generated
button.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
if(calendar.getShell().isDisposed()) {
org.eclipse.swt.widgets.Shell s = new org.eclipse.swt.widgets.Shell(getShell());
calendar = new PopupCalendar(s, PopupCalendar.SHOWALL, locale);
}
if (!calendar.isOpen()) {
Control comp = (Control) e.getSource();
calendar.open(comp, SWT.RIGHT);