Class VersionControlDataTypeArchiveUndoCheckoutAction

    • Constructor Detail

      • VersionControlDataTypeArchiveUndoCheckoutAction

        public VersionControlDataTypeArchiveUndoCheckoutAction​(ghidra.app.plugin.core.datamgr.DataTypeManagerPlugin plugin,
                                                               ArchiveProvider provider)
        Creates an action to undo checkouts for domain files in the repository.
        Parameters:
        plugin - the plug-in that owns this action.
        provider - provides a list of domain files to be affected by this action.
    • Method Detail

      • undoCheckOut

        protected void undoCheckOut()
        Gets the domain files from the provider and then undoes the checkout on any that are checked out.
      • undoCheckOuts

        protected void undoCheckOuts​(java.util.List<ghidra.app.plugin.core.datamgr.archive.DomainFileArchive> unmodifiedArchivesList,
                                     java.util.List<ghidra.app.plugin.core.datamgr.archive.DomainFileArchive> modifiedArchivesList)
                              throws CancelledException
        Displays the undo checkout confirmation dialog for each checked out file and then undoes the checkout while keeping a copy of the working version of the file if the user chooses to do so.
        All unmodified checkouts will be undone. Only modified checkouts the user chooses will be undone.
        Parameters:
        unmodifiedArchivesList - the list of unmodified archives
        modifiedArchivesList - the list of archives that have been modified
        Throws:
        CancelledException - if canclled
      • saveCheckOutChanges

        protected void saveCheckOutChanges​(java.util.List<DomainFile> changedList)
                                    throws CancelledException
        Saves all checked out changes.
        Parameters:
        changedList - the list of changes
        Throws:
        CancelledException - if cancelled