Skip to content

Package: DICustomControlSWTRendererTester

DICustomControlSWTRendererTester

nameinstructionbranchcomplexitylinemethod
DICustomControlSWTRendererTester()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
isApplicable(VElement, ViewModelContext)
M: 8 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2014 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: * Johannes Faltermeier - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.custom.ui.swt.di.renderer;
15:
16: import org.eclipse.emf.ecp.view.model.common.ECPRendererTester;
17: import org.eclipse.emf.ecp.view.spi.context.ViewModelContext;
18: import org.eclipse.emf.ecp.view.spi.custom.model.VCustomControl;
19: import org.eclipse.emf.ecp.view.spi.model.VElement;
20:
21: /**
22: *
23: * @author jfaltermeier
24: *
25: */
26: public class DICustomControlSWTRendererTester implements ECPRendererTester {
27:
28:         @Override
29:         public int isApplicable(VElement vElement, ViewModelContext viewModelContext) {
30:•                if (VCustomControl.class.isInstance(vElement)) {
31:                         return 11;
32:                 }
33:                 return NOT_APPLICABLE;
34:         }
35:
36: }