use of org.jkiss.dbeaver.runtime.properties.PropertySourceCustom in project dbeaver by dbeaver.
the class PrefPageDataFormat method reloadFormatter.
private void reloadFormatter() {
DataFormatterDescriptor formatterDescriptor = getCurrentFormatter();
if (formatterDescriptor == null) {
return;
}
Map<String, Object> formatterProps = profileProperties.get(formatterDescriptor.getId());
Map<String, Object> defaultProps = formatterDescriptor.getSample().getDefaultProperties(localeSelector.getSelectedLocale());
propertySource = new PropertySourceCustom(formatterDescriptor.getProperties(), formatterProps);
propertySource.setDefaultValues(defaultProps);
propertiesControl.loadProperties(propertySource);
reloadSample();
}
use of org.jkiss.dbeaver.runtime.properties.PropertySourceCustom in project dbeaver by dbeaver.
the class DriverEditDialog method createParametersTab.
private void createParametersTab(TabFolder group) {
Composite paramsGroup = new Composite(group, SWT.NONE);
paramsGroup.setLayout(new GridLayout(1, false));
parametersEditor = new PropertyTreeViewer(paramsGroup, SWT.BORDER);
driverPropertySource = new PropertySourceCustom(driver.getProviderDescriptor().getDriverProperties(), driver.getDriverParameters());
driverPropertySource.addDefaultValues(driver.getDefaultDriverParameters());
parametersEditor.loadProperties(driverPropertySource);
TabItem paramsTab = new TabItem(group, SWT.NONE);
paramsTab.setText(UIConnectionMessages.dialog_edit_driver_tab_name_advanced_parameters);
paramsTab.setToolTipText(UIConnectionMessages.dialog_edit_driver_tab_tooltip_advanced_parameters);
paramsTab.setControl(paramsGroup);
}
Aggregations