Package com._1c.g5.v8.dt.ui.dialog
Class LocalStringDialog
- 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
 
 
 
 
 
- 
- All Implemented Interfaces:
- org.eclipse.jface.window.IShellProvider
 - Direct Known Subclasses:
- LocalStringFormatDialog,- LocalStringFormattedTextDialog
 
 public class LocalStringDialog extends org.eclipse.jface.dialogs.TitleAreaDialogDialog for entering string on multiple languages
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classLocalStringDialog.LanguageCodeNotExistValidatorShow warning indicator for ui editor items associated with unknown language codeprotected classLocalStringDialog.LocalStringData class for items inLocalStringDialogs
 - 
Field SummaryFields Modifier and Type Field Description protected static StringDIALOG_SETTINGS_SECTION_NAMEprotected static StringMULTILINE_SECTION_NAMEprotected static StringSINGLE_LINE_SECTION_NAME- 
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialogDLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
 - 
Fields inherited from class org.eclipse.jface.dialogs.DialogblockedHandler, 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
 
- 
 - 
Constructor SummaryConstructors Constructor Description LocalStringDialog(org.eclipse.swt.widgets.Shell parentShell, IV8Project v8project, Map<String,String> inputData, String currentEditingLanguageCode, boolean multiLine, boolean isReadOnly)Dialog for entering string on different languages.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()protected voidconfigureShell(org.eclipse.swt.widgets.Shell newShell)protected static Map<String,String>convert(List<LocalStringDialog.LocalString> localStrings)Converts given list ofLocalStringDialog.LocalStringinto language code to text map.protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent)Creates initial dialog structureprotected voidcreateMultilineEntry(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc, LocalStringDialog.LocalString localString)Create editor for multyline of local stringprotected voidcreateSingleEntry(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc, LocalStringDialog.LocalString localString)Create editor for single line of local stringprotected voidcreateTextEditingArea(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc)Creates text area with controls to modify localized strings.protected voidcreateTextEditor(org.eclipse.swt.widgets.Composite parent, LocalStringDialog.LocalString localString, org.eclipse.core.databinding.DataBindingContext dbc)Create editor for local stringprotected org.eclipse.jface.dialogs.IDialogSettingsgetDialogBoundsSettings()Map<String,String>getValues()Returns the map of key-value pairs ornullif canceledprotected voidokPressed()- 
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialogcreateContents, getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
 - 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialogcloseTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 - 
Methods inherited from class org.eclipse.jface.dialogs.DialogapplyDialogFont, 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.WindowcanHandleShellCloseEvent, 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
 
- 
 
- 
- 
- 
Field Detail- 
DIALOG_SETTINGS_SECTION_NAMEprotected static final String DIALOG_SETTINGS_SECTION_NAME - See Also:
- Constant Field Values
 
 - 
MULTILINE_SECTION_NAMEprotected static final String MULTILINE_SECTION_NAME - See Also:
- Constant Field Values
 
 - 
SINGLE_LINE_SECTION_NAMEprotected static final String SINGLE_LINE_SECTION_NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
LocalStringDialogpublic LocalStringDialog(org.eclipse.swt.widgets.Shell parentShell, IV8Project v8project, Map<String,String> inputData, String currentEditingLanguageCode, boolean multiLine, boolean isReadOnly)Dialog for entering string on different languages.- Parameters:
- parentShell- the parent SWT shell, cannot be- null
- v8project- the current V8 project, cannot be- null
- inputData- a map of string key-values pairs where key is language code and value is the input string, cannot be- null
- currentEditingLanguageCode- code of configuration editing language, cannot be- null
- multiLine- flag, indicating that input text boxes should be multiline
- isReadOnly- flag, indicating that dialog is in read-only mode
 
 
- 
 - 
Method Detail- 
okPressedprotected void okPressed() - Overrides:
- okPressedin class- org.eclipse.jface.dialogs.Dialog
 
 - 
getValuespublic Map<String,String> getValues() Returns the map of key-value pairs ornullif canceled- Returns:
- map of Map<String, String> type
 
 - 
closepublic boolean close() - Overrides:
- closein class- org.eclipse.jface.dialogs.Dialog
 
 - 
convertprotected static Map<String,String> convert(List<LocalStringDialog.LocalString> localStrings) Converts given list ofLocalStringDialog.LocalStringinto language code to text map.- Parameters:
- localStrings- the list of- LocalStringDialog.LocalString, cannot be- null.
- Returns:
- the map, cannot be null.
 
 - 
createDialogAreaprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) Creates initial dialog structure- Overrides:
- createDialogAreain class- org.eclipse.jface.dialogs.TitleAreaDialog
 
 - 
createSingleEntryprotected void createSingleEntry(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc, LocalStringDialog.LocalString localString)Create editor for single line of local string- Parameters:
- parent- the parent container, cannot be- null
- dbc- the data binding context, cannot be- null
- localString- the editing local string item, cannot be- null
 
 - 
createMultilineEntryprotected void createMultilineEntry(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc, LocalStringDialog.LocalString localString)Create editor for multyline of local string- Parameters:
- parent- the parent container, cannot be- null
- dbc- the data binding context, cannot be- null
- localString- the editing local string item, cannot be- null
 
 - 
createTextEditingAreaprotected void createTextEditingArea(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.DataBindingContext dbc)Creates text area with controls to modify localized strings.- Parameters:
- parent- base dialog composite, cannot be- null
- dbc- dialog data binding context, cannot be- null
 
 - 
createTextEditorprotected void createTextEditor(org.eclipse.swt.widgets.Composite parent, LocalStringDialog.LocalString localString, org.eclipse.core.databinding.DataBindingContext dbc)Create editor for local string- Parameters:
- parent- the parent container, cannot be- null
- localString- the editing local string item, cannot be- null
- dbc- the data binding context, cannot be- null
 
 - 
configureShellprotected void configureShell(org.eclipse.swt.widgets.Shell newShell) - Overrides:
- configureShellin class- org.eclipse.jface.window.Window
 
 - 
getDialogBoundsSettingsprotected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings() - Overrides:
- getDialogBoundsSettingsin class- org.eclipse.jface.dialogs.Dialog
 
 
- 
 
-