Skip to content

Package: SWTRendererFactory

SWTRendererFactory

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: * Edagr Mueller - initial API and implementation
13: * Eugen Neufeld - Refactoring
14: ******************************************************************************/
15: package org.eclipse.emf.ecp.view.spi.swt;
16:
17: import java.util.Collection;
18:
19: import org.eclipse.emf.ecp.view.spi.context.ViewModelContext;
20: import org.eclipse.emf.ecp.view.spi.model.VElement;
21: import org.eclipse.emfforms.spi.swt.core.AbstractAdditionalSWTRenderer;
22: import org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer;
23:
24: /**
25: * A RendererFactory for SWT controls.
26: *
27: * @author Eugen Neufeld
28: * @since 1.2
29: *
30: */
31: @Deprecated
32: public interface SWTRendererFactory {
33:
34:         /**
35:          * Searches for a fitting renderer for the passed {@link VElement}.
36:          *
37:          * @param viewContext the {@link ViewModelContext} to use
38:          * @param vElement the {@link VElement} to render
39:          * @return the list for {@link AbstractSWTRenderer} the fitting render or null
40:          * @since 1.6
41:          */
42:         AbstractSWTRenderer<VElement> getRenderer(VElement vElement, ViewModelContext viewContext);
43:
44:         /**
45:          * Returns a collection of all additional renderer which contribute controls for the provided {@link VElement}.
46:          *
47:          * @param vElement the {@link VElement} to get additional renderer for
48:          * @param viewModelContext the {@link ViewModelContext} to check
49:          * @return the Collection of additional renderer
50:          */
51:         Collection<AbstractAdditionalSWTRenderer<VElement>> getAdditionalRenderer(VElement vElement,
52:                 ViewModelContext viewModelContext);
53: }