use of org.eclipse.core.databinding.observable.value.ValueChangeEvent in project jbosstools-openshift by jbosstools.
the class BaseConnectionEditor method addSelectedConnectionChangedListener.
private IValueChangeListener addSelectedConnectionChangedListener(final IObservableValue selectedConnection, final DataBindingContext dbc) {
IValueChangeListener listener = new IValueChangeListener() {
@Override
public void handleValueChange(ValueChangeEvent event) {
onSelectedConnectionChanged(selectedConnection);
DataBindingUtils.validateTargetsToModels(dbc);
}
};
selectedConnection.addValueChangeListener(listener);
return listener;
}
Aggregations