/****************************************************************************** * Copyright (c) 2011, 2015 Stephan Schwiebert 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: * Stephan Schwiebert - initial API and implementation * *******************************************************************************/ package org.eclipse.gef.cloudio.internal.ui.actions; import java.util.List; import org.eclipse.jface.action.IAction; import org.eclipse.jface.viewers.StructuredSelection; /** * * @author sschwieb * */ public class SelectAllAction extends AbstractTagCloudAction { @Override public void run(IAction action) { StructuredSelection selection = new StructuredSelection((List<?>) getViewer().getInput()); getViewer().setSelection(selection); } }