Package com._1c.g5.v8.dt.qw.ui.tabs
Class TablesAndFieldsTab
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.tabs.AbstractLazyTab
-
- com._1c.g5.v8.dt.qw.ui.tabs.TablesAndFieldsTab
-
public final class TablesAndFieldsTab extends AbstractLazyTab
Tab for tables and fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTablesAndFieldsTab.SourcesSearchHistorySpecial implementation ofInMemorySearchHistoryfor sources tree.
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.tabs.AbstractLazyTab
init, project, querySchemaSource, queryWizard, tabFolder, tabItem
-
-
Constructor Summary
Constructors Constructor Description TablesAndFieldsTab(QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project, org.eclipse.swt.custom.CTabFolder tabFolder, IBmNavigatorOrderIndexManager bmNavigatorOrderIndexManager, IConfigurationProvider configurationProvider)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidchangeExpression(QuerySchemaExpression querySchemaExpression, QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project)Change expression in dialogprotected voidcreateTabContent()Creates content of the tab item, method will be call once when tab item has not been initialized yet.TreeViewergetAvailableTablesTree()GetsTreeViewerwith all available tables for queryTreeViewergetFieldsTree()GetsTreeViewerwith select fields of query operatorTreeViewergetSourcesTree()GetsTreeViewerwith sources of query operatorprotected voidsetTreeProviders()Sets content and label providers to the trees in tab items-
Methods inherited from class com._1c.g5.v8.dt.qw.ui.tabs.AbstractLazyTab
addPaintListener, getTabItem, init, isInit, setTabItem, updateTreeProviders
-
-
-
-
Constructor Detail
-
TablesAndFieldsTab
public TablesAndFieldsTab(QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project, org.eclipse.swt.custom.CTabFolder tabFolder, IBmNavigatorOrderIndexManager bmNavigatorOrderIndexManager, IConfigurationProvider configurationProvider)
Constructor- Parameters:
queryWizard- actual Query wizard control, cannot benullproject- actual context project of Query Builder, cannot benulltabFolder- parentCTabFolderfor creating tab on it, cannot benullbmNavigatorOrderIndexManager- - service to getIBmNavigatorOrderIndexProvider. Cannot benull.configurationProvider- - service to get configuration using eObject. Cannot benull.
-
-
Method Detail
-
changeExpression
public static void changeExpression(QuerySchemaExpression querySchemaExpression, QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project)
Change expression in dialog- Parameters:
querySchemaExpression-queryWizard-project-
-
getAvailableTablesTree
public TreeViewer getAvailableTablesTree()
GetsTreeViewerwith all available tables for query- Returns:
TreeViewerwith all available tables for query, nevernull
-
getSourcesTree
public TreeViewer getSourcesTree()
GetsTreeViewerwith sources of query operator- Returns:
TreeViewerwith sources of query operator, nevernull
-
getFieldsTree
public TreeViewer getFieldsTree()
GetsTreeViewerwith select fields of query operator- Returns:
TreeViewerwith select fields of query operator, nevernull
-
setTreeProviders
protected void setTreeProviders()
Description copied from class:AbstractLazyTabSets content and label providers to the trees in tab items- Specified by:
setTreeProvidersin classAbstractLazyTab
-
createTabContent
protected void createTabContent()
Description copied from class:AbstractLazyTabCreates content of the tab item, method will be call once when tab item has not been initialized yet. SeeAbstractLazyTab.init()- Specified by:
createTabContentin classAbstractLazyTab
-
-