Class FormatStringDialog

java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
com._1c.g5.v8.dt.ui.dialog.FormatStringDialog
All Implemented Interfaces:
IChooseValueDialog<String>, org.eclipse.jface.window.IShellProvider

public class FormatStringDialog extends org.eclipse.jface.dialogs.Dialog implements IChooseValueDialog<String>
Dialog for composing format strings.
  • 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
    FormatStringDialog(org.eclipse.swt.widgets.Shell parentShell, String initialValue, ScriptVariant scriptVariant, Version version)
    Creates a dialog window that helps in construction of a format string.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected void
    configureShell(org.eclipse.swt.widgets.Shell newShell)
     
    void
    protected org.eclipse.swt.widgets.Control
    createDialogArea(org.eclipse.swt.widgets.Composite parent)
    Returns a value that user chose in the dialog.
    protected void
     

    Methods inherited from class org.eclipse.jface.dialogs.Dialog

    applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText

    Methods inherited from class org.eclipse.jface.window.Window

    canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, 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

    Methods inherited from interface com._1c.g5.v8.dt.ui.dialog.IChooseValueDialog

    open
  • Constructor Details

    • FormatStringDialog

      public FormatStringDialog(org.eclipse.swt.widgets.Shell parentShell, String initialValue, ScriptVariant scriptVariant, Version version)
      Creates a dialog window that helps in construction of a format string.
      Parameters:
      parentShell - the parent shell, or null to create a top-level shell
      initialValue - a format string to initialize dialogs controls from, can be null if no any value
      scriptVariant - the current configuration script variant, cannot be null
      version - the 1C:Enterprise runtime version, cannot be null
  • Method Details

    • create

      public void create()
      Overrides:
      create in class org.eclipse.jface.dialogs.Dialog
    • close

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

      public String getValue()
      Description copied from interface: IChooseValueDialog
      Returns a value that user chose in the dialog. This method is supposed to be called after the dialog is closed.
      Specified by:
      getValue in interface IChooseValueDialog<String>
      Returns:
      The format string composed by the user in the dialog
    • configureShell

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

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

      protected void okPressed()
      Overrides:
      okPressed in class org.eclipse.jface.dialogs.Dialog