Package ghidra.plugin.importer
Class AddToProgramDialog
java.lang.Object
docking.DialogComponentProvider
ghidra.plugin.importer.ImporterDialog
ghidra.plugin.importer.AddToProgramDialog
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
The AddToProgramDialog is essentially the same as the ImporterDialog with a few exceptions. One
difference is that the language and destination folder/name are not enabled and are initialized
to the existing program to which the imported data will be added. Also, the Ok callback
is overridden to add the data to the current program instead of creating a new program.
-
Field Summary
Fields inherited from class ghidra.plugin.importer.ImporterDialog
byteProvider, folderButton, folderNameTextField, fsrl, languageButton, languageTextField, loaderComboBox, nameTextField, options, optionsButton, selectedLanguage, tool
Fields inherited from class docking.DialogComponentProvider
applyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel
-
Constructor Summary
ModifierConstructorDescriptionprotected
AddToProgramDialog
(PluginTool tool, FSRL fsrl, LoaderMap loaderMap, ByteProvider byteProvider, Program addToProgram) Construct a new AddToProgramDialog. -
Method Summary
Modifier and TypeMethodDescriptiongetOptions
(LoadSpec loadSpec) protected void
The callback method for when the "OK" button is pressed.protected void
protected boolean
Methods inherited from class ghidra.plugin.importer.ImporterDialog
close, getSelectedLoader, getSelectedLoadSpec, setDestinationFolder, setSelectedLanguage
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, closeDialog, dialogClosed, dialogShown, dismissCallback, dispose, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocation, getId, getInitialLocation, getLocationOnScreen, getParent, getPreferredSize, getRememberLocation, getRememberSize, getStatusColor, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, notifyContextChanged, removeAction, removeButton, removeWorkPanel, repack, setAccessibleDescription, setApplyEnabled, setApplyToolTip, setBackground, setCancelButtonText, setCancelEnabled, setCancelToolTip, setCursor, setDefaultButton, setDefaultSize, setDialogSize, setDismissToolTip, setFocusComponent, setGlassPane, setHelpLocation, setInitialLocation, setMinimumSize, setMinimumSize, setOkButtonText, setOkEnabled, setOkToolTip, setPreferredSize, setRememberLocation, setRememberSize, setResizable, setStatusJustification, setStatusText, setStatusText, setStatusText, setTitle, setTransient, setUseSharedLocation, showProgressBar, showTaskMonitorComponent, stopProgressTimer, taskCancelled, taskCompleted, toFront, toString, waitForCurrentTask
-
Constructor Details
-
AddToProgramDialog
protected AddToProgramDialog(PluginTool tool, FSRL fsrl, LoaderMap loaderMap, ByteProvider byteProvider, Program addToProgram) Construct a new AddToProgramDialog.- Parameters:
tool
- the tool containing the currently open program.fsrl
- the FileSystemURL for where the imported data can be read.loaderMap
- the loaders and their corresponding load specificationsbyteProvider
- the ByteProvider from which the bytes from the source can be read. The dialog takes ownership of the ByteProvider and it will be closed when the dialog is closedaddToProgram
- the program to which the newly imported data will be added
-
-
Method Details
-
validateFormInput
protected boolean validateFormInput()- Overrides:
validateFormInput
in classImporterDialog
-
selectedLoaderChanged
protected void selectedLoaderChanged()- Overrides:
selectedLoaderChanged
in classImporterDialog
-
okCallback
protected void okCallback()Description copied from class:DialogComponentProvider
The callback method for when the "OK" button is pressed.- Overrides:
okCallback
in classImporterDialog
-
getOptions
- Overrides:
getOptions
in classImporterDialog
-