Skip to content

Package: DomainModelReferenceResolutionFailedReport

DomainModelReferenceResolutionFailedReport

nameinstructionbranchcomplexitylinemethod
DomainModelReferenceResolutionFailedReport(VDomainModelReference, EObject)
M: 15 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
DomainModelReferenceResolutionFailedReport(VDomainModelReference, VControl)
M: 15 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 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: * Edgar Mueller - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.spi.model.reporting;
15:
16: import org.eclipse.core.runtime.IStatus;
17: import org.eclipse.emf.ecore.EObject;
18: import org.eclipse.emf.ecp.view.spi.model.VControl;
19: import org.eclipse.emf.ecp.view.spi.model.VDomainModelReference;
20: import org.eclipse.emfforms.spi.common.report.AbstractReport;
21:
22: /**
23: * Indicates that a {@link org.eclipse.emf.ecp.view.spi.model.VDomainModelReference VDomainModelReference} could not be
24: * resolved.
25: *
26: * @author emueller
27: * @since 1.5
28: *
29: */
30: public class DomainModelReferenceResolutionFailedReport extends AbstractReport {
31:
32:         /**
33:          * Constructor.
34:          *
35:          * @param domainModelReference
36:          * the domain model reference that could not be resolved
37:          * @param element
38:          * the element that should be resolved
39:          */
40:         public DomainModelReferenceResolutionFailedReport(
41:                 VDomainModelReference domainModelReference, EObject element) {
42:                 super("Not resolved: " + domainModelReference //$NON-NLS-1$
43:                         + " on label " + element, IStatus.WARNING); //$NON-NLS-1$
44:         }
45:
46:         /**
47:          * Constructor.
48:          *
49:          * @param domainModelReference
50:          * the domain model reference that could not be resolved
51:          * @param control
52:          * the control holding the domain model reference
53:          */
54:         public DomainModelReferenceResolutionFailedReport(
55:                 VDomainModelReference domainModelReference, VControl control) {
56:                 super("Not resolved: " + domainModelReference //$NON-NLS-1$
57:                         + " on control " + control, IStatus.WARNING); //$NON-NLS-1$
58:         }
59:
60: }