Class ThreeSideTextMergeDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
com._1c.g5.v8.dt.compare.ui.mergeviewer.ThreeSideTextMergeDialog
- All Implemented Interfaces:
IThreeSideTextMergeViewerProvider
,org.eclipse.jface.window.IShellProvider
- Direct Known Subclasses:
BslModuleThreeSideMergeDialog
public class ThreeSideTextMergeDialog
extends org.eclipse.jface.dialogs.TrayDialog
implements IThreeSideTextMergeViewerProvider
This is a dialog that can host a
ThreeSideTextMergeEditorInput
.-
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.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, ELLIPSIS
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred
-
Constructor Summary
ConstructorsConstructorDescriptionThreeSideTextMergeDialog
(org.eclipse.swt.widgets.Shell shell, ThreeSideTextMergeEditorInput mergeEditorInput, org.eclipse.ui.services.IServiceLocator serviceLocator) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
close()
protected void
configureShell
(org.eclipse.swt.widgets.Shell newShell) protected org.eclipse.swt.widgets.Control
createDialogArea
(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.jface.dialogs.IDialogSettings
protected ThreeSideTextMergeEditorInput
getInput()
Returns the merge editor input for this dialog.Returns the providedThreeSideTextMergeViewer
instance.protected void
int
open()
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
ThreeSideTextMergeDialog
public ThreeSideTextMergeDialog(org.eclipse.swt.widgets.Shell shell, ThreeSideTextMergeEditorInput mergeEditorInput, org.eclipse.ui.services.IServiceLocator serviceLocator) Constructor.- Parameters:
shell
- the parent shell, can not benull
mergeEditorInput
- the merge editor input, can not benull
serviceLocator
- the service locator, can not benull
-
-
Method Details
-
open
public int open()- Overrides:
open
in classorg.eclipse.jface.window.Window
-
getMergeViewer
Description copied from interface:IThreeSideTextMergeViewerProvider
Returns the providedThreeSideTextMergeViewer
instance.- Specified by:
getMergeViewer
in interfaceIThreeSideTextMergeViewerProvider
- Returns:
- the
ThreeSideTextMergeViewer
instance, nevernull
-
close
public boolean close()- Overrides:
close
in classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell) - Overrides:
configureShell
in classorg.eclipse.jface.window.Window
-
getDialogBoundsSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()- Overrides:
getDialogBoundsSettings
in classorg.eclipse.jface.dialogs.Dialog
-
initializeBounds
protected void initializeBounds()- Overrides:
initializeBounds
in classorg.eclipse.jface.dialogs.Dialog
-
getInput
Returns the merge editor input for this dialog.- Returns:
- the merge editor input for this dialog, never
null
-