Class DataCompositionSettingsDialog
- 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<DataCompositionSettings>
-
- com._1c.g5.v8.dt.dcs.ui.valueeditors.settings.DataCompositionSettingsDialog
-
- All Implemented Interfaces:
IDcsEnvironmentProvider
,IDcsListener
,IDcsSettingsProvider
,IValueEditorDialog<DataCompositionSettings>
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.jface.window.IShellProvider
public class DataCompositionSettingsDialog extends SettingsDialog<DataCompositionSettings> implements org.eclipse.core.runtime.IAdaptable
Nested schema settings 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 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 DataCompositionSettingsDialog(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, IMdTypeIndex mdTypeIndex, IBmEmfIndexManager emfIndexManager, IBmEditingContext editingContext, NestedDataCompositionSchema nested, DataCompositionSettings settings, 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)
DcsAvailableSettingsSourceForSchema.FieldUse
getAvailableFieldsUse()
Get available fields variant (Filter, Order, etc.)Object
getCurrentObject()
Get current object.Object
getDestinationForAvailableField()
Get parent destination object in main viewer for available fieldString
getNestedSchemaName()
Get nested schema nameDataCompositionSchema
getSchema()
Get dcs schemaList<DcsAvailableFieldInfo>
getSelectedAvailableFields()
Get info of selected available fields in current folderObject
getSelectedObject()
Get selected object (selected node in structure tree or main object).List<Object>
getSelectedViewerNodes()
Get selected objects in main viewer (destination)DataCompositionSettings
getSettings()
GetDataCompositionSettings
model objectvoid
notify(DcsEvent event)
Сообщить о событии-
Methods inherited from class com._1c.g5.v8.dt.dcs.ui.settings.SettingsDialog
addModelChangedListener, close, getAvailableFieldsSource, getBmModel, getCurrentLanguageCode, getCurrentTabKind, getEditingContext, getExpressionsFieldsUse, getFieldTitle, 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, okPressed, 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
-
-
-
-
Constructor Detail
-
DataCompositionSettingsDialog
public DataCompositionSettingsDialog(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, IMdTypeIndex mdTypeIndex, IBmEmfIndexManager emfIndexManager, IBmEditingContext editingContext, NestedDataCompositionSchema nested, DataCompositionSettings settings, boolean editable)
Constructor- Parameters:
shell
- shell, can't be nullsettingsProvider
- settings provider, can't be nullmdTypeIndex
- The MD type manager. May not benull
emfIndexManger
- The EMF index manager. May not benull
editingContext
- the BM editing context, can't be nullnested
- nested schema object, can't be nullsettings
- settings object, can't be nulleditable
- the editable state,true
if this dialog is editable,false
otherwise
-
-
Method Detail
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
notify
public void notify(DcsEvent event)
Description copied from interface:IDcsListener
Сообщить о событии- Specified by:
notify
in interfaceIDcsListener
- Overrides:
notify
in classSettingsDialog<DataCompositionSettings>
- Parameters:
event
- событие
-
getSelectedAvailableFields
public List<DcsAvailableFieldInfo> getSelectedAvailableFields()
Description copied from interface:IDcsSettingsProvider
Get info of selected available fields in current folder- Specified by:
getSelectedAvailableFields
in interfaceIDcsSettingsProvider
- Overrides:
getSelectedAvailableFields
in classSettingsDialog<DataCompositionSettings>
- Returns:
- list of
DcsAvailableFieldInfo
objects, 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<DataCompositionSettings>
- Returns:
- list of selected objects, never null
-
getDestinationForAvailableField
public Object getDestinationForAvailableField()
Description copied from interface:IDcsSettingsProvider
Get parent destination object in main viewer for available field- Specified by:
getDestinationForAvailableField
in interfaceIDcsSettingsProvider
- Overrides:
getDestinationForAvailableField
in classSettingsDialog<DataCompositionSettings>
- Returns:
- parent destination object
-
getAvailableFieldsUse
public DcsAvailableSettingsSourceForSchema.FieldUse getAvailableFieldsUse()
Description copied from interface:IDcsSettingsProvider
Get available fields variant (Filter, Order, etc.)- Specified by:
getAvailableFieldsUse
in interfaceIDcsSettingsProvider
- Overrides:
getAvailableFieldsUse
in classSettingsDialog<DataCompositionSettings>
- Returns:
- available fields variant
-
getSelectedObject
public Object getSelectedObject()
Description copied from interface:IDcsSettingsProvider
Get selected object (selected node in structure tree or main object). Object can be one ofDataCompositionSettings
,StructureItem
,DataCompositionTableGroup
,DataCompositionChartGroup
- Specified by:
getSelectedObject
in interfaceIDcsSettingsProvider
- Overrides:
getSelectedObject
in classSettingsDialog<DataCompositionSettings>
- Returns:
- selected object, never null
-
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<DataCompositionSettings>
- Returns:
- current object, never null
-
getSettings
public DataCompositionSettings getSettings()
Description copied from interface:IDcsSettingsProvider
GetDataCompositionSettings
model object- Specified by:
getSettings
in interfaceIDcsSettingsProvider
- Overrides:
getSettings
in classSettingsDialog<DataCompositionSettings>
- Returns:
DataCompositionSettings
model object
-
getSchema
public DataCompositionSchema getSchema()
Description copied from interface:IDcsSettingsProvider
Get dcs schema- Specified by:
getSchema
in interfaceIDcsSettingsProvider
- Overrides:
getSchema
in classSettingsDialog<DataCompositionSettings>
- Returns:
- schema, can be null
-
getNestedSchemaName
public String getNestedSchemaName()
Description copied from interface:IDcsSettingsProvider
Get nested schema name- Specified by:
getNestedSchemaName
in interfaceIDcsSettingsProvider
- Overrides:
getNestedSchemaName
in classSettingsDialog<DataCompositionSettings>
- Returns:
- nested schema name, never null (empty for the main schema)
-
createContent
protected void createContent(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createContent
in classValueEditorDialogResizable<DataCompositionSettings>
-
-