提交 302073ed 编写于 作者: S Serge Rider

Connection name gen fix (get rid of driver category)

上级 f11558a4
......@@ -227,11 +227,7 @@ class ConnectionPageGeneral extends ConnectionWizardPage {
while (st.hasMoreTokens()) {
newName = st.nextToken();
}
if (!CommonUtils.isEmpty(settings.getDriver().getCategory())) {
newName = settings.getDriver().getCategory() + " - " + newName; //$NON-NLS-1$
} else {
newName = settings.getDriver().getName() + " - " + newName; //$NON-NLS-1$
}
newName = settings.getDriver().getName() + " - " + newName; //$NON-NLS-1$
newName = CommonUtils.truncateString(newName, 50);
}
......
......@@ -21,7 +21,7 @@ public class SQLContextTypeDriver extends SQLContextTypeAbstract {
{
super(
getTypeId(driver),
CommonUtils.isEmpty(driver.getCategory()) ? driver.getName() : driver.getCategory());
driver.getName());
}
public static String getTypeId(DBPDriver driver)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册