blob: ea7de317b371b1ddfdbebba7c26e992746a695e4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013, 2020 Dirk Fauth and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Dirk Fauth <dirk.fauth@googlemail.com> - initial API and implementation
*******************************************************************************/
package org.eclipse.nebula.widgets.nattable.test.fixture.layer;
import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer;
import org.eclipse.nebula.widgets.nattable.reorder.RowReorderLayer;
/**
* This fixture provides a base vanilla RowReorderLayer. In order to keep a
* test's scope narrow, this class exposes the reorderRowPositions method, this
* way we can reorder during testing without having to use commands.
*/
public class BaseRowReorderLayerFixture extends RowReorderLayer {
public BaseRowReorderLayerFixture(IUniqueIndexLayer underlyingLayer) {
super(underlyingLayer);
}
@Override
public void reorderRowPosition(int fromRowPosition, int toRowPosition) {
super.reorderRowPosition(fromRowPosition, toRowPosition);
}
}