mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
initial expansion in right tree
This commit is contained in:
@@ -307,9 +307,9 @@ public class DependenciesPanel extends JPanel {
|
||||
}
|
||||
|
||||
private Set<PsiFile> getSelectedScope(final Tree tree) {
|
||||
int[] rows = tree.getSelectionRows();
|
||||
if (rows == null || rows.length != 1) return EMPTY_FILE_SET;
|
||||
PackageDependenciesNode node = (PackageDependenciesNode)tree.getPathForRow(rows[0]).getLastPathComponent();
|
||||
TreePath[] paths = tree.getSelectionPaths();
|
||||
if (paths == null || paths.length != 1) return EMPTY_FILE_SET;
|
||||
PackageDependenciesNode node = (PackageDependenciesNode)paths[0].getLastPathComponent();
|
||||
if (node.isRoot()) return EMPTY_FILE_SET;
|
||||
Set<PsiFile> result = new HashSet<PsiFile>();
|
||||
node.fillFiles(result, !DependencyUISettings.getInstance().UI_FLATTEN_PACKAGES);
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package com.package1;
|
||||
|
||||
public class Class1 {
|
||||
public static void main(String[] args){
|
||||
Class2 class2;
|
||||
}
|
||||
private Class2 myClass;
|
||||
}
|
||||
@@ -72,6 +72,7 @@ public class DependenciesPanelTest extends TestSourceBasedTestCase{
|
||||
" -Production Classes\n" +
|
||||
" -" + myModule.getName() + "\n" +
|
||||
" -com.package1\n" +
|
||||
" Class2.java\n" +
|
||||
" Test Classes\n", true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user