| /*=============================================================================# |
| # Copyright (c) 2010, 2021 Stephan Wahlbrink 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, or the Apache License, Version 2.0 |
| # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| # |
| # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| # |
| # Contributors: |
| # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| #=============================================================================*/ |
| |
| package org.eclipse.statet.ecommons.waltable.selection; |
| |
| import org.eclipse.statet.ecommons.waltable.coordinate.Direction; |
| |
| |
| public class SelectRelativeCellCommand extends AbstractSelectRelativeCommand { |
| |
| |
| public SelectRelativeCellCommand(final Direction direction) { |
| this(direction, 1, 0); |
| } |
| |
| public SelectRelativeCellCommand(final Direction direction, final long stepCount, final int selectionFlags) { |
| super(direction, stepCount, selectionFlags); |
| } |
| |
| protected SelectRelativeCellCommand(final SelectRelativeCellCommand command) { |
| super(command); |
| } |
| |
| @Override |
| public SelectRelativeCellCommand cloneCommand() { |
| return new SelectRelativeCellCommand(this); |
| } |
| |
| |
| } |