提交 870a4eb5 编写于 作者: S serge-rider

Navigator: new object open fix

Former-commit-id: e38ddf53
上级 ab0ef299
......@@ -139,10 +139,12 @@ public class NavigatorHandlerObjectOpen extends NavigatorHandlerObjectBase imple
openConnectionEditor(workbenchWindow, dataSourceContainer);
return null;
}
/*
if (!selectedNode.isPersisted()) {
log.debug("Node '" + selectedNode.getNodeName() + "' s not persisted. Open not possible.");
return null;
}
*/
try {
String defaultFolderId = null;
if (selectedNode instanceof DBNDatabaseFolder && !(selectedNode.getParentNode() instanceof DBNDatabaseFolder) && selectedNode.getParentNode() instanceof DBNDatabaseNode) {
......
......@@ -212,7 +212,11 @@ public class MySQLView extends MySQLTableBase
@Property(hidden = true, editable = true, updatable = true, order = -1)
public String getObjectDefinitionText(DBRProgressMonitor monitor, Map<String, Object> options) throws DBException
{
return getAdditionalInfo(monitor).getDefinition();
String definition = getAdditionalInfo(monitor).getDefinition();
if (definition == null && !isPersisted()) {
return "";
}
return definition;
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册