Package com._1c.g5.v8.dt.egit.ui.dialogs
Class CleanupUncomittedAndUntrackedChangesDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.IconAndMessageDialog
org.eclipse.jface.dialogs.MessageDialog
org.eclipse.egit.ui.internal.dialogs.CleanupUncomittedChangesDialog
com._1c.g5.v8.dt.egit.ui.dialogs.CleanupUncomittedAndUntrackedChangesDialog
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class CleanupUncomittedAndUntrackedChangesDialog
extends org.eclipse.egit.ui.internal.dialogs.CleanupUncomittedChangesDialog
Customization of EGit
CleanupUncomittedChangesDialog with ability to clean up untracked changes.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler -
Field Summary
Fields inherited from class org.eclipse.jface.dialogs.MessageDialog
AUTOMATED_MODE, CONFIRM, ERROR, INFORMATION, NONE, QUESTION, QUESTION_WITH_CANCEL, WARNINGFields inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
imageLabel, message, messageLabelFields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
ConstructorsConstructorDescriptionCleanupUncomittedAndUntrackedChangesDialog(org.eclipse.swt.widgets.Shell shell, String dialogTitle, org.eclipse.jgit.lib.Repository repository, List<String> fileList) Creates an instance ofCleanupUncomittedAndUntrackedChangesDialog -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuttonPressed(int buttonId) static booleancleanupUncomittedChanges(org.eclipse.swt.widgets.Shell shell, String dialogTitle, org.eclipse.jgit.lib.Repository repository, List<String> uncommitedChanges) Cleans up all uncommited and untracked changes.booleanMethods inherited from class org.eclipse.egit.ui.internal.dialogs.CleanupUncomittedChangesDialog
createButtonsForButtonBar, createCustomAreaMethods inherited from class org.eclipse.jface.dialogs.MessageDialog
configureShell, createButton, createDialogArea, customShouldTakeFocus, getButton, getButtonLabels, getDefaultButtonIndex, getImage, getMinimumMessageWidth, handleShellCloseEvent, open, open, open, openConfirm, openError, openInformation, openQuestion, openWarning, setButtonLabels, setButtonsMethods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
createButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getColumnCount, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImageMethods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextMethods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
CleanupUncomittedAndUntrackedChangesDialog
public CleanupUncomittedAndUntrackedChangesDialog(org.eclipse.swt.widgets.Shell shell, String dialogTitle, org.eclipse.jgit.lib.Repository repository, List<String> fileList) Creates an instance ofCleanupUncomittedAndUntrackedChangesDialog- Parameters:
shell- the shell, cannot benulldialogTitle- the title of the dialog, cannot benullrepository- the git repository, cannot benullfileList- a list of files, cannot benull
-
-
Method Details
-
cleanupUncomittedChanges
public static boolean cleanupUncomittedChanges(org.eclipse.swt.widgets.Shell shell, String dialogTitle, org.eclipse.jgit.lib.Repository repository, List<String> uncommitedChanges) Cleans up all uncommited and untracked changes. User will be asked to commit or shash any changes if there are any.- Parameters:
shell- the shell, cannot benulldialogTitle- the title of the dialog, cannot benullrepository- the git repository, cannot benulluncommitedChanges- a list of files, cannot benull- Returns:
- whether changes are cleaned up and client should continue
-
buttonPressed
protected void buttonPressed(int buttonId) - Overrides:
buttonPressedin classorg.eclipse.egit.ui.internal.dialogs.CleanupUncomittedChangesDialog
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classorg.eclipse.egit.ui.internal.dialogs.CleanupUncomittedChangesDialog
-