Package: MockedAbstractSWTRenderer
MockedAbstractSWTRenderer
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MockedAbstractSWTRenderer(VElement, ViewModelContext, ReportService) |
|
|
|
|
|
||||||||||||||||||||
getGridDescription(SWTGridDescription) |
|
|
|
|
|
||||||||||||||||||||
renderControl(SWTGridCell, Composite) |
|
|
|
|
|
Coverage
1: /*******************************************************************************
2: * Copyright (c) 2011-2015 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.emfforms.internal.swt.core;
15:
16: import org.eclipse.emf.ecp.view.spi.context.ViewModelContext;
17: import org.eclipse.emf.ecp.view.spi.model.VElement;
18: import org.eclipse.emf.ecp.view.spi.renderer.NoPropertyDescriptorFoundExeption;
19: import org.eclipse.emf.ecp.view.spi.renderer.NoRendererFoundException;
20: import org.eclipse.emfforms.spi.common.report.ReportService;
21: import org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer;
22: import org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell;
23: import org.eclipse.emfforms.spi.swt.core.layout.SWTGridDescription;
24: import org.eclipse.swt.widgets.Composite;
25: import org.eclipse.swt.widgets.Control;
26:
27: /**
28: * Mocked AbstractSWTRenderer.
29: *
30: * @author Eugen Neufeld
31: *
32: */
33: final class MockedAbstractSWTRenderer extends AbstractSWTRenderer<VElement> {
34:
35:         MockedAbstractSWTRenderer(VElement vElement, ViewModelContext viewContext, ReportService reportService) {
36:                 super(vElement, viewContext, reportService);
37:         }
38:
39:         @Override
40:         protected Control renderControl(SWTGridCell cell, Composite parent) throws NoRendererFoundException,
41:                 NoPropertyDescriptorFoundExeption {
42:                 return null;
43:         }
44:
45:         @Override
46:         public SWTGridDescription getGridDescription(SWTGridDescription gridDescription) {
47:                 return null;
48:         }
49: }