Class VersionControlUpdateAction
- java.lang.Object
-
- docking.action.DockingAction
-
- ghidra.framework.main.datatable.DomainFileProviderContextAction
-
- ghidra.framework.main.projectdata.actions.VersionControlAction
-
- ghidra.framework.main.projectdata.actions.VersionControlUpdateAction
-
- All Implemented Interfaces:
DockingActionIf
,HelpDescriptor
public class VersionControlUpdateAction extends VersionControlAction
Action to update the current checked out domain file to contain the changes which have been checked in to the repository since our file's version was checked out. The update occurs by merging the changes from the repository's latest version into the current copy of the checked out file.
-
-
Field Summary
-
Fields inherited from class ghidra.framework.main.projectdata.actions.VersionControlAction
GROUP, repository, tool
-
Fields inherited from interface docking.action.DockingActionIf
DESCRIPTION_PROPERTY, ENABLEMENT_PROPERTY, GLOBALCONTEXT_PROPERTY, KEYBINDING_DATA_PROPERTY, MENUBAR_DATA_PROPERTY, POPUP_MENU_DATA_PROPERTY, TOOLBAR_DATA_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description VersionControlUpdateAction(Plugin plugin)
Creates an action for updating domain files that are checked out.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(DomainFileProvider context)
boolean
isEnabledForContext(DomainFileProvider context)
Returns true if at least one checked out file has a newer version in the repository.-
Methods inherited from class ghidra.framework.main.projectdata.actions.VersionControlAction
checkRepositoryConnected, isAddToPopup
-
Methods inherited from class ghidra.framework.main.datatable.DomainFileProviderContextAction
actionPerformed, isAddToPopup, isEnabledForContext, isValidContext, isValidContext
-
Methods inherited from class docking.action.DockingAction
addPropertyChangeListener, createButton, createMenuItem, dispose, doCreateButton, doCreateMenuItem, firePropertyChanged, getDefaultKeyBindingData, getDescription, getFullName, getHelpInfo, getHelpObject, getInceptionFromTheFirstClassThatIsNotUs, getInceptionInformation, getKeyBinding, getKeyBindingData, getKeyBindingType, getMenuBarData, getName, getOwner, getPopupMenuData, getPreferredKeyBindingType, getToolBarData, isEnabled, isValidGlobalContext, markHelpUnnecessary, removePropertyChangeListener, setDescription, setEnabled, setHelpLocation, setKeyBindingData, setMenuBarData, setPopupMenuData, setToolBarData, setUnvalidatedKeyBindingData, shouldAddToWindow, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface docking.action.DockingActionIf
getOwnerDescription
-
-
-
-
Constructor Detail
-
VersionControlUpdateAction
public VersionControlUpdateAction(Plugin plugin)
Creates an action for updating domain files that are checked out.- Parameters:
plugin
- the plug-in that owns this action.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(DomainFileProvider context)
- Specified by:
actionPerformed
in classDomainFileProviderContextAction
-
isEnabledForContext
public boolean isEnabledForContext(DomainFileProvider context)
Returns true if at least one checked out file has a newer version in the repository.- Overrides:
isEnabledForContext
in classDomainFileProviderContextAction
-
-