Skip to content

Package: ControlPair

ControlPair

nameinstructionbranchcomplexitylinemethod
ControlPair(VControl, VControl)
M: 0 C: 9
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%
getLeftControl()
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%
getRightControl()
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%

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: * Eugen - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.diffmerge.spi.context;
15:
16: import org.eclipse.emf.ecp.view.spi.model.VControl;
17:
18: /**
19: * Represents a compare pair of two controls.
20: *
21: * @author Eugen Neufeld
22: *
23: */
24: public class ControlPair {
25:         private final VControl leftControl;
26:         private final VControl rightControl;
27:
28:         /**
29:          * The left compare of the compare.
30:          *
31:          * @return the leftControl
32:          */
33:         public VControl getLeftControl() {
34:                 return leftControl;
35:         }
36:
37:         /**
38:          * The right control of the compare.
39:          *
40:          * @return the rightControl
41:          */
42:         public VControl getRightControl() {
43:                 return rightControl;
44:         }
45:
46:         /**
47:          * Creates the pair.
48:          *
49:          * @param left the left {@link VControl}
50:          * @param right the right {@link VControl}
51:          */
52:         public ControlPair(VControl left, VControl right) {
53:                 leftControl = left;
54:                 rightControl = right;
55:         }
56: }