Project

General

Profile

Revision 8dc339f5

ID8dc339f51c4412aa7f8f54277ea9e305557af8e0
Parent 32b90a5c
Child e3492ca9

Added by Patrick Plitzner over 2 years ago

ref #7439 Scroll to selection when editing elements

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)