提交 97a13468 编写于 作者: S serge-rider

CB-327 Extension nodes model redesign


Former-commit-id: adb37cc6
上级 1531780e
......@@ -291,6 +291,16 @@ public class DBNModel implements IResourceChangeListener {
}
}
}
} else if (nodePath.type == DBNNode.NodePathType.ext) {
DBNProject[] projects = root.getProjects();
if (ArrayUtils.isEmpty(projects)) {
throw new DBException("No projects in workspace");
}
if (projects.length > 1) {
throw new DBException("Multi-project workspace. Extension nodes not supported");
}
return findNodeByPath(monitor, nodePath,
projects[0], 0);
} else if (nodePath.type == DBNNode.NodePathType.other) {
return findNodeByPath(monitor, nodePath,
root, 0);
......
......@@ -43,6 +43,7 @@ public abstract class DBNNode implements DBPNamedObject, DBPNamedObjectLocalized
resource,
folder,
database,
ext,
other;
public String getPrefix() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册