refreshView(node != null ? node : ((ProjectController) getParent())
.getCurrentDataNode());
}
});
BindingBuilder builder = new BindingBuilder(
getApplication().getBindingFactory(),
this);
localDataSourceBinding = builder.bindToComboSelection(
view.getLocalDataSources(),
"parent.dataNodePreferences.localDataSource",
NO_LOCAL_DATA_SOURCE);
// use delegate for the rest of them
builder.setDelegate(nodeChangeProcessor);
bindings = new ObjectBinding[3];
bindings[0] = builder.bindToTextField(view.getDataNodeName(), "nodeName");
bindings[1] = builder.bindToComboSelection(view.getFactories(), "factoryName");
bindings[2] = builder.bindToComboSelection(
view.getSchemaUpdateStrategy(),
"schemaUpdateStrategy");
// one way bindings
builder
.bindToAction(
view.getConfigLocalDataSources(),
"dataSourceConfigAction()");
}