use of org.talend.dq.nodes.DFTableRepNode in project tdq-studio-se by Talend.
the class ColumnsSelectionDialog method selectionChanged.
public void selectionChanged(SelectionChangedEvent event) {
// MOD klliu 2011-01-27 15750 todo 31
RepositoryNode selectedObj = (RepositoryNode) ((IStructuredSelection) event.getSelection()).getFirstElement();
if (selectedObj != null) {
if (selectedObj.hasChildren()) {
this.selectedTreeRepoNode = selectedObj;
this.setOutput(selectedObj);
Boolean allCheckFlag = this.getTreeViewer().getChecked(selectedObj);
List<?> repositoryNodeList = (List<?>) modelElementCheckedMap.get(selectedObj);
if (repositoryNodeList != null) {
this.getTableViewer().setCheckedElements(repositoryNodeList.toArray());
} else // MOD klliu check Table/View node is select
if (selectedObj instanceof DBTableRepNode || selectedObj instanceof DBViewRepNode || selectedObj instanceof DFTableRepNode) {
if (allCheckFlag) {
this.getTableViewer().setCheckedElements(selectedObj.getChildren().get(0).getChildren().toArray());
}
}
// ~
}
}
}
Aggregations