use of org.talend.designer.mapper.ui.visualmap.table.DataMapTableView in project tdi-studio-se by Talend.
the class UIManager method moveSelectTableUp.
/**
*
* DOC amaumont Comment method "moveSelectTableUp".
*
* @param currentSelectedTableView
* @param tablesView
* @param indexStartMovedAuthorized
*/
private void moveSelectTableUp(DataMapTableView currentSelectedTableView, List<DataMapTableView> tablesView, int indexStartMovedAuthorized) {
int indexCurrentTable = tablesView.indexOf(currentSelectedTableView);
if (indexCurrentTable < indexStartMovedAuthorized) {
return;
}
FormData formDataCurrent = (FormData) currentSelectedTableView.getLayoutData();
DataMapTableView beforePreviousTableView = null;
if (indexCurrentTable - 2 >= 0) {
beforePreviousTableView = tablesView.get(indexCurrentTable - 2);
formDataCurrent.top.control = beforePreviousTableView;
} else {
formDataCurrent.top.control = null;
}
DataMapTableView previousTableView = null;
if (indexCurrentTable - 1 >= 0) {
previousTableView = tablesView.get(indexCurrentTable - 1);
FormData formDataPrevious = (FormData) previousTableView.getLayoutData();
formDataPrevious.top.control = currentSelectedTableView;
}
if (indexCurrentTable + 1 <= tablesView.size() - 1) {
DataMapTableView nextTableView = tablesView.get(indexCurrentTable + 1);
FormData formDataNext = (FormData) nextTableView.getLayoutData();
formDataNext.top.control = previousTableView;
}
tableManager.swapWithPreviousTable(currentSelectedTableView.getDataMapTable());
currentSelectedTableView.getParent().layout();
parseAllExpressions(currentSelectedTableView, false);
parseAllExpressions(previousTableView, false);
checkProblemsForMovedTables(currentSelectedTableView, previousTableView);
}
use of org.talend.designer.mapper.ui.visualmap.table.DataMapTableView in project tdi-studio-se by Talend.
the class UIManager method registerCustomPaint.
public void registerCustomPaint() {
List<DataMapTableView> tablesView = mapperManager.getUiManager().getOutputsTablesView();
tablesView.addAll(mapperManager.getUiManager().getInputsTablesView());
for (DataMapTableView view : tablesView) {
view.getTableViewerCreatorForColumns().setUseCustomItemColoring(false);
}
}
Aggregations