Package com._1c.g5.v8.dt.dcs.ui
Class DataCompositionSchemaControlContext
- java.lang.Object
- 
- com._1c.g5.v8.dt.dcs.ui.DataCompositionSchemaControlContext
 
- 
- All Implemented Interfaces:
- IDcsEnvironmentProvider,- IDcsListener
 
 public class DataCompositionSchemaControlContext extends Object implements IDcsEnvironmentProvider Context contains data for creating data composition schema editors and integrating them for each other
- 
- 
Constructor SummaryConstructors Constructor Description DataCompositionSchemaControlContext(IV8Project v8Project, DataCompositionSchema schema, String currentLanguageCode, boolean isEditable, IDcsListener dcsListener, IBmModel bmModel, IBmEditingContext editingContext, DcsSelectionProvider dcsSelectionProvider, org.eclipse.swt.widgets.Shell shell, IMdTypeIndex mdTypeIndex, IBmEmfIndexManager emfIndexManager, DataCompositionSchemaEditor editor)Constructor
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
DataCompositionSchemaControlContextpublic DataCompositionSchemaControlContext(IV8Project v8Project, DataCompositionSchema schema, String currentLanguageCode, boolean isEditable, IDcsListener dcsListener, IBmModel bmModel, IBmEditingContext editingContext, DcsSelectionProvider dcsSelectionProvider, org.eclipse.swt.widgets.Shell shell, IMdTypeIndex mdTypeIndex, IBmEmfIndexManager emfIndexManager, DataCompositionSchemaEditor editor) Constructor- Parameters:
- v8Project- actual- IV8Project, cannot be- null
- schema- actual- DataCompositionSchemafor creating and integrating editors, cannot be- null
- currentLanguageCode- current language code of- IV8Project, cannot be- null
- isEditable-- trueif creating editors can change- DataCompositionSchema,- falseotherwise
- dcsListener- actual- IDcsListenerfor integrating data composition schema editors. It is used for notifying editors for each other, cannot be- null
- editingContext- current editors- IBmEditingContextfor change- DataCompositionSchema, cannot be- null
- dcsSelectionProvider- actual- DcsSelectionProviderfor integrating data composition schema editors. It is used for getting actual selection of editors, cannot be- null
- shell- current- Shell, cannot be- null
- mdTypeIndex- actual- IMdTypeIndex, cannot be- null
- editor- actual- DataCompositionSchemaEditor, can be- nullif data composition editors is used for editing form dynamic list
 
 
- 
 - 
Method Detail- 
getShellpublic org.eclipse.swt.widgets.Shell getShell() Gets activeShellof created editors- Returns:
- active Shell, nevernull
 
 - 
getDataCompositionSchemapublic DataCompositionSchema getDataCompositionSchema() Gets editingDataCompositionSchema- Returns:
- editing DataCompositionSchema, nevernull
 
 - 
getDataCompositionSchemaEditorpublic DataCompositionSchemaEditor getDataCompositionSchemaEditor() Gets actualDataCompositionSchemaEditor- Returns:
- actual DataCompositionSchemaEditor, can benullif data composition editors is used for editing form dynamic list
 
 - 
getV8projectpublic IV8Project getV8project() Description copied from interface:IDcsEnvironmentProviderGet V8 project- Specified by:
- getV8projectin interface- IDcsEnvironmentProvider
- Returns:
- the V8 project
 
 - 
getCurrentLanguageCodepublic String getCurrentLanguageCode() Description copied from interface:IDcsEnvironmentProviderGet current language code- Specified by:
- getCurrentLanguageCodein interface- IDcsEnvironmentProvider
- Returns:
- current language code
 
 - 
getVersionpublic Version getVersion() Description copied from interface:IDcsEnvironmentProviderGet runtime version- Specified by:
- getVersionin interface- IDcsEnvironmentProvider
- Returns:
- runtime version
 
 - 
isEditablepublic boolean isEditable() Checks possibility for editors changeDataCompositionSchema- Returns:
- trueif editors can change- DataCompositionSchema,- falseotherwise
 
 - 
getSelectionProviderpublic DcsSelectionProvider getSelectionProvider() Gets actualDcsSelectionProviderfor integrating data composition schema editors. It is used for getting actual selection of editors- Returns:
- actual DcsSelectionProvider, nevernull
 
 - 
getEditingContextpublic IBmEditingContext getEditingContext() Description copied from interface:IDcsEnvironmentProviderReturns the BM editing context.- Specified by:
- getEditingContextin interface- IDcsEnvironmentProvider
- Returns:
- the BM editing context, never null.
 
 - 
getBmModelpublic IBmModel getBmModel() Description copied from interface:IDcsEnvironmentProviderReturns the BM model.- Specified by:
- getBmModelin interface- IDcsEnvironmentProvider
- Returns:
- the BM model, never null.
 
 - 
notifypublic void notify(DcsEvent event) Description copied from interface:IDcsListenerСообщить о событии- Specified by:
- notifyin interface- IDcsListener
- Parameters:
- event- событие
 
 - 
createToolbarpublic List<CommandAction> createToolbar(org.eclipse.swt.widgets.Composite parent, int style, String... commands) Creates toolbar action and menu for composite by command ids- Parameters:
- parent-- Compositefor adding menu, cannot be- null
- style- menu SWT style
- commands- ids of menu commands
 
 - 
addPagepublic void addPage(EditorPage page) Adds createdEditorPage- Parameters:
- page- created data composition schema- EditorPage, cannot be- null
 
 - 
addPagespublic void addPages(Collection<EditorPage> pages) Adds createdEditorPages- Parameters:
- pages- created data composition schema- EditorPages, cannot be- null
 
 - 
getPagespublic List<EditorPage> getPages() Gets all createdEditorPagefor editingDataCompositionSchema- Returns:
- list of created  EditorPagefor editingDataCompositionSchema, nevernull
 
 - 
updateDcsDataSetInfoLocalQueryCachepublic void updateDcsDataSetInfoLocalQueryCache(DataCompositionSchemaDataSetQuery dataSet) Updates cache ofDcsDataSetInfoV8LocalQueryby information fromDataCompositionSchemaDataSetQuerySeeDcsPlugin.getDcsDataSetInfoLocalQueryCache()- Parameters:
- dataSet- actual- DataCompositionSchemaDataSetQueryfor updating cache values, cannot be- null
 
 - 
isDynamicListContextpublic boolean isDynamicListContext() Check thatDataCompositionSchemaEditorwas created or not for editingDataCompositionSchemaIf editor was not created that meansDataCompositionSchemafrom form dynamic list editing- Returns:
- trueif- DataCompositionSchemafrom form dynamic list editing and- DataCompositionSchemaEditorwas not created,- falseotherwise
 
 - 
getMdTypeIndexpublic IMdTypeIndex getMdTypeIndex() Gets actualIMdTypeIndex- Returns:
- actual IMdTypeIndex, nevernull
 
 - 
getEmfIndexManagerpublic IBmEmfIndexManager getEmfIndexManager() Gets actualIMdTypeIndex- Returns:
- actual IMdTypeIndex, nevernull
 
 
- 
 
-