提交 50401cd6 编写于 作者: S Serge Rider

#7456 Set active - do not show for active objects


Former-commit-id: 009ccc96
上级 6eac4ab0
......@@ -238,8 +238,8 @@ public class NavigatorUtils {
DBCExecutionContext defaultContext = dataSource.getDefaultInstance().getDefaultContext(new VoidProgressMonitor(), true);
DBCExecutionContextDefaults contextDefaults = defaultContext.getContextDefaults();
if (contextDefaults != null) {
if ((selectedObject instanceof DBSCatalog && contextDefaults.supportsCatalogChange()) ||
(selectedObject instanceof DBSSchema && contextDefaults.supportsSchemaChange()))
if ((selectedObject instanceof DBSCatalog && contextDefaults.supportsCatalogChange() && contextDefaults.getDefaultCatalog() != selectedObject) ||
(selectedObject instanceof DBSSchema && contextDefaults.supportsSchemaChange() && contextDefaults.getDefaultSchema() != selectedObject))
{
addSetActive = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册