Skip to content

Package: ExpandableCompositeTooltipProperty

ExpandableCompositeTooltipProperty

nameinstructionbranchcomplexitylinemethod
ExpandableCompositeTooltipProperty()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
ExpandableCompositeTooltipProperty(int)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
ExpandableCompositeTooltipProperty(int[])
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
ExpandableCompositeTooltipProperty(int[], int[])
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
doGetStringValue(Object)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
doGetValue(Object)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
doSetStringValue(Object, String)
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
doSetValue(Object, Object)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getValueType()
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%
toString()
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%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017 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.section.swt;
15:
16: import org.eclipse.jface.databinding.swt.WidgetValueProperty;
17: import org.eclipse.ui.forms.widgets.ExpandableComposite;
18:
19: /**
20: * Databinding Property for {@link ExpandableComposite}.
21: *
22: * @author Edgar Mueller
23: * @generated
24: * @since 1.13
25: */
26: public class ExpandableCompositeTooltipProperty extends WidgetValueProperty {
27:
28:         public ExpandableCompositeTooltipProperty() {
29:                 super();
30:         }
31:
32:         ExpandableCompositeTooltipProperty(int event) {
33:                 super(event);
34:         }
35:
36:         ExpandableCompositeTooltipProperty(int[] events) {
37:                 super(events);
38:         }
39:
40:         ExpandableCompositeTooltipProperty(int[] events, int[] staleEvents) {
41:                 super(events, staleEvents);
42:         }
43:
44:         @Override
45:         public Object getValueType() {
46:                 return String.class;
47:         }
48:
49:         @Override
50:         protected Object doGetValue(Object source) {
51:                 return doGetStringValue(source);
52:         }
53:
54:         @Override
55:         protected void doSetValue(Object source, Object value) {
56:                 doSetStringValue(source, (String) value);
57:         }
58:
59:         // end of copied code
60:
61:         String doGetStringValue(Object source) {
62:                 return ((ExpandableComposite) source).getToolTipText();
63:         }
64:
65:         void doSetStringValue(Object source, String value) {
66:•                ((ExpandableComposite) source).setToolTipText(value == null ? "" : value); //$NON-NLS-1$
67:         }
68:
69:         @Override
70:         public String toString() {
71:                 return "Section.text <String>"; //$NON-NLS-1$
72:         }
73: }