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
Context contains data for creating data composition schema editors and integrating them for each other
-
Constructor Summary
ConstructorsConstructorDescriptionDataCompositionSchemaControlContext(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
Modifier and TypeMethodDescriptionvoidaddPage(EditorPage page) Adds createdEditorPagevoidaddPages(Collection<EditorPage> pages) Adds createdEditorPagescreateToolbar(org.eclipse.swt.widgets.Composite parent, int style, String... commands) Creates toolbar action and menu for composite by command idsReturns the BM model.Get current language codeGets editingDataCompositionSchemaGets actualDataCompositionSchemaEditorReturns the BM editing context.Gets actualIMdTypeIndexGets actualIMdTypeIndexgetPages()Gets all createdEditorPagefor editingDataCompositionSchemaGets actualDcsSelectionProviderfor integrating data composition schema editors.org.eclipse.swt.widgets.ShellgetShell()Gets activeShellof created editorsGet V8 projectGet runtime versionbooleanCheck thatDataCompositionSchemaEditorwas created or not for editingDataCompositionSchemaIf editor was not created that meansDataCompositionSchemafrom form dynamic list editingbooleanChecks possibility for editors changeDataCompositionSchemavoidСообщить о событииvoidUpdates cache ofDcsDataSetInfoV8LocalQueryby information fromDataCompositionSchemaDataSetQuerySeeDcsPlugin.getDcsDataSetInfoLocalQueryCache()
-
Constructor Details
-
DataCompositionSchemaControlContext
public 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- actualIV8Project, cannot benullschema- actualDataCompositionSchemafor creating and integrating editors, cannot benullcurrentLanguageCode- current language code ofIV8Project, cannot benullisEditable-trueif creating editors can changeDataCompositionSchema,falseotherwisedcsListener- actualIDcsListenerfor integrating data composition schema editors. It is used for notifying editors for each other, cannot benulleditingContext- current editorsIBmEditingContextfor changeDataCompositionSchema, cannot benulldcsSelectionProvider- actualDcsSelectionProviderfor integrating data composition schema editors. It is used for getting actual selection of editors, cannot benullshell- currentShell, cannot benullmdTypeIndex- actualIMdTypeIndex, cannot benulleditor- actualDataCompositionSchemaEditor, can benullif data composition editors is used for editing form dynamic list
-
-
Method Details
-
getShell
public org.eclipse.swt.widgets.Shell getShell()Gets activeShellof created editors- Returns:
- active
Shell, nevernull
-
getDataCompositionSchema
Gets editingDataCompositionSchema- Returns:
- editing
DataCompositionSchema, nevernull
-
getDataCompositionSchemaEditor
Gets actualDataCompositionSchemaEditor- Returns:
- actual
DataCompositionSchemaEditor, can benullif data composition editors is used for editing form dynamic list
-
getV8project
Description copied from interface:IDcsEnvironmentProviderGet V8 project- Specified by:
getV8projectin interfaceIDcsEnvironmentProvider- Returns:
- the V8 project
-
getCurrentLanguageCode
Description copied from interface:IDcsEnvironmentProviderGet current language code- Specified by:
getCurrentLanguageCodein interfaceIDcsEnvironmentProvider- Returns:
- current language code
-
getVersion
Description copied from interface:IDcsEnvironmentProviderGet runtime version- Specified by:
getVersionin interfaceIDcsEnvironmentProvider- Returns:
- runtime version
-
isEditable
public boolean isEditable()Checks possibility for editors changeDataCompositionSchema- Returns:
trueif editors can changeDataCompositionSchema,falseotherwise
-
getSelectionProvider
Gets actualDcsSelectionProviderfor integrating data composition schema editors. It is used for getting actual selection of editors- Returns:
- actual
DcsSelectionProvider, nevernull
-
getEditingContext
Description copied from interface:IDcsEnvironmentProviderReturns the BM editing context.- Specified by:
getEditingContextin interfaceIDcsEnvironmentProvider- Returns:
- the BM editing context, never
null.
-
getBmModel
Description copied from interface:IDcsEnvironmentProviderReturns the BM model.- Specified by:
getBmModelin interfaceIDcsEnvironmentProvider- Returns:
- the BM model, never
null.
-
notify
Description copied from interface:IDcsListenerСообщить о событии- Specified by:
notifyin interfaceIDcsListener- Parameters:
event- событие
-
createToolbar
public 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 benullstyle- menu SWT stylecommands- ids of menu commands
-
addPage
Adds createdEditorPage- Parameters:
page- created data composition schemaEditorPage, cannot benull
-
addPages
Adds createdEditorPages- Parameters:
pages- created data composition schemaEditorPages, cannot benull
-
getPages
Gets all createdEditorPagefor editingDataCompositionSchema- Returns:
- list of created
EditorPagefor editingDataCompositionSchema, nevernull
-
updateDcsDataSetInfoLocalQueryCache
Updates cache ofDcsDataSetInfoV8LocalQueryby information fromDataCompositionSchemaDataSetQuerySeeDcsPlugin.getDcsDataSetInfoLocalQueryCache()- Parameters:
dataSet- actualDataCompositionSchemaDataSetQueryfor updating cache values, cannot benull
-
isDynamicListContext
public boolean isDynamicListContext()Check thatDataCompositionSchemaEditorwas created or not for editingDataCompositionSchemaIf editor was not created that meansDataCompositionSchemafrom form dynamic list editing- Returns:
trueifDataCompositionSchemafrom form dynamic list editing andDataCompositionSchemaEditorwas not created,falseotherwise
-
getMdTypeIndex
Gets actualIMdTypeIndex- Returns:
- actual
IMdTypeIndex, nevernull
-
getEmfIndexManager
Gets actualIMdTypeIndex- Returns:
- actual
IMdTypeIndex, nevernull
-