mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch 'origin/GP-3281_ghidragon_fix_to_allow_mulitple_file_archives_with_same_name'
This commit is contained in:
@@ -222,8 +222,8 @@ public class ArchiveRootNode extends DataTypeTreeNode {
|
||||
int index = Collections.binarySearch(allChildrenList, node);
|
||||
if (index < 0) {
|
||||
index = -index - 1;
|
||||
addNode(index, node);
|
||||
}
|
||||
addNode(index, node);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,10 +30,12 @@ public class FileArchiveNode extends ArchiveNode {
|
||||
new GIcon("icon.plugin.datatypes.tree.node.archive.file.checked.out.exclusive");
|
||||
|
||||
FileArchive fileArchive; // casted reference for easy access
|
||||
String fullName;
|
||||
|
||||
public FileArchiveNode(FileArchive archive, ArrayPointerFilterState filterState) {
|
||||
super(archive, filterState);
|
||||
this.fileArchive = archive;
|
||||
fullName = archive.getName() + ": " + archive.getFile().getAbsolutePath();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -58,6 +60,16 @@ public class FileArchiveNode extends ArchiveNode {
|
||||
return "[Unsaved New Archive]";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return fullName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplayText() {
|
||||
return archive.getName();
|
||||
}
|
||||
|
||||
public boolean hasWriteLock() {
|
||||
return fileArchive.hasWriteLock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user