use of org.jkiss.dbeaver.runtime.properties.PropertySourceCustom in project dbeaver by serge-rider.
the class StreamConsumerPageSettings method activatePage.
@Override
public void activatePage() {
final StreamConsumerSettings settings = getWizard().getPageSettings(this, StreamConsumerSettings.class);
DataTransferProcessorDescriptor processor = getWizard().getSettings().getProcessor();
propertySource = new PropertySourceCustom(processor.getProperties(), getWizard().getSettings().getProcessorProperties());
propsEditor.loadProperties(propertySource);
switch(settings.getLobExtractType()) {
case SKIP:
lobExtractType.select(EXTRACT_LOB_SKIP);
break;
case FILES:
lobExtractType.select(EXTRACT_LOB_FILES);
break;
case INLINE:
lobExtractType.select(EXTRACT_LOB_INLINE);
break;
}
switch(settings.getLobEncoding()) {
case BASE64:
lobEncodingCombo.select(LOB_ENCODING_BASE64);
break;
case HEX:
lobEncodingCombo.select(LOB_ENCODING_HEX);
break;
case BINARY:
lobEncodingCombo.select(LOB_ENCODING_BINARY);
break;
}
updatePageCompletion();
}
use of org.jkiss.dbeaver.runtime.properties.PropertySourceCustom in project dbeaver by serge-rider.
the class PrefPageDataFormat method reloadFormatter.
private void reloadFormatter() {
DataFormatterDescriptor formatterDescriptor = getCurrentFormatter();
if (formatterDescriptor == null) {
return;
}
Map<Object, Object> formatterProps = profileProperties.get(formatterDescriptor.getId());
Map<Object, 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 StreamPOIConsumerPageSettings method activatePage.
@Override
public void activatePage() {
final StreamConsumerSettings settings = getWizard().getPageSettings(this, StreamConsumerSettings.class);
DataTransferProcessorDescriptor processor = getWizard().getSettings().getProcessor();
propertySource = new PropertySourceCustom(processor.getProperties(), getWizard().getSettings().getProcessorProperties());
propsEditor.loadProperties(propertySource);
updatePageCompletion();
}
use of org.jkiss.dbeaver.runtime.properties.PropertySourceCustom in project dbeaver by dbeaver.
the class MockDataSettings method putGenerator.
private void putGenerator(AttributeGeneratorProperties generatorProperties, MockGeneratorDescriptor generator) {
generatorDescriptors.put(generator.getId(), generator);
generatorProperties.putGeneratorPropertySource(generator.getId(), new PropertySourceCustom(generator.getProperties(), null));
}
use of org.jkiss.dbeaver.runtime.properties.PropertySourceCustom in project dbeaver by serge-rider.
the class StreamProducerPageSettings method activatePage.
@Override
public void activatePage() {
// Initialize property editor
DataTransferProcessorDescriptor processor = getProducerProcessor();
DBPPropertyDescriptor[] properties = processor == null ? new DBPPropertyDescriptor[0] : processor.getProperties();
propertySource = new PropertySourceCustom(properties, getWizard().getSettings().getProcessorProperties());
propsEditor.loadProperties(propertySource);
// Init pipes
reloadPipes();
updatePageCompletion();
UIUtils.asyncExec(() -> UIUtils.packColumns(filesTable, true));
}
Aggregations