Skip to content

Package: FailedStep

FailedStep

nameinstructionbranchcomplexitylinemethod
FailedStep()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
drillDown()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getDomainModel()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getFeature()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getType()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getViewModel()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
reveal()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2019 Christian W. Damus 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: * Christian W. Damus - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.core.services.reveal;
15:
16: import org.eclipse.emf.ecore.EObject;
17: import org.eclipse.emf.ecore.EStructuralFeature;
18: import org.eclipse.emf.ecp.view.spi.model.VElement;
19:
20: /**
21: * The failed reveal step.
22: *
23: * @since 1.22
24: */
25: final class FailedStep implements RevealStep {
26:
27:         /**
28:          * Initializes me.
29:          */
30:         FailedStep() {
31:                 super();
32:         }
33:
34:         @Override
35:         public RevealStepKind getType() {
36:                 return RevealStepKind.FAILED;
37:         }
38:
39:         @Override
40:         public VElement getViewModel() {
41:                 return null;
42:         }
43:
44:         @Override
45:         public EObject getDomainModel() {
46:                 return null;
47:         }
48:
49:         @Override
50:         public EStructuralFeature getFeature() {
51:                 return null;
52:         }
53:
54:         @Override
55:         public RevealStep drillDown() {
56:                 throw new IllegalStateException("reveal failed"); //$NON-NLS-1$
57:         }
58:
59:         @Override
60:         public void reveal() {
61:                 throw new IllegalStateException("reveal failed"); //$NON-NLS-1$
62:         }
63:
64: }