Package com._1c.g5.v8.dt.md.ui.dialogs
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
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
ConstructorsConstructorDescriptionLocalStringFormattedTextDialog
(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 TypeMethodDescriptionprotected 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 stringReturns the map of key-value pairs ornull
if canceledboolean
Returns whether text is of formatted typeMethods inherited from class com._1c.g5.v8.dt.ui.dialog.LocalStringDialog
close, configureShell, convert, createButtonsForButtonBar, createDialogArea, createMultilineEntry, createSingleEntry, getDialogBoundsSettings, getLanguageCode, getLocalStrings, okPressed
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
-
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 shellv8project
- V8 project, cannot benull
mdObjectByTypeProvider
- MD object provider, cannot benull
isMultiLine
- flag indicating that text is multilineisFormatted
- flag indicating that formatted text is being editedinputData
- a map of string key-values pairs where key is language code and value is the input string, cannot benull
editingLanguageCode
- the current code of editing language, cannot benull
colorProvider
- the color provider, cannot benull
fontProvider
- the font provider, cannot benull
isReadOnly
- flag, indicating that dialog is in read-only mode
-
-
Method Details
-
getValues
Description copied from class:LocalStringDialog
Returns the map of key-value pairs ornull
if canceled- Overrides:
getValues
in classLocalStringDialog
- 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 classLocalStringDialog
- Parameters:
parent
- base dialog composite, cannot benull
dbc
- dialog data binding context, cannot benull
updateTitleFunc
- the updating function for title local strings, can benull
-
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 classLocalStringDialog
- Parameters:
container
- the parent container, cannot benull
localString
- the editing local string item, cannot benull
dbc
- the data binding context, cannot benull
updateTitleFunc
- the updating function for title local strings, can benull
-