mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge branch 'GP-2644_ghidra_LinkedFolders'
This commit is contained in:
commit
f0a8af3e8b
153 changed files with 7083 additions and 1732 deletions
|
@ -27,6 +27,7 @@ import ghidra.framework.data.ProjectFileManager;
|
|||
import ghidra.framework.model.*;
|
||||
import ghidra.framework.options.SaveState;
|
||||
import ghidra.framework.plugintool.PluginTool;
|
||||
import ghidra.framework.store.LockException;
|
||||
import ghidra.trace.database.DBTraceContentHandler;
|
||||
import ghidra.trace.model.Lifespan;
|
||||
import ghidra.trace.model.Trace;
|
||||
|
@ -643,6 +644,7 @@ public class DebuggerCoordinates {
|
|||
ProjectData projData = tool.getProject().getProjectData(projLoc);
|
||||
if (projData == null) {
|
||||
try {
|
||||
// FIXME! orphaned instance - transient in nature
|
||||
projData = new ProjectFileManager(projLoc, false, false);
|
||||
}
|
||||
catch (NotOwnerException e) {
|
||||
|
@ -650,7 +652,7 @@ public class DebuggerCoordinates {
|
|||
"Not project owner: " + projLoc + "(" + pathname + ")");
|
||||
return null;
|
||||
}
|
||||
catch (IOException e) {
|
||||
catch (IOException | LockException e) {
|
||||
Msg.showError(DebuggerCoordinates.class, tool.getToolFrame(), "Trace Open Failed",
|
||||
"Project error: " + e.getMessage());
|
||||
return null;
|
||||
|
|
|
@ -368,7 +368,18 @@ public class DebuggerTraceManagerServicePlugin extends Plugin
|
|||
if (traceChooserDialog != null) {
|
||||
return traceChooserDialog;
|
||||
}
|
||||
DomainFileFilter filter = df -> Trace.class.isAssignableFrom(df.getDomainObjectClass());
|
||||
DomainFileFilter filter = new DomainFileFilter() {
|
||||
|
||||
@Override
|
||||
public boolean accept(DomainFile df) {
|
||||
return Trace.class.isAssignableFrom(df.getDomainObjectClass());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean followLinkedFolders() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
// TODO regarding the hack note below, I believe this issue ahs been fixed, but not sure how to test
|
||||
return traceChooserDialog =
|
||||
|
|
|
@ -176,7 +176,7 @@ public class ProjectExperimentsTest extends AbstractGhidraHeadedIntegrationTest
|
|||
|
||||
assertNotNull(proj2 = pm.openProject(loc2, false, false));
|
||||
|
||||
ProjectData data1 = proj2.addProjectView(loc1.getURL());
|
||||
ProjectData data1 = proj2.addProjectView(loc1.getURL(), true);
|
||||
assertNotNull(data1);
|
||||
|
||||
// It's a cryin' shame. I don't get *any* callbacks. _ANY!_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue