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

    Constructors
    Constructor
    Description
    ThreeSideTextMergeDialog(org.eclipse.swt.widgets.Shell shell, ThreeSideTextMergeEditorInput mergeEditorInput, org.eclipse.ui.services.IServiceLocator serviceLocator)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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
     
    Returns the merge editor input for this dialog.
    Returns the provided ThreeSideTextMergeViewer instance.
    protected void
     
    int
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 be null
      mergeEditorInput - the merge editor input, can not be null
      serviceLocator - the service locator, can not be null
  • Method Details

    • open

      public int open()
      Overrides:
      open in class org.eclipse.jface.window.Window
    • getMergeViewer

      public ThreeSideTextMergeViewer getMergeViewer()
      Description copied from interface: IThreeSideTextMergeViewerProvider
      Returns the provided ThreeSideTextMergeViewer instance.
      Specified by:
      getMergeViewer in interface IThreeSideTextMergeViewerProvider
      Returns:
      the ThreeSideTextMergeViewer instance, never null
    • close

      public boolean close()
      Overrides:
      close in class org.eclipse.jface.dialogs.Dialog
    • createDialogArea

      protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
      Overrides:
      createDialogArea in class org.eclipse.jface.dialogs.Dialog
    • configureShell

      protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
      Overrides:
      configureShell in class org.eclipse.jface.window.Window
    • getDialogBoundsSettings

      protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
      Overrides:
      getDialogBoundsSettings in class org.eclipse.jface.dialogs.Dialog
    • initializeBounds

      protected void initializeBounds()
      Overrides:
      initializeBounds in class org.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