Class LocalStringFormattedTextDialog

java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.jface.dialogs.TitleAreaDialog
com._1c.g5.v8.dt.ui.dialog.LocalStringDialog
com._1c.g5.v8.dt.md.ui.dialogs.LocalStringFormattedTextDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
FormItemNameFormattedEditDialog

public class LocalStringFormattedTextDialog extends LocalStringDialog
Extends LocalStringDialog to allow input formatted text.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com._1c.g5.v8.dt.ui.dialog.LocalStringDialog

    LocalStringDialog.LanguageCodeNotExistValidator

    Nested classes/interfaces inherited from class org.eclipse.jface.window.Window

    org.eclipse.jface.window.Window.IExceptionHandler
  • Field Summary

    Fields inherited from class com._1c.g5.v8.dt.ui.dialog.LocalStringDialog

    DIALOG_SETTINGS_SECTION_NAME, MULTILINE_SECTION_NAME, SINGLE_LINE_SECTION_NAME

    Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog

    DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE

    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
    LocalStringFormattedTextDialog(org.eclipse.swt.widgets.Shell parentShell, IV8Project v8project, IMdObjectByTypeProvider mdObjectByTypeProvider, boolean isMultiLine, boolean isFormatted, Map<String,String> inputData, String editingLanguageCode, IColorProvider colorProvider, IFontProvider fontProvider, boolean isReadOnly)
    Creates new dialog instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    createTextEditingArea(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc, BiFunction<LocalString,Boolean,Boolean> updateTitleFunc)
    Creates text area with controls to modify localized strings.
    protected void
    createTextEditor(org.eclipse.swt.widgets.Composite container, LocalString localString, org.eclipse.core.databinding.DataBindingContext dbc, BiFunction<LocalString,Boolean,Boolean> updateTitleFunc)
    Create editor for local string
    Returns the map of key-value pairs or null if canceled
    boolean
    Returns whether text is of formatted type

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

    createContents, getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage

    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, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, 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, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, 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
  • Constructor Details

    • LocalStringFormattedTextDialog

      public LocalStringFormattedTextDialog(org.eclipse.swt.widgets.Shell parentShell, IV8Project v8project, IMdObjectByTypeProvider mdObjectByTypeProvider, boolean isMultiLine, boolean isFormatted, Map<String,String> inputData, String editingLanguageCode, IColorProvider colorProvider, IFontProvider fontProvider, boolean isReadOnly)
      Creates new dialog instance.
      Parameters:
      parentShell - the parent SWT shell
      v8project - V8 project, cannot be null
      mdObjectByTypeProvider - MD object provider, cannot be null
      isMultiLine - flag indicating that text is multiline
      isFormatted - flag indicating that formatted text is being edited
      inputData - a map of string key-values pairs where key is language code and value is the input string, cannot be null
      editingLanguageCode - the current code of editing language, cannot be null
      colorProvider - the color provider, cannot be null
      fontProvider - the font provider, cannot be null
      isReadOnly - flag, indicating that dialog is in read-only mode
  • Method Details

    • getValues

      public Map<String,String> getValues()
      Description copied from class: LocalStringDialog
      Returns the map of key-value pairs or null if canceled
      Overrides:
      getValues in class LocalStringDialog
      Returns:
      map of Map<String, String> type
    • isFormattedText

      public boolean isFormattedText()
      Returns whether text is of formatted type
      Returns:
      true if text is of formatted type, false otherwise
    • createTextEditingArea

      protected void createTextEditingArea(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc, BiFunction<LocalString,Boolean,Boolean> updateTitleFunc)
      Description copied from class: LocalStringDialog
      Creates text area with controls to modify localized strings.
      Overrides:
      createTextEditingArea in class LocalStringDialog
      Parameters:
      parent - base dialog composite, cannot be null
      dbc - dialog data binding context, cannot be null
      updateTitleFunc - the updating function for title local strings, can be null
    • createTextEditor

      protected void createTextEditor(org.eclipse.swt.widgets.Composite container, LocalString localString, org.eclipse.core.databinding.DataBindingContext dbc, BiFunction<LocalString,Boolean,Boolean> updateTitleFunc)
      Description copied from class: LocalStringDialog
      Create editor for local string
      Overrides:
      createTextEditor in class LocalStringDialog
      Parameters:
      container - the parent container, cannot be null
      localString - the editing local string item, cannot be null
      dbc - the data binding context, cannot be null
      updateTitleFunc - the updating function for title local strings, can be null