Revision 04f83f13
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/ChecklistEditorE4.java | ||
---|---|---|
427 | 427 |
*/ |
428 | 428 |
private TableViewerColumn addTableViewerColumn(String title, int bound, final int colNumber, DefinedTermBase term) { |
429 | 429 |
|
430 |
final TableViewerColumn viewerColumn = new TableViewerColumn(viewer, SWT.NONE);
|
|
430 |
final TableViewerColumn viewerColumn = new TableViewerColumn(viewer, SWT.FULL_SELECTION);
|
|
431 | 431 |
final TableColumn column = viewerColumn.getColumn(); |
432 | 432 |
column.setText(title); |
433 | 433 |
String[] UuidAndLable = new String[2]; |
... | ... | |
435 | 435 |
UuidAndLable[1] = title; |
436 | 436 |
column.setData(UuidAndLable); |
437 | 437 |
column.setWidth(200); |
438 |
|
|
438 | 439 |
viewerColumn.setEditingSupport(new DistributionEditingSupportE4(viewer, this, colNumber)); |
439 | 440 |
column.setResizable(true); |
440 | 441 |
column.setMoveable(true); |
... | ... | |
744 | 745 |
|
745 | 746 |
//propagate selection |
746 | 747 |
selectionChangedListener = (event -> selService.setSelection( |
747 |
DistributionEditorHelper.getDistributionForColumn(event))); |
|
748 |
DistributionEditorHelper.getDistributionForColumn(event, areaPosition)));
|
|
748 | 749 |
|
749 | 750 |
viewer.addSelectionChangedListener(selectionChangedListener); |
750 | 751 |
|
Also available in: Unified diff
ref #7063:fix that the last selection always appears in next field in distribution editor