Class UserFieldsCaseDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- com._1c.g5.v8.dt.dcs.ui.valueeditors.ValueEditorDialogResizable<T>
-
- com._1c.g5.v8.dt.dcs.ui.settings.SettingsDialog<DataCompositionUserFieldCase>
-
- com._1c.g5.v8.dt.dcs.ui.settings.user.UserFieldsCaseDialog
-
- All Implemented Interfaces:
IDcsEnvironmentProvider
,IDcsListener
,IDcsSettingsProvider
,IValueEditorDialog<DataCompositionUserFieldCase>
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.jface.window.IShellProvider
public class UserFieldsCaseDialog extends SettingsDialog<DataCompositionUserFieldCase> implements org.eclipse.core.runtime.IAdaptable
User field case dialog
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.dcs.ui.settings.IDcsSettingsProvider
IDcsSettingsProvider.TabKind
-
-
Field Summary
Fields Modifier and Type Field Description static int
FILTER_COL_INDEX
static int
PRESENTATION_COL_INDEX
static int
USE_COL_INDEX
static int
VALUE_COL_INDEX
-
Fields inherited from class com._1c.g5.v8.dt.dcs.ui.settings.SettingsDialog
settingsProvider
-
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 UserFieldsCaseDialog(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, IBmEditingContext editingContext, boolean editable)
ConstructorUserFieldsCaseDialog(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, DataCompositionUserFieldCase value, IBmEditingContext editingContext, 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)
<T> T
getAdapter(Class<T> adapter)
Object
getCurrentObject()
Get current object.List<Object>
getSelectedViewerNodes()
Get selected objects in main viewer (destination)void
notify(DcsEvent event)
Сообщить о событииprotected void
okPressed()
-
Methods inherited from class com._1c.g5.v8.dt.dcs.ui.settings.SettingsDialog
addModelChangedListener, close, getAvailableFieldsSource, getAvailableFieldsUse, getBmModel, getCurrentLanguageCode, getCurrentTabKind, getDestinationForAvailableField, getEditingContext, getExpressionsFieldsUse, getFieldTitle, getNestedSchemaName, getSchema, getSelectedAvailableFields, getSelectedObject, getSettings, getV8project, getVersion, isUserFieldsAvailable, open, removeModelChangedListener, setExpressionsFieldsUse, updateAvailableFieldsSource
-
Methods inherited from class com._1c.g5.v8.dt.dcs.ui.valueeditors.ValueEditorDialogResizable
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, handleShellCloseEvent, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
-
-
-
Field Detail
-
USE_COL_INDEX
public static final int USE_COL_INDEX
- See Also:
- Constant Field Values
-
FILTER_COL_INDEX
public static final int FILTER_COL_INDEX
- See Also:
- Constant Field Values
-
VALUE_COL_INDEX
public static final int VALUE_COL_INDEX
- See Also:
- Constant Field Values
-
PRESENTATION_COL_INDEX
public static final int PRESENTATION_COL_INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserFieldsCaseDialog
public UserFieldsCaseDialog(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, DataCompositionUserFieldCase value, IBmEditingContext editingContext, boolean editable)
Constructor- Parameters:
shell
- shell, can't be nullenvironmentProvider
- environment provider, can't be nullvalue
- initial value, can't be nulleditingContext
- the BM editing context, can't be nulleditable
- the editable state,true
if this dialog is editable,false
otherwise
-
UserFieldsCaseDialog
public UserFieldsCaseDialog(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, IBmEditingContext editingContext, boolean editable)
Constructor- Parameters:
shell
- shell, can't be nullenvironmentProvider
- environment provider, can't be nulleditingContext
- the BM editing context, can't be nulleditable
- the editable state,true
if this dialog is editable,false
otherwise
-
-
Method Detail
-
notify
public void notify(DcsEvent event)
Description copied from interface:IDcsListener
Сообщить о событии- Specified by:
notify
in interfaceIDcsListener
- Overrides:
notify
in classSettingsDialog<DataCompositionUserFieldCase>
- Parameters:
event
- событие
-
getCurrentObject
public Object getCurrentObject()
Description copied from interface:IDcsSettingsProvider
Get current object. Object can be one ofDataCompositionSettings
,StructureItem
,DataCompositionTableGroup
,DataCompositionChartGroup
- Specified by:
getCurrentObject
in interfaceIDcsSettingsProvider
- Overrides:
getCurrentObject
in classSettingsDialog<DataCompositionUserFieldCase>
- Returns:
- current object, never null
-
getSelectedViewerNodes
public List<Object> getSelectedViewerNodes()
Description copied from interface:IDcsSettingsProvider
Get selected objects in main viewer (destination)- Specified by:
getSelectedViewerNodes
in interfaceIDcsSettingsProvider
- Overrides:
getSelectedViewerNodes
in classSettingsDialog<DataCompositionUserFieldCase>
- Returns:
- list of selected objects, never null
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
createContent
protected void createContent(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createContent
in classValueEditorDialogResizable<DataCompositionUserFieldCase>
-
okPressed
protected void okPressed()
- Overrides:
okPressed
in classorg.eclipse.jface.dialogs.Dialog
-
-