mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch
'origin/GP-1155_dev747368_set_external_program' (Closes #3245)
This commit is contained in:
commit
94c80f0617
1 changed files with 9 additions and 7 deletions
|
@ -47,6 +47,7 @@ import ghidra.util.task.TaskMonitor;
|
|||
public class ProjectDataTreePanel extends JPanel {
|
||||
|
||||
private static final String EXPANDED_PATHS_SEPARATOR = ":";
|
||||
private static final int MAX_PROJECT_SIZE_TO_SEARCH = 1000;
|
||||
|
||||
private DataTree tree;
|
||||
private ProjectData projectData;
|
||||
|
@ -488,9 +489,9 @@ public class ProjectDataTreePanel extends JPanel {
|
|||
* @param s node name
|
||||
*/
|
||||
public void findAndSelect(String s) {
|
||||
if (projectData.getFileCount() < MAX_PROJECT_SIZE_TO_SEARCH) {
|
||||
tree.expandTree(root);
|
||||
Iterator<GTreeNode> it = root.iterator(true);
|
||||
while (it.hasNext()) {
|
||||
for (Iterator<GTreeNode> it = root.iterator(true); it.hasNext();) {
|
||||
GTreeNode node = it.next();
|
||||
if (node.getName().equals(s)) {
|
||||
tree.setSelectedNode(node);
|
||||
|
@ -498,6 +499,7 @@ public class ProjectDataTreePanel extends JPanel {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
// Inner Classes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue