mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test fixed
This commit is contained in:
@@ -314,6 +314,15 @@ public class ScopeTreeViewPanel extends JPanel implements JDOMExternalizable, Di
|
||||
}
|
||||
return myDeletePSIElementProvider;
|
||||
}
|
||||
if (LangDataKeys.PASTE_TARGET_PSI_ELEMENT.is(dataId)) {
|
||||
final TreePath selectionPath = myTree.getSelectionPath();
|
||||
if (selectionPath != null) {
|
||||
final Object pathComponent = selectionPath.getLastPathComponent();
|
||||
if (pathComponent instanceof DirectoryNode) {
|
||||
return ((DirectoryNode)pathComponent).getTargetDirectory();
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -125,6 +125,10 @@ public class DirectoryNode extends PackageDependenciesNode {
|
||||
}
|
||||
|
||||
public PsiElement getPsiElement() {
|
||||
return myDirectory;
|
||||
}
|
||||
|
||||
public PsiDirectory getTargetDirectory() {
|
||||
DirectoryNode dirNode = this;
|
||||
while (dirNode.getCompactedDirNode() != null) {
|
||||
dirNode = dirNode.getCompactedDirNode();
|
||||
|
||||
Reference in New Issue
Block a user