Package ghidra.program.database.data
Class DataTypeArchiveTransformer
java.lang.Object
ghidra.program.database.data.DataTypeArchiveTransformer
- All Implemented Interfaces:
GhidraLaunchable
DataTypeArchiveTransformer changes (transforms) a new archive file so that it appears to be
an updated copy of a previously existing data type archive. This allows us to parse a new
version of each standard GDT file we supply. This class changes the IDs on the data types
so they will match the previous version's IDs. This allows the new data type archive and
its data types to become the associated data types where the previous version data types
were applied.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
fixupGUI()
void
launch
(GhidraApplicationLayout layout, String[] args) Launches the launchable.static void
transform
(File oldFile, File newFile, File destinationFile, boolean useOldFileID, TaskMonitor monitor)
-
Constructor Details
-
DataTypeArchiveTransformer
public DataTypeArchiveTransformer()
-
-
Method Details
-
transform
public static void transform(File oldFile, File newFile, File destinationFile, boolean useOldFileID, TaskMonitor monitor) throws InvalidInputException, DuplicateFileException, IOException, CancelledException -
launch
Description copied from interface:GhidraLaunchable
Launches the launchable.- Specified by:
launch
in interfaceGhidraLaunchable
- Parameters:
layout
- The application layout to use for the launch.args
- The arguments passed through by theGhidraLauncher
.
-
fixupGUI
public static void fixupGUI()
-