blob: 9c3216485a84cf80f6dc1b30a1da4d50d5c75b10 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2012, 2021 Original NatTable authors 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:
# Original NatTable authors and others - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.ecommons.waltable.viewport;
import java.util.Collection;
import org.eclipse.statet.ecommons.waltable.coordinate.LRange;
import org.eclipse.statet.ecommons.waltable.layer.ILayerDim;
import org.eclipse.statet.ecommons.waltable.selection.AbstractSelectDimPositionsCommand;
/**
* Command to select column(s)/row(s) in the viewport.
*/
public class ViewportSelectDimPositionsCommand extends AbstractSelectDimPositionsCommand {
public ViewportSelectDimPositionsCommand(final ILayerDim dim,
final long position, final int selectionFlags) {
super(dim, position, selectionFlags);
}
public ViewportSelectDimPositionsCommand(final ILayerDim dim,
final long refPosition, final Collection<LRange> positions,
final long positionToReveal, final int selectionFlags) {
super(dim, refPosition, positions, positionToReveal, selectionFlags);
}
protected ViewportSelectDimPositionsCommand(final ViewportSelectDimPositionsCommand command) {
super(command);
}
@Override
public ViewportSelectDimPositionsCommand cloneCommand() {
return new ViewportSelectDimPositionsCommand(this);
}
}