Skip to content

Package: ECPControlSWT

ECPControlSWT

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.edit.internal.swt.util;
15:
16: import java.util.List;
17:
18: import org.eclipse.emf.ecp.view.spi.renderer.RenderingResultRow;
19: import org.eclipse.swt.widgets.Composite;
20: import org.eclipse.swt.widgets.Control;
21:
22: /**
23: * Interface describing a control which can be renderer with SWT.
24: *
25: * @author Eugen Neufeld
26: *
27: */
28: @Deprecated
29: public interface ECPControlSWT {
30:         /**
31:          * Renders a control on the provided parent and returning a list of {@link RenderingResultRow RenderingResultRows}.
32:          *
33:          * @param parent the {@link Composite} to render onto
34:          * @return the list of {@link RenderingResultRow RenderingResultRows}
35:          */
36:         List<RenderingResultRow<Control>> createControls(Composite parent);
37: }