blob: 8d10f7c1288d64466b2fea372402bbaba7d28c19 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 John Krasnay and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* John Krasnay - initial API and implementation
*******************************************************************************/
package org.eclipse.vex.ui.internal.handlers;
import java.util.List;
import org.eclipse.vex.core.internal.widget.swt.VexWidget;
/**
* Deletes selected row(s).
*/
public class RemoveRowHandler extends AbstractRemoveTableCellsHandler {
@Override
protected List<Object> collectCellsToDelete(final VexWidget widget, final VexHandlerUtil.RowColumnInfo rcInfo) {
return VexHandlerUtil.getSelectedTableRows(widget).getRows();
}
}