Skip to content

Package: ThreeColumnRow

ThreeColumnRow

nameinstructionbranchcomplexitylinemethod
ThreeColumnRow(Control, Control, Control)
M: 12 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
getControls()
M: 22 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
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%
getMainControl()
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%
getMiddleControl()
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.edit.internal.swt.util;
15:
16: import java.util.LinkedHashSet;
17: import java.util.Set;
18:
19: import org.eclipse.emf.ecp.view.spi.renderer.RenderingResultRow;
20: import org.eclipse.swt.widgets.Control;
21:
22: /**
23: * @author Eugen
24: *
25: */
26: @Deprecated
27: public class ThreeColumnRow implements RenderingResultRow<Control> {
28:
29:         private final Control leftControl;
30:         private final Control middleControl;
31:         private final Control rightControl;
32:
33:         /**
34:          * A {@link RenderingResultRow} which holds two {@link Control Controls}.
35:          *
36:          * @param leftControl the Control for left Column
37:          * @param middleControl the Control for middle Column
38:          * @param rightControl the Control for right Column
39:          */
40:         public ThreeColumnRow(Control leftControl, Control middleControl, Control rightControl) {
41:                 this.leftControl = leftControl;
42:                 this.rightControl = rightControl;
43:                 this.middleControl = middleControl;
44:         }
45:
46:         /**
47:          * @return the leftControl
48:          */
49:         public Control getLeftControl() {
50:                 return leftControl;
51:         }
52:
53:         /**
54:          * @return the rightControl
55:          */
56:         public Control getRightControl() {
57:                 return rightControl;
58:         }
59:
60:         /**
61:          * @return the rightControl
62:          */
63:         public Control getMiddleControl() {
64:                 return middleControl;
65:         }
66:
67:         /**
68:          * {@inheritDoc}
69:          *
70:          * @see org.eclipse.emf.ecp.view.spi.renderer.RenderingResultRow#getMainControl()
71:          */
72:         @Override
73:         @Deprecated
74:         public Control getMainControl() {
75:                 return getRightControl();
76:         }
77:
78:         /**
79:          * {@inheritDoc}
80:          *
81:          * @see org.eclipse.emf.ecp.view.spi.renderer.RenderingResultRow#getControls()
82:          */
83:         @Override
84:         public Set<Control> getControls() {
85:                 final Set<Control> controls = new LinkedHashSet<Control>(2);
86:                 controls.add(leftControl);
87:                 controls.add(middleControl);
88:                 controls.add(rightControl);
89:                 return controls;
90:         }
91:
92: }