Skip to content

Package: RootObject

RootObject

nameinstructionbranchcomplexitylinemethod
RootObject(EObject)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getRoot()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

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.emfforms.spi.swt.treemasterdetail.util;
15:
16: import org.eclipse.emf.ecore.EObject;
17:
18: /**
19: * This is needed in order to show the root element in the tree.
20: *
21: * @author Anas Chakfeh
22: *
23: */
24: public class RootObject {
25:
26:         private final EObject modelElement;
27:
28:         /**
29:          * Default constructor.
30:          *
31:          * @param modelElement the wrapped root object
32:          */
33:         public RootObject(EObject modelElement) {
34:                 this.modelElement = modelElement;
35:         }
36:
37:         /**
38:          * @return the root object
39:          */
40:         public EObject getRoot() {
41:                 return modelElement;
42:         }
43:
44: }