提交 22b6042c 编写于 作者: J jurgen

ERD dnd fix. ERD tooltip fix.

上级 a86ee36a
......@@ -46,7 +46,7 @@ public class ERDEditorInput extends ProjectFileEditorInput implements IPersistab
@Override
public String getToolTipText()
{
return "ER Diagram";
return diagramName;
}
@Override
......
......@@ -35,7 +35,6 @@ import org.jkiss.dbeaver.ui.UIUtils;
public class DBNDiagram extends DBNResource
{
private Image image;
private EntityDiagram diagram;
public DBNDiagram(DBNNode parentNode, IResource resource, DBPResourceHandler handler) throws DBException, CoreException
{
......@@ -58,8 +57,4 @@ public class DBNDiagram extends DBNResource
return image;
}
public EntityDiagram getDiagram()
{
return diagram;
}
}
......@@ -70,17 +70,4 @@ public class DBNDiagramFolder extends DBNResource
return otherNode instanceof DBNDiagram || super.supportsDrop(otherNode);
}
@Override
public void dropNodes(Collection<DBNNode> nodes) throws DBException
{
for (DBNNode node : nodes) {
if (node instanceof DBNDiagram) {
ERDResourceHandler.createDiagram(
((DBNDiagram) node).getDiagram(),
node.getNodeName(),
(IFolder) getResource(),
null);
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册