use of org.talend.designer.dbmap.ui.visualmap.table.InputDataMapTableView in project tdi-studio-se by Talend.
the class MapperManager method removeSelectedAliasInputTable.
public void removeSelectedAliasInputTable() {
InputDataMapTableView currentSelectedDataMapTableView = uiManager.getCurrentSelectedInputTableView();
if (currentSelectedDataMapTableView != null) {
String tableName = currentSelectedDataMapTableView.getDataMapTable().getName();
if (MessageDialog.openConfirm(currentSelectedDataMapTableView.getShell(), //$NON-NLS-1$
Messages.getString("MapperManager.removeInputTableTitle"), Messages.getString("MapperManager.removeInputTableTitleMessage", new Object[] { tableName }))) {
//$NON-NLS-1$
IProcess process = mapperComponent.getProcess();
uiManager.removeInputTableView(currentSelectedDataMapTableView);
uiManager.updateToolbarButtonsStates(Zone.INPUTS);
process.removeUniqueConnectionName(currentSelectedDataMapTableView.getDataMapTable().getName());
uiManager.refreshSqlExpression();
}
}
}
use of org.talend.designer.dbmap.ui.visualmap.table.InputDataMapTableView in project tdi-studio-se by Talend.
the class UIManager method createNewInputTableView.
public InputDataMapTableView createNewInputTableView(Control previousControl, InputTable inputTable, Composite parent) {
InputDataMapTableView dataMapTableView = new InputDataMapTableView(parent, SWT.BORDER, inputTable, mapperManager);
FormData formData = new FormData();
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);
formData.top = new FormAttachment(previousControl);
dataMapTableView.setLayoutData(formData);
dataMapTableView.minimizeTable(inputTable.isMinimized());
dataMapTableView.registerStyledExpressionEditor(getTabFolderEditors().getStyledTextHandler());
this.mapperUI.getInputMouseSrolledListener().addMouseWheelListener(dataMapTableView);
return dataMapTableView;
}
Aggregations