提交 b0634fc0 编写于 作者: J jurgen

Embedded drivers support

上级 3eca971d
......@@ -1167,6 +1167,7 @@ public class DriverDescriptor extends AbstractDescriptor implements DBPDriver
xml.addAttribute(RegistryConstants.ATTR_CATEGORY, this.getCategory());
}
xml.addAttribute(RegistryConstants.ATTR_CUSTOM, this.isCustom());
xml.addAttribute(RegistryConstants.ATTR_EMBEDDED, this.isEmbedded());
xml.addAttribute(RegistryConstants.ATTR_NAME, this.getName());
xml.addAttribute(RegistryConstants.ATTR_CLASS, this.getDriverClassName());
if (!CommonUtils.isEmpty(this.getSampleURL())) {
......@@ -1339,6 +1340,7 @@ public class DriverDescriptor extends AbstractDescriptor implements DBPDriver
curDriver.setDriverClassName(atts.getValue(RegistryConstants.ATTR_CLASS));
curDriver.setSampleURL(atts.getValue(RegistryConstants.ATTR_URL));
curDriver.setDriverDefaultPort(atts.getValue(RegistryConstants.ATTR_PORT));
curDriver.setEmbedded(CommonUtils.getBoolean(atts.getValue(RegistryConstants.ATTR_EMBEDDED), false));
}
curDriver.setCustomDriverLoader(CommonUtils.getBoolean(atts.getValue(RegistryConstants.ATTR_CUSTOM_DRIVER_LOADER), false));
curDriver.setModified(true);
......
......@@ -245,9 +245,7 @@ public class DriverEditDialog extends HelpEnabledDialog
}
embeddedDriverCheck = UIUtils.createLabelCheckbox(propsGroup, "Embedded", "Embedded driver", driver.isEmbedded());
if (isReadOnly) {
embeddedDriverCheck.setEnabled(false);
}
embeddedDriverCheck.setEnabled(!isReadOnly);
}
{
......@@ -616,7 +614,9 @@ public class DriverEditDialog extends HelpEnabledDialog
changeLibContent();
parametersEditor.loadProperties(driverPropertySource);
connectionPropertiesEditor.loadProperties(connectionPropertySource);
clientHomesPanel.loadHomes(driver);
if (clientHomesPanel != null) {
clientHomesPanel.loadHomes(driver);
}
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册