blob: 5cba8e9264da114d54b6d8bda35452be404d0b8a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Eugen Neufeld - initial API and implementation
******************************************************************************/
package org.eclipse.emf.ecp.spi.common.ui.composites;
import org.eclipse.emf.ecp.spi.common.ui.CompositeProvider;
import org.eclipse.jface.viewers.StructuredViewer;
/**
* @author Eugen Neufeld
*
* @param <T> The type of {@link StructuredViewer} to be shown in the {@link SelectionComposite}.
*
*/
public interface SelectionComposite<T extends StructuredViewer> extends CompositeProvider {
/**
* Returns the {@link StructuredViewer}.
*
* @return the viewer
*/
T getViewer();
/**
* Returns the selected objects.
*
* @return the selection
*/
Object[] getSelection();
}