mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Merge remote-tracking branch
'origin/GP-5324_dev747368_bad_path_in_import' (Closes #7267)
This commit is contained in:
commit
6b0a707850
1 changed files with 9 additions and 4 deletions
|
@ -27,6 +27,8 @@ import javax.swing.*;
|
|||
import javax.swing.tree.TreePath;
|
||||
import javax.swing.tree.TreeSelectionModel;
|
||||
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
|
||||
import docking.*;
|
||||
import docking.action.DockingAction;
|
||||
import docking.action.DockingActionIf;
|
||||
|
@ -544,9 +546,13 @@ public class FSBComponentProvider extends ComponentProviderAdapter
|
|||
Swing.runLater(() -> openWithTarget.open(List.of(df)));
|
||||
return;
|
||||
}
|
||||
ImporterUtilities.showImportSingleFileDialog(fullFsrl, null,
|
||||
fileNode.getFormattedTreePath(), plugin.getTool(), openWithTarget.getPm(),
|
||||
monitor);
|
||||
|
||||
String suggestedPath =
|
||||
FilenameUtils.getFullPathNoEndSeparator(fileNode.getFormattedTreePath())
|
||||
.replaceAll(":/", "/");
|
||||
|
||||
ImporterUtilities.showImportSingleFileDialog(fullFsrl, null, suggestedPath,
|
||||
plugin.getTool(), openWithTarget.getPm(), monitor);
|
||||
}
|
||||
catch (IOException | CancelledException e) {
|
||||
// fall thru
|
||||
|
@ -581,5 +587,4 @@ public class FSBComponentProvider extends ComponentProviderAdapter
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue