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 Summary
Constructors 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
-
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 Detail
-
getShell
public org.eclipse.swt.widgets.Shell getShell()
Gets activeShellof created editors- Returns:
- active
Shell, nevernull
-
getDataCompositionSchema
public DataCompositionSchema getDataCompositionSchema()
Gets editingDataCompositionSchema- Returns:
- editing
DataCompositionSchema, nevernull
-
getDataCompositionSchemaEditor
public DataCompositionSchemaEditor getDataCompositionSchemaEditor()
Gets actualDataCompositionSchemaEditor- Returns:
- actual
DataCompositionSchemaEditor, can benullif data composition editors is used for editing form dynamic list
-
getV8project
public IV8Project getV8project()
Description copied from interface:IDcsEnvironmentProviderGet V8 project- Specified by:
getV8projectin interfaceIDcsEnvironmentProvider- Returns:
- the V8 project
-
getCurrentLanguageCode
public String getCurrentLanguageCode()
Description copied from interface:IDcsEnvironmentProviderGet current language code- Specified by:
getCurrentLanguageCodein interfaceIDcsEnvironmentProvider- Returns:
- current language code
-
getVersion
public Version 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
public DcsSelectionProvider getSelectionProvider()
Gets actualDcsSelectionProviderfor integrating data composition schema editors. It is used for getting actual selection of editors- Returns:
- actual
DcsSelectionProvider, nevernull
-
getEditingContext
public IBmEditingContext getEditingContext()
Description copied from interface:IDcsEnvironmentProviderReturns the BM editing context.- Specified by:
getEditingContextin interfaceIDcsEnvironmentProvider- Returns:
- the BM editing context, never
null.
-
getBmModel
public IBmModel getBmModel()
Description copied from interface:IDcsEnvironmentProviderReturns the BM model.- Specified by:
getBmModelin interfaceIDcsEnvironmentProvider- Returns:
- the BM model, never
null.
-
notify
public void notify(DcsEvent event)
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
public void addPage(EditorPage page)
Adds createdEditorPage- Parameters:
page- created data composition schemaEditorPage, cannot benull
-
addPages
public void addPages(Collection<EditorPage> pages)
Adds createdEditorPages- Parameters:
pages- created data composition schemaEditorPages, cannot benull
-
getPages
public List<EditorPage> getPages()
Gets all createdEditorPagefor editingDataCompositionSchema- Returns:
- list of created
EditorPagefor editingDataCompositionSchema, nevernull
-
updateDcsDataSetInfoLocalQueryCache
public void updateDcsDataSetInfoLocalQueryCache(DataCompositionSchemaDataSetQuery dataSet)
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
public IMdTypeIndex getMdTypeIndex()
Gets actualIMdTypeIndex- Returns:
- actual
IMdTypeIndex, nevernull
-
getEmfIndexManager
public IBmEmfIndexManager getEmfIndexManager()
Gets actualIMdTypeIndex- Returns:
- actual
IMdTypeIndex, nevernull
-
-