blob: 8c17250c2b904ee3c381b477feb61eb258f336e5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 Chalmers | University of Gothenburg, rt-labs 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:
* Chalmers | University of Gothenburg and rt-labs - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.capra.ui.office.handlers;
import org.eclipse.capra.ui.office.views.OfficeView;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
/**
* A handler for displaying a dialog that prompts the user to select which Excel
* sheet to display.
*
* @author Dusan Kalanj
*
*/
public class SelectSheetHandler extends AbstractHandler {
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
OfficeView.getOpenedView().selectSheet();
return null;
}
}