use of org.talend.designer.dbmap.model.table.AbstractInOutTable in project tdi-studio-se by Talend.
the class TableManager method addTable.
/**
* DOC amaumont Comment method "addTable".
*
* @param view
* @param tableData
*/
@SuppressWarnings("unchecked")
void addTable(DataMapTableView view, IDataMapTable tableData) {
if (tableData instanceof AbstractInOutTable) {
AbstractInOutTable data = (AbstractInOutTable) tableData;
metadataTableToIDataMapTable.put(data.getMetadataTable(), data);
}
getMatchedList(tableData).add(tableData);
swtTableToView.put(view.getTableViewerCreatorForColumns().getTable(), view);
if (view.getTableViewerCreatorForWhereFilters() != null) {
swtTableToView.put(view.getTableViewerCreatorForWhereFilters().getTable(), view);
}
if (view.getTableViewerCreatorForOtherFilters() != null) {
swtTableToView.put(view.getTableViewerCreatorForOtherFilters().getTable(), view);
}
abstractDataMapTableToView.put(tableData, view);
}
use of org.talend.designer.dbmap.model.table.AbstractInOutTable in project tdi-studio-se by Talend.
the class UIManager method refreshInOutTableAndMetaTable.
/**
*
* DOC amaumont Comment method "refreshInOutTableAndMetaTable".
*
* @param dataMapTableView
*/
private void refreshInOutTableAndMetaTable(DataMapTableView dataMapTableView) {
IMetadataTable metadataTableTarget = ((AbstractInOutTable) dataMapTableView.getDataMapTable()).getMetadataTable();
dataMapTableView.getTableViewerCreatorForColumns().getTableViewer().refresh();
MetadataTableEditorView metadataEditorView = getMetadataEditorView(dataMapTableView.getZone());
if (metadataEditorView != null && metadataEditorView.getMetadataTableEditor() != null && metadataEditorView.getMetadataTableEditor().getMetadataTable() == metadataTableTarget) {
metadataEditorView.getTableViewerCreator().getTableViewer().refresh();
metadataEditorView.getTableViewerCreator().refreshTableEditorControls();
}
}
Aggregations