use of org.talend.designer.dbmap.model.table.AbstractDataMapTable in project tdi-studio-se by Talend.
the class MapperManager method removeSelectedOutputTable.
public void removeSelectedOutputTable() {
OutputDataMapTableView currentSelectedDataMapTableView = uiManager.getCurrentSelectedOutputTableView();
if (currentSelectedDataMapTableView != null) {
OutputTable outputTable = (OutputTable) currentSelectedDataMapTableView.getDataMapTable();
String tableTitle = ((AbstractDataMapTable) currentSelectedDataMapTableView.getDataMapTable()).getTitle();
if (MessageDialog.openConfirm(currentSelectedDataMapTableView.getShell(), //$NON-NLS-1$
Messages.getString("MapperManager.removeOutputTableTitle"), Messages.getString("MapperManager.removeOutputTableTitleMessage", new Object[] { tableTitle }))) {
//$NON-NLS-1$
IProcess process = mapperComponent.getProcess();
uiManager.removeOutputTableView(currentSelectedDataMapTableView);
uiManager.updateToolbarButtonsStates(Zone.OUTPUTS);
process.removeUniqueConnectionName(outputTable.getUniqueName());
uiManager.refreshSqlExpression();
}
}
}
Aggregations