提交 3eca971d 编写于 作者: J jurgen

Embedded drivers support

上级 24932a38
......@@ -554,6 +554,10 @@ public class DriverDescriptor extends AbstractDescriptor implements DBPDriver
return embedded;
}
public void setEmbedded(boolean embedded) {
this.embedded = embedded;
}
@Override
public boolean isAnonymousAccess()
{
......
......@@ -103,6 +103,7 @@ public class DriverEditDialog extends HelpEnabledDialog
private PropertySourceCustom driverPropertySource;
private PropertySourceCustom connectionPropertySource;
private ClientHomesPanel clientHomesPanel;
private Button embeddedDriverCheck;
//private Button anonymousCheck;
public DriverEditDialog(Shell shell, DriverDescriptor driver)
......@@ -242,6 +243,11 @@ public class DriverEditDialog extends HelpEnabledDialog
urlLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
}
embeddedDriverCheck = UIUtils.createLabelCheckbox(propsGroup, "Embedded", "Embedded driver", driver.isEmbedded());
if (isReadOnly) {
embeddedDriverCheck.setEnabled(false);
}
}
{
......@@ -598,6 +604,7 @@ public class DriverEditDialog extends HelpEnabledDialog
} else if (!CommonUtils.isEmpty(defaultCategory)) {
driverCategoryCombo.setText(defaultCategory);
}
embeddedDriverCheck.setSelection(driver.isEmbedded());
// anonymousCheck.setSelection(driver.isAnonymousAccess());
libList.clear();
for (DriverFileDescriptor lib : driver.getOrigFiles()) {
......@@ -632,6 +639,7 @@ public class DriverEditDialog extends HelpEnabledDialog
driver.setDriverClassName(driverClassText.getText());
driver.setSampleURL(driverURLText.getText());
driver.setDriverDefaultPort(driverPortText.getText());
driver.setEmbedded(embeddedDriverCheck.getSelection());
// driver.setAnonymousAccess(anonymousCheck.getSelection());
driver.setModified(true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册