Search in sources :

Example 1 with BindingException

use of org.pentaho.ui.xul.binding.BindingException in project data-access by pentaho.

the class DatasourceModel method setSelectedRelationalConnection.

@Bindable
public void setSelectedRelationalConnection(IDatabaseConnection value) {
    try {
        IDatabaseConnection previousValue = this.selectedRelationalConnection;
        this.selectedRelationalConnection = value;
        if (value != null) {
            this.firePropertyChange("selectedRelationalConnection", previousValue, value);
            validate();
        }
    } catch (BindingException e) {
    // ignore since any binding issues with datasource parameters will be more obviously caught elsewhere
    }
}
Also used : IDatabaseConnection(org.pentaho.database.model.IDatabaseConnection) BindingException(org.pentaho.ui.xul.binding.BindingException) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Aggregations

IDatabaseConnection (org.pentaho.database.model.IDatabaseConnection)1 BindingException (org.pentaho.ui.xul.binding.BindingException)1 Bindable (org.pentaho.ui.xul.stereotype.Bindable)1