Skip to content

Package: BrewingUnitItemProvider

BrewingUnitItemProvider

nameinstructionbranchcomplexitylinemethod
BrewingUnitItemProvider(AdapterFactory)
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%
collectNewChildDescriptors(Collection, Object)
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%
getImage(Object)
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPropertyDescriptors(Object)
M: 10 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getText(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%
notifyChanged(Notification)
M: 7 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) 2011-2018 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: * EclipseSource Munich - initial API and implementation
13: */
14: package org.eclipse.emfforms.coffee.model.coffee.provider;
15:
16: import java.util.Collection;
17: import java.util.List;
18:
19: import org.eclipse.emf.common.notify.AdapterFactory;
20: import org.eclipse.emf.common.notify.Notification;
21: import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
22:
23: /**
24: * This is the item provider adapter for a {@link org.eclipse.emfforms.coffee.model.coffee.BrewingUnit} object.
25: * <!-- begin-user-doc -->
26: * <!-- end-user-doc -->
27: *
28: * @generated
29: */
30: public class BrewingUnitItemProvider extends ComponentItemProvider {
31:         /**
32:          * This constructs an instance from a factory and a notifier.
33:          * <!-- begin-user-doc -->
34:          * <!-- end-user-doc -->
35:          *
36:          * @generated
37:          */
38:         public BrewingUnitItemProvider(AdapterFactory adapterFactory) {
39:                 super(adapterFactory);
40:         }
41:
42:         /**
43:          * This returns the property descriptors for the adapted class.
44:          * <!-- begin-user-doc -->
45:          * <!-- end-user-doc -->
46:          *
47:          * @generated
48:          */
49:         @Override
50:         public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
51:•                if (itemPropertyDescriptors == null) {
52:                         super.getPropertyDescriptors(object);
53:
54:                 }
55:                 return itemPropertyDescriptors;
56:         }
57:
58:         /**
59:          * This returns BrewingUnit.gif.
60:          * <!-- begin-user-doc -->
61:          * <!-- end-user-doc -->
62:          *
63:          * @generated
64:          */
65:         @Override
66:         public Object getImage(Object object) {
67:                 return overlayImage(object, getResourceLocator().getImage("full/obj16/BrewingUnit")); //$NON-NLS-1$
68:         }
69:
70:         /**
71:          * This returns the label text for the adapted class.
72:          * <!-- begin-user-doc -->
73:          * <!-- end-user-doc -->
74:          *
75:          * @generated
76:          */
77:         @Override
78:         public String getText(Object object) {
79:                 return getString("_UI_BrewingUnit_type"); //$NON-NLS-1$
80:         }
81:
82:         /**
83:          * This handles model notifications by calling {@link #updateChildren} to update any cached
84:          * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
85:          * <!-- begin-user-doc -->
86:          * <!-- end-user-doc -->
87:          *
88:          * @generated
89:          */
90:         @Override
91:         public void notifyChanged(Notification notification) {
92:                 updateChildren(notification);
93:                 super.notifyChanged(notification);
94:         }
95:
96:         /**
97:          * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
98:          * that can be created under this object.
99:          * <!-- begin-user-doc -->
100:          * <!-- end-user-doc -->
101:          *
102:          * @generated
103:          */
104:         @Override
105:         protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
106:                 super.collectNewChildDescriptors(newChildDescriptors, object);
107:         }
108:
109: }