Class ExpressionDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- com._1c.g5.v8.dt.dcs.ui.valueeditors.ValueEditorDialogResizable<String>
-
- com._1c.g5.v8.dt.dcs.ui.valueeditors.expr.ExpressionDialog
-
- All Implemented Interfaces:
IValueEditorDialog<String>
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.jface.window.IShellProvider
public class ExpressionDialog extends ValueEditorDialogResizable<String> implements org.eclipse.core.runtime.IAdaptable
Dialog for DCS expression
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.dcs.ui.valueeditors.ValueEditorDialogResizable
value
-
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 ExpressionDialog(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, String expr, boolean select, boolean first, boolean editable)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createContent(org.eclipse.swt.widgets.Composite parent)
Object
getAdapter(Class adapter)
IDcsSettingsProvider
getSettingsProvider()
Get settings providerExpressionsViewer
getViewer()
Get main viewerprotected void
handleShellCloseEvent()
protected void
okPressed()
-
Methods inherited from class com._1c.g5.v8.dt.dcs.ui.valueeditors.ValueEditorDialogResizable
close, configureShell, createButtonsForButtonBar, createDialogArea, getInitialLocation, getInitialSize, getValue, isEditable
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, 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, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
-
-
-
Constructor Detail
-
ExpressionDialog
public ExpressionDialog(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, String expr, boolean select, boolean first, boolean editable)
Constructor- Parameters:
shell
- shell, can't benull
settingsProvider
- settings provider, can't benull
expr
- initial expression, can't benull
select
- select contentfirst
- first dialogeditable
- the editable state,true
if this dialog is editable,false
otherwise
-
-
Method Detail
-
okPressed
protected void okPressed()
- Overrides:
okPressed
in classorg.eclipse.jface.dialogs.Dialog
-
handleShellCloseEvent
protected void handleShellCloseEvent()
- Overrides:
handleShellCloseEvent
in classorg.eclipse.jface.window.Window
-
createContent
protected void createContent(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createContent
in classValueEditorDialogResizable<String>
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
getSettingsProvider
public IDcsSettingsProvider getSettingsProvider()
Get settings provider- Returns:
- settings provider, never null
-
getViewer
public ExpressionsViewer getViewer()
Get main viewer- Returns:
- viewer, never null
-
-