use of org.pentaho.ui.xul.stereotype.Bindable in project data-access by pentaho.
the class DatasourceModel method setDatasourceName.
@Bindable
public void setDatasourceName(String datasourceName) {
String previousVal = this.datasourceName;
this.datasourceName = datasourceName;
// we need to keep the datasource name in sync
if (domain != null) {
domain.setId(datasourceName);
LogicalModel model = domain.getLogicalModels().get(0);
String localeCode = domain.getLocales().get(0).getCode();
model.getName().setString(localeCode, datasourceName);
}
this.getModelInfo().setStageTableName(generateTableName());
// $NON-NLS-1$
this.firePropertyChange("datasourceName", previousVal, datasourceName);
validate();
}
Aggregations