Merge "Issue #208 removing check boxes so they will not be out of sync" into 10-Tech_Blocked
Former-commit-id:37c4b75a4b
[formerly 3d8687bfce3b67e638869de4c45463e96ba9b187] Former-commit-id:c77b9d28e4
This commit is contained in:
commit
5959333d39
1 changed files with 12 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue