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 class
TablesAndFieldsTab.SourcesSearchHistory
Special implementation ofInMemorySearchHistory
for 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 void
changeExpression(QuerySchemaExpression querySchemaExpression, QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project)
Change expression in dialogprotected void
createTabContent()
Creates content of the tab item, method will be call once when tab item has not been initialized yet.TreeViewer
getAvailableTablesTree()
GetsTreeViewer
with all available tables for queryTreeViewer
getFieldsTree()
GetsTreeViewer
with select fields of query operatorTreeViewer
getSourcesTree()
GetsTreeViewer
with sources of query operatorprotected void
setTreeProviders()
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 benull
project
- actual context project of Query Builder, cannot benull
tabFolder
- parentCTabFolder
for creating tab on it, cannot benull
bmNavigatorOrderIndexManager
- - 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()
GetsTreeViewer
with all available tables for query- Returns:
TreeViewer
with all available tables for query, nevernull
-
getSourcesTree
public TreeViewer getSourcesTree()
GetsTreeViewer
with sources of query operator- Returns:
TreeViewer
with sources of query operator, nevernull
-
getFieldsTree
public TreeViewer getFieldsTree()
GetsTreeViewer
with select fields of query operator- Returns:
TreeViewer
with select fields of query operator, nevernull
-
setTreeProviders
protected void setTreeProviders()
Description copied from class:AbstractLazyTab
Sets content and label providers to the trees in tab items- Specified by:
setTreeProviders
in classAbstractLazyTab
-
createTabContent
protected void createTabContent()
Description copied from class:AbstractLazyTab
Creates content of the tab item, method will be call once when tab item has not been initialized yet. SeeAbstractLazyTab.init()
- Specified by:
createTabContent
in classAbstractLazyTab
-
-