Issue #208 removing check boxes so they will not be out of sync

Former-commit-id: 3eff5c38fe6a20aa3c0dd02e84a5f1a0e6340ef4
This commit is contained in:
Matt Nash 2012-01-27 08:10:04 -06:00
parent f7dca45767
commit d41eef10e3

View file

@ -134,18 +134,18 @@ public class MenuItemComposite extends Composite {
secondItem.setLayoutData(gd);
}
// check boxes
else if (item.getStyle() == SWT.CHECK) {
// if (item.getStyle() == SWT.CHECK) {
firstItem = new Button(this, SWT.CHECK);
((Button) firstItem).setSelection(item.getSelection());
GridData gd = new GridData(18, 18);
firstItem.setLayoutData(gd);
secondItem = new Label(this, labelStyle);
((Label) secondItem).setText(labels[0]);
gd = new GridData(SWT.LEFT, SWT.CENTER, true, true);
secondItem.setLayoutData(gd);
}
// else if (item.getStyle() == SWT.CHECK) {
// // if (item.getStyle() == SWT.CHECK) {
// firstItem = new Button(this, SWT.CHECK);
// ((Button) firstItem).setSelection(item.getSelection());
// GridData gd = new GridData(18, 18);
// firstItem.setLayoutData(gd);
//
// secondItem = new Label(this, labelStyle);
// ((Label) secondItem).setText(labels[0]);
// gd = new GridData(SWT.LEFT, SWT.CENTER, true, true);
// secondItem.setLayoutData(gd);
// }
// submenus (with arrows)
else if (item.getStyle() == SWT.CASCADE) {
firstItem = new Label(this, SWT.PUSH);