Package ghidra.framework.main.datatree
Class VersionControlDialog
- java.lang.Object
-
- docking.DialogComponentProvider
-
- ghidra.framework.main.datatree.VersionControlDialog
-
- All Implemented Interfaces:
ActionContextProvider,StatusListener,TaskListener
public class VersionControlDialog extends DialogComponentProvider
Dialog to get comments for adding a file to version control or checking in a file.
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPLY_TO_ALLstatic intCANCEL-
Fields inherited from class docking.DialogComponentProvider
applyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel
-
-
Constructor Summary
Constructors Constructor Description VersionControlDialog(boolean addToVersionControl)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcancelCallback()The callback method for when the "Cancel" button is pressed.protected voidokCallback()The callback method for when the "OK" button is pressed.voidsetCurrentFileName(java.lang.String filename)Set the name of the current file being added to version control or being updated.voidsetKeepCheckboxEnabled(boolean enabled)Disable the check box for "keep checked out" because some files are still in use.-
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, dialogClosed, dialogShown, dismissCallback, dispose, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocatdion, getId, getIntialLocation, getLocationOnScreen, getParent, getPreferredSize, getRemberSize, getRememberLocation, getStatusColor, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, notifyContextChanged, removeAction, removeButton, removeWorkPanel, repack, 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
-
-
-
-
Field Detail
-
APPLY_TO_ALL
public static final int APPLY_TO_ALL
- See Also:
- Constant Field Values
-
CANCEL
public static final int CANCEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
cancelCallback
protected void cancelCallback()
Description copied from class:DialogComponentProviderThe callback method for when the "Cancel" button is pressed. The default behavior is to call setVisible(false) and dispose() on the dialog.- Overrides:
cancelCallbackin classDialogComponentProvider
-
okCallback
protected void okCallback()
Description copied from class:DialogComponentProviderThe callback method for when the "OK" button is pressed.- Overrides:
okCallbackin classDialogComponentProvider
-
setKeepCheckboxEnabled
public void setKeepCheckboxEnabled(boolean enabled)
Disable the check box for "keep checked out" because some files are still in use.
-
setCurrentFileName
public void setCurrentFileName(java.lang.String filename)
Set the name of the current file being added to version control or being updated.- Parameters:
filename- the name of the file currently to be added, whose comment we need.
-
-