Skip to content

Package: SelectionComposite

SelectionComposite

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.spi.common.ui.composites;
15:
16: import org.eclipse.emf.ecp.spi.common.ui.CompositeProvider;
17: import org.eclipse.jface.viewers.StructuredViewer;
18:
19: /**
20: * @author Eugen Neufeld
21: *
22: * @param <T> The type of {@link StructuredViewer} to be shown in the {@link SelectionComposite}.
23: *
24: */
25: public interface SelectionComposite<T extends StructuredViewer> extends CompositeProvider {
26:
27:         /**
28:          * Returns the {@link StructuredViewer}.
29:          *
30:          * @return the viewer
31:          */
32:         T getViewer();
33:
34:         /**
35:          * Returns the selected objects.
36:          *
37:          * @return the selection
38:          */
39:         Object[] getSelection();
40: }