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.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()protected voidconfigureShell(org.eclipse.swt.widgets.Shell newShell)voidcreate()protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent)StringgetValue()Returns a value that user chose in the dialog.protected voidokPressed()-
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 Detail
-
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, ornullto create a top-level shellinitialValue- a format string to initialize dialogs controls from, can benullif no any valuescriptVariant- the current configuration script variant, cannot benullversion- the 1C:Enterprise runtime version, cannot benull
-
-
Method Detail
-
create
public void create()
- Overrides:
createin classorg.eclipse.jface.dialogs.Dialog
-
close
public boolean close()
- Overrides:
closein classorg.eclipse.jface.dialogs.Dialog
-
getValue
public String getValue()
Description copied from interface:IChooseValueDialogReturns a value that user chose in the dialog. This method is supposed to be called after the dialog is closed.- Specified by:
getValuein interfaceIChooseValueDialog<String>- Returns:
- The format string composed by the user in the dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
- Overrides:
configureShellin classorg.eclipse.jface.window.Window
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.Dialog
-
okPressed
protected void okPressed()
- Overrides:
okPressedin classorg.eclipse.jface.dialogs.Dialog
-
-