javanebulaselectionmodelnattable

nattable multiple row selection


I am using NatTable and I want to select some rows in my table. Additional I want to select some other rows after this (CTRL + left mouse-click).

There is no problem with the first selection, but when I try to select some additional rows, my first selection got lost. This happens only if I do my second selection in dragmode. When I select every additional row by single clicking everything works fine.

I used the RowSelectionModel with the DefaultRowSelectionLayerConfiguration:

    selectionLayer.setSelectionModel(new RowSelectionModel<Entry>(selectionLayer, bodyDataProvider, new IRowIdAccessor<Entry>() {

        @Override
        public Serializable getRowId(Entry rowObject) {
            return rowObject.getStartLine();

        }
    }));
    selectionLayer.addConfiguration(new DefaultRowSelectionLayerConfiguration());

Maybe I just did a silly mistake and you guys can help me.


Solution

  • It looks like an issue in the NatTable code. I created a ticket for this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=494392