public void loadData(BindingData dataModel) {
int idx = Arrays.asList(runtimeApiSettingCombo.getItems()).indexOf(dataModel.getRuntimeApiName());
runtimeApiSettingCombo.select( idx );
+
+ if( idx == 3 ){
+ idComposite.setVisible(true);
+ addressbookID.setText(dataModel.getRuntimeApiAddressBookID());
+ }
+
JsonObject json = gson.fromJson(dataModel.getJsonData(), JsonObject.class );
Helper.makeTreeItem(json, parentDataTree, null, false);
}
public void widgetSelected( SelectionEvent event ) {
BindingData dataModel = currentSubPage.getData();
- dataModel.setModelType( dataTypeCombo.getText().toUpperCase() );
+ dataModel.setModelType( dataTypeCombo.getText() );
dataModel.setUpdateOnStartup( updateOnStartUp.getSelection() );
dataModel.setSourceName( dataSourceTreeItem.getText() );
BindingData dataModel = treeItemData.getModel();
if (dataModel != null) {
-
+ dataTypeCombo.select( Arrays.asList(sourceTypes).indexOf( dataModel.getModelType() ) );
initByType();
currentSubPage.loadData( dataModel );
}