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:
dragonmacher 2021-10-20 16:54:04 -04:00
parent f9463e600d
commit ec88c732d2
19 changed files with 1104 additions and 379 deletions

View file

@ -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() {