use of org.jkiss.dbeaver.model.app.DBPDataFormatterRegistry in project dbeaver by serge-rider.
the class StreamConsumerPageSettings method reloadFormatProfiles.
private void reloadFormatProfiles() {
DBPDataFormatterRegistry registry = DBWorkbench.getPlatform().getDataFormatterRegistry();
formatProfilesCombo.removeAll();
formatProfilesCombo.add(DTMessages.data_transfer_wizard_settings_listbox_formatting_item_default);
for (DBDDataFormatterProfile profile : registry.getCustomProfiles()) {
formatProfilesCombo.add(profile.getProfileName());
}
final StreamConsumerSettings settings = getWizard().getPageSettings(this, StreamConsumerSettings.class);
DBDDataFormatterProfile formatterProfile = settings.getFormatterProfile();
if (formatterProfile != null) {
if (!UIUtils.setComboSelection(formatProfilesCombo, formatterProfile.getProfileName())) {
formatProfilesCombo.select(0);
}
} else {
formatProfilesCombo.select(0);
}
}
Aggregations