mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-1382 - Added Find actions to the Data Types provider to allow users
to find structures by size or by offset(s).
This commit is contained in:
parent
f9463e600d
commit
ec88c732d2
19 changed files with 1104 additions and 379 deletions
|
@ -31,6 +31,7 @@ import docking.widgets.table.GTableCellRenderer;
|
|||
import docking.widgets.tree.GTree;
|
||||
import docking.widgets.tree.GTreeNode;
|
||||
import ghidra.app.plugin.core.datamgr.*;
|
||||
import ghidra.app.plugin.core.datamgr.actions.FindStructuresBySizeAction;
|
||||
import ghidra.app.plugin.core.datamgr.archive.DataTypeManagerHandler;
|
||||
import ghidra.app.plugin.core.datamgr.archive.InvalidFileArchive;
|
||||
import ghidra.app.plugin.core.datamgr.util.ConflictDialog;
|
||||
|
@ -155,6 +156,14 @@ public class DataTypeManagerPluginScreenShots extends GhidraScreenShotGenerator
|
|||
pressButtonByText(d, "Cancel");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFindDataTypesBySize() {
|
||||
performAction(FindStructuresBySizeAction.NAME, "DataTypeManagerPlugin", false);
|
||||
JDialog d = waitForJDialog(FindStructuresBySizeAction.NAME);
|
||||
captureDialog();
|
||||
pressButtonByText(d, "Cancel");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPreviewWindow() {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue