Class LocalStringFormattedTextDialog

  • All Implemented Interfaces:
    org.eclipse.jface.window.IShellProvider

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

      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createTextEditingArea​(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc)
      Creates text area with controls to modify localized strings.
      protected void createTextEditor​(org.eclipse.swt.widgets.Composite container, LocalStringDialog.LocalString localString, org.eclipse.core.databinding.DataBindingContext dbc)
      Create editor for local string
      Map<String,​String> getValues()
      Returns the map of key-value pairs or null if canceled
      boolean isFormattedText()
      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, createButtonsForButtonBar, 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
    • Constructor Detail

      • 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 Detail

      • 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)
        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
      • createTextEditor

        protected void createTextEditor​(org.eclipse.swt.widgets.Composite container,
                                        LocalStringDialog.LocalString localString,
                                        org.eclipse.core.databinding.DataBindingContext dbc)
        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