Revision 8dc339f5
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java | ||
---|---|---|
55 | 55 |
import org.eclipse.nebula.widgets.nattable.layer.stack.DefaultBodyLayerStack; |
56 | 56 |
import org.eclipse.nebula.widgets.nattable.selection.RowSelectionModel; |
57 | 57 |
import org.eclipse.nebula.widgets.nattable.selection.RowSelectionProvider; |
58 |
import org.eclipse.nebula.widgets.nattable.selection.SelectionLayer;
|
|
58 |
import org.eclipse.nebula.widgets.nattable.selection.command.SelectRowsCommand;
|
|
59 | 59 |
import org.eclipse.nebula.widgets.nattable.sort.SortHeaderLayer; |
60 | 60 |
import org.eclipse.nebula.widgets.nattable.sort.config.SingleClickSortConfiguration; |
61 | 61 |
import org.eclipse.nebula.widgets.nattable.style.theme.ModernNatTableThemeConfiguration; |
... | ... | |
396 | 396 |
Object[] objects = selection.toArray(); |
397 | 397 |
for (Object object : objects) { |
398 | 398 |
if(object instanceof CdmBase){ |
399 |
selectionLayer.selectRow(0, bodyDataProvider.indexOfRowObject((CdmBase) object), false, false);
|
|
399 |
natTable.doCommand(new SelectRowsCommand(bodyLayer, 0, bodyDataProvider.indexOfRowObject((CdmBase) object), false, false));
|
|
400 | 400 |
} |
401 | 401 |
} |
402 | 402 |
} |
... | ... | |
458 | 458 |
input.replaceInModel((CdmBase) element); |
459 | 459 |
} |
460 | 460 |
dirty.setDirty(true); |
461 |
setSelection(getSelection()); |
|
461 | 462 |
} |
462 | 463 |
|
463 | 464 |
@Override |
Also available in: Unified diff
ref #7439 Scroll to selection when editing elements