public Boolean get() {
return moduleList.getSelection() != null
&& (moduleList.getSelection().isSelected() || moduleList.getSelection().isValidToSelect());
}
});
toggle.bindText(new ReadOnlyBinding<String>() {
@Override
public String get() {
if (moduleList.getSelection() != null) {
if (moduleList.getSelection().isExplicitSelection()) {
return "Deactivate";