Package com._1c.g5.v8.dt.ui.dialog
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
ConstructorsConstructorDescriptionFormatStringDialog
(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 TypeMethodDescriptionboolean
close()
protected void
configureShell
(org.eclipse.swt.widgets.Shell newShell) void
create()
protected org.eclipse.swt.widgets.Control
createDialogArea
(org.eclipse.swt.widgets.Composite parent) getValue()
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, ornull
to create a top-level shellinitialValue
- a format string to initialize dialogs controls from, can benull
if no any valuescriptVariant
- the current configuration script variant, cannot benull
version
- the 1C:Enterprise runtime version, cannot benull
-
-
Method Details
-
create
public void create()- Overrides:
create
in classorg.eclipse.jface.dialogs.Dialog
-
close
public boolean close()- Overrides:
close
in classorg.eclipse.jface.dialogs.Dialog
-
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 interfaceIChooseValueDialog<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 classorg.eclipse.jface.window.Window
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.Dialog
-
okPressed
protected void okPressed()- Overrides:
okPressed
in classorg.eclipse.jface.dialogs.Dialog
-