use of org.talend.sqlbuilder.dbdetail.tab.IndexesTab in project tdi-studio-se by Talend.
the class DetailTabManager method createTabs.
/**
* Returns a list of all available tabs for a given node. These tabs can be
* standard or plugin tabs.
*
* @param node for which to find tabs.
* @return List of tabs
*/
//$NON-NLS-1$
@SuppressWarnings("unchecked")
private static List createTabs(INode node) {
// if (CONSTANT_LOGGER.isDebugEnabled()) {
// CONSTANT_LOGGER.debug("Creating tabs for: " + node.getUniqueIdentifier());
// }
ArrayList tabList = new ArrayList();
// create connection info tab if needed
if (node instanceof DatabaseNode) {
IDetailTab dbTab = new ConnectionInfoTab();
dbTab.setNode(node);
tabList.add(dbTab);
}
// create our basic table tabs
if (node instanceof TableNode) {
IDetailTab tab1 = new ColumnInfoTab();
//IDetailTab tab2 = new TableInfoTab();
IDetailTab tab3 = new PreviewTab();
IDetailTab tab4 = new RowCountTab();
IDetailTab tab5 = new PrimaryKeysTab();
IDetailTab tab6 = new ExportedKeysTab();
IDetailTab tab7 = new ImportedKeysTab();
IDetailTab tab8 = new IndexesTab();
//IDetailTab tab9 = new PriviligesTab();
//IDetailTab tab10 = new ColumnPriviligesTab();
//IDetailTab tab11 = new RowIdsTab();
//IDetailTab tab12 = new VersionsTab();
tab1.setNode(node);
//tab2.setNode(node);
tab3.setNode(node);
tab4.setNode(node);
tab5.setNode(node);
tab6.setNode(node);
tab7.setNode(node);
tab8.setNode(node);
//tab9.setNode(node);
//tab10.setNode(node);
//tab11.setNode(node);
//tab12.setNode(node);
tabList.add(tab1);
//tabList.add(tab2);
tabList.add(tab3);
tabList.add(tab4);
tabList.add(tab5);
tabList.add(tab6);
tabList.add(tab7);
tabList.add(tab8);
//tabList.add(tab9);
//tabList.add(tab10);
//tabList.add(tab11);
//tabList.add(tab12);
}
return tabList;
}
Aggregations