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
public class ThreeSideTextMergeDialog extends org.eclipse.jface.dialogs.TrayDialog implements IThreeSideTextMergeViewerProvider
This is a dialog that can host aThreeSideTextMergeEditorInput.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description ThreeSideTextMergeDialog(org.eclipse.swt.widgets.Shell shell, ThreeSideTextMergeEditorInput mergeEditorInput, org.eclipse.ui.services.IServiceLocator serviceLocator)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()protected voidconfigureShell(org.eclipse.swt.widgets.Shell newShell)protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent)protected org.eclipse.jface.dialogs.IDialogSettingsgetDialogBoundsSettings()protected ThreeSideTextMergeEditorInputgetInput()Returns the merge editor input for this dialog.ThreeSideTextMergeViewergetMergeViewer()Returns the providedThreeSideTextMergeViewerinstance.protected voidinitializeBounds()intopen()-
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 Detail
-
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 benullmergeEditorInput- the merge editor input, can not benullserviceLocator- the service locator, can not benull
-
-
Method Detail
-
open
public int open()
- Overrides:
openin classorg.eclipse.jface.window.Window
-
getMergeViewer
public ThreeSideTextMergeViewer getMergeViewer()
Description copied from interface:IThreeSideTextMergeViewerProviderReturns the providedThreeSideTextMergeViewerinstance.- Specified by:
getMergeViewerin interfaceIThreeSideTextMergeViewerProvider- Returns:
- the
ThreeSideTextMergeViewerinstance, nevernull
-
close
public boolean close()
- Overrides:
closein classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
- Overrides:
configureShellin classorg.eclipse.jface.window.Window
-
getDialogBoundsSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
- Overrides:
getDialogBoundsSettingsin classorg.eclipse.jface.dialogs.Dialog
-
initializeBounds
protected void initializeBounds()
- Overrides:
initializeBoundsin classorg.eclipse.jface.dialogs.Dialog
-
getInput
protected ThreeSideTextMergeEditorInput getInput()
Returns the merge editor input for this dialog.- Returns:
- the merge editor input for this dialog, never
null
-
-