未验证 提交 ae8b9f3a 编写于 作者: S Serge Rider 提交者: GitHub

Merge pull request #11271 from dbeaver/data-transfer-mapping-selector-fix#11115

#11115 Fix mapping type selector
......@@ -528,13 +528,18 @@ public class DatabaseConsumerPageMapping extends ActiveWizardPage<DataTransferWi
@Override
protected CellEditor getCellEditor(Object element) {
List<String> mappingTypes = new ArrayList<>();
mappingTypes.add(DatabaseMappingType.skip.name());
DatabaseMappingObject mapping = (DatabaseMappingObject) element;
DatabaseMappingType mappingType = mapping.getMappingType();
if (mappingType != DatabaseMappingType.skip) {
mappingTypes.add(mappingType.name());
}
if (mapping instanceof DatabaseMappingAttribute) {
mappingTypes.add(((DatabaseMappingAttribute) mapping).getParent().getMappingType().name());
} else {
mappingTypes.add(mapping.getMappingType().name());
DatabaseMappingType parentMapping = ((DatabaseMappingAttribute) mapping).getParent().getMappingType();
if (mappingType != parentMapping && parentMapping == DatabaseMappingType.create) {
mappingTypes.add(DatabaseMappingType.create.name());
}
}
mappingTypes.add(DatabaseMappingType.skip.name());
return new CustomComboBoxCellEditor(
mappingViewer,
mappingViewer.getTree(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册