Class ImporterPlugin

    • Constructor Detail

      • ImporterPlugin

        public ImporterPlugin​(PluginTool tool)
    • Method Detail

      • init

        protected void init()
        Description copied from class: Plugin
        Initialization method; override to add initialization for this plugin. This is where a plugin should acquire its services. When this method is called, all plugins have been instantiated in the tool.
        Overrides:
        init in class Plugin
      • readConfigState

        public void readConfigState​(SaveState saveState)
        Description copied from class: Plugin
        Tells the Plugin to read its data-independent (preferences) properties from the input stream.
        Overrides:
        readConfigState in class Plugin
        Parameters:
        saveState - object that holds primitives for state information
      • writeConfigState

        public void writeConfigState​(SaveState saveState)
        Description copied from class: Plugin
        Tells a Plugin to write any data-independent (preferences) properties to the output stream.
        Overrides:
        writeConfigState in class Plugin
        Parameters:
        saveState - object that holds primitives for state information
      • dispose

        protected void dispose()
        Description copied from class: Plugin
        Tells a plugin that it is no longer needed. The plugin should release any resources that it has. All actions, components, services will automatically be cleaned up.
        Overrides:
        dispose in class Plugin
      • processEvent

        public void processEvent​(PluginEvent event)
        Description copied from class: Plugin
        Method called to process a plugin event. Plugins should override this method if the plugin processes PluginEvents;
        Overrides:
        processEvent in class Plugin
        Parameters:
        event - plugin to process
      • importFiles

        public void importFiles​(DomainFolder destFolder,
                                java.util.List<java.io.File> files)
        Description copied from interface: FileImporterService
        Imports the given files into the specified Ghidra project folder.
        Specified by:
        importFiles in interface FileImporterService
        Parameters:
        destFolder - the Ghidra project folder to store the imported files.
        files - the files to import.
      • importFile

        public void importFile​(DomainFolder folder,
                               java.io.File file)
        Description copied from interface: FileImporterService
        Imports the given file into the specified Ghidra project folder.
        Specified by:
        importFile in interface FileImporterService
        Parameters:
        folder - the Ghidra project folder to store the imported file.
        file - the file to import.
      • projectClosed

        public void projectClosed​(Project project)
        Description copied from interface: ProjectListener
        Notification that the given project is closed.
        Specified by:
        projectClosed in interface ProjectListener
        Parameters:
        project - project that is closed
      • projectOpened

        public void projectOpened​(Project project)
        Description copied from interface: ProjectListener
        Notification that the given project is open.
        Specified by:
        projectOpened in interface ProjectListener
        Parameters:
        project - project that is opened
      • doImportSelectionAction

        protected void doImportSelectionAction​(ProgramSelection selection)