private Button createCheckbox(Composite parent, String text, String value, String property) { Button button = new Button(parent, SWT.CHECK); button.setText(text); button.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true)); synchHelper2.synchCheckbox(button, value, property, null); return button; }
private void handleSelectNone() { List interfaces = (List) model.getProperty(INTERFACES); if (interfaces == null) { interfaces = new ArrayList(); model.setProperty(INTERFACES, interfaces); } interfaces.removeAll(Arrays.asList(LISTENER_INTERFACES)); synchHelper2.synchUIWithModel(INTERFACES, DataModelEvent.VALUE_CHG); model.notifyPropertyChange(INTERFACES, DataModelEvent.VALUE_CHG); }
private void handleSelectAll() { List interfaces = (List) model.getProperty(INTERFACES); if (interfaces == null) { interfaces = new ArrayList(); model.setProperty(INTERFACES, interfaces); } for (String iface : LISTENER_INTERFACES) { if (!interfaces.contains(iface)) { interfaces.add(iface); } } synchHelper2.synchUIWithModel(INTERFACES, DataModelEvent.VALUE_CHG); model.notifyPropertyChange(INTERFACES, DataModelEvent.VALUE_CHG); }
@Override protected void enter() { super.enter(); synchHelper2.synchUIWithModel(INTERFACES, DataModelEvent.VALUE_CHG); }