Skip to content

Package: ControlValidationTemplateItemProvider

ControlValidationTemplateItemProvider

nameinstructionbranchcomplexitylinemethod
ControlValidationTemplateItemProvider(AdapterFactory)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
addCancelColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addCancelForegroundColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addCancelImageURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addCancelOverlayURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addErrorColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addErrorForegroundColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addErrorImageURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addErrorOverlayURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addInfoColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addInfoForegroundColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addInfoImageURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addInfoOverlayURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addOkColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addOkForegroundColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addOkImageURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addOkOverlayURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addWarningColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addWarningForegroundColorHEXPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 15 C: 0
0%
M: 1 C: 0
0%
addWarningImageURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%
addWarningOverlayURLPropertyDescriptor(Object)
M: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 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: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getPropertyDescriptors(Object)
M: 70 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 23 C: 0
0%
M: 1 C: 0
0%
getResourceLocator()
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getText(Object)
M: 26 C: 0
0%
M: 4 C: 0
0%
M: 3 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
notifyChanged(Notification)
M: 11 C: 11
50%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 2 C: 4
67%
M: 0 C: 1
100%

Coverage

1: /**
2: * Copyright (c) 2011-2013 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.emf.ecp.view.template.model.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.common.util.ResourceLocator;
22: import org.eclipse.emf.ecp.view.template.model.VTControlValidationTemplate;
23: import org.eclipse.emf.ecp.view.template.model.VTTemplatePackage;
24: import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
25: import org.eclipse.emf.edit.provider.IChildCreationExtender;
26: import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
27: import org.eclipse.emf.edit.provider.IItemLabelProvider;
28: import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
29: import org.eclipse.emf.edit.provider.IItemPropertySource;
30: import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
31: import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
32: import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
33: import org.eclipse.emf.edit.provider.ItemProviderAdapter;
34: import org.eclipse.emf.edit.provider.ViewerNotification;
35:
36: /**
37: * This is the item provider adapter for a {@link org.eclipse.emf.ecp.view.template.model.VTControlValidationTemplate}
38: * object.
39: * <!-- begin-user-doc -->
40: * <!-- end-user-doc -->
41: *
42: * @generated
43: */
44: public class ControlValidationTemplateItemProvider
45:         extends ItemProviderAdapter
46:         implements
47:         IEditingDomainItemProvider,
48:         IStructuredItemContentProvider,
49:         ITreeItemContentProvider,
50:         IItemLabelProvider,
51:         IItemPropertySource {
52:         /**
53:          * This constructs an instance from a factory and a notifier.
54:          * <!-- begin-user-doc -->
55:          * <!-- end-user-doc -->
56:          *
57:          * @generated
58:          */
59:         public ControlValidationTemplateItemProvider(AdapterFactory adapterFactory) {
60:                 super(adapterFactory);
61:         }
62:
63:         /**
64:          * This returns the property descriptors for the adapted class.
65:          * <!-- begin-user-doc -->
66:          * <!-- end-user-doc -->
67:          *
68:          * @generated
69:          */
70:         @Override
71:         public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
72:•                if (itemPropertyDescriptors == null) {
73:                         super.getPropertyDescriptors(object);
74:
75:                         addOkColorHEXPropertyDescriptor(object);
76:                         addOkForegroundColorHEXPropertyDescriptor(object);
77:                         addOkImageURLPropertyDescriptor(object);
78:                         addOkOverlayURLPropertyDescriptor(object);
79:                         addInfoColorHEXPropertyDescriptor(object);
80:                         addInfoForegroundColorHEXPropertyDescriptor(object);
81:                         addInfoImageURLPropertyDescriptor(object);
82:                         addInfoOverlayURLPropertyDescriptor(object);
83:                         addWarningColorHEXPropertyDescriptor(object);
84:                         addWarningForegroundColorHEXPropertyDescriptor(object);
85:                         addWarningImageURLPropertyDescriptor(object);
86:                         addWarningOverlayURLPropertyDescriptor(object);
87:                         addErrorColorHEXPropertyDescriptor(object);
88:                         addErrorForegroundColorHEXPropertyDescriptor(object);
89:                         addErrorImageURLPropertyDescriptor(object);
90:                         addErrorOverlayURLPropertyDescriptor(object);
91:                         addCancelColorHEXPropertyDescriptor(object);
92:                         addCancelForegroundColorHEXPropertyDescriptor(object);
93:                         addCancelImageURLPropertyDescriptor(object);
94:                         addCancelOverlayURLPropertyDescriptor(object);
95:                 }
96:                 return itemPropertyDescriptors;
97:         }
98:
99:         /**
100:          * This adds a property descriptor for the Ok Color HEX feature.
101:          * <!-- begin-user-doc -->
102:          * <!-- end-user-doc -->
103:          *
104:          * @generated
105:          */
106:         protected void addOkColorHEXPropertyDescriptor(Object object) {
107:                 itemPropertyDescriptors
108:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
109:                                 getResourceLocator(),
110:                                 getString("_UI_ControlValidationTemplate_okColorHEX_feature"), //$NON-NLS-1$
111:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_okColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
112:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
113:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__OK_COLOR_HEX,
114:                                 true,
115:                                 false,
116:                                 false,
117:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
118:                                 null,
119:                                 null));
120:         }
121:
122:         /**
123:          * This adds a property descriptor for the Ok Foreground Color HEX feature.
124:          * <!-- begin-user-doc -->
125:          * <!-- end-user-doc -->
126:          *
127:          * @generated
128:          */
129:         protected void addOkForegroundColorHEXPropertyDescriptor(Object object) {
130:                 itemPropertyDescriptors
131:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
132:                                 getResourceLocator(),
133:                                 getString("_UI_ControlValidationTemplate_okForegroundColorHEX_feature"), //$NON-NLS-1$
134:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
135:                                         "_UI_ControlValidationTemplate_okForegroundColorHEX_feature", "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$ //$NON-NLS-2$
136:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__OK_FOREGROUND_COLOR_HEX,
137:                                 true,
138:                                 false,
139:                                 false,
140:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
141:                                 null,
142:                                 null));
143:         }
144:
145:         /**
146:          * This adds a property descriptor for the Ok Image URL feature.
147:          * <!-- begin-user-doc -->
148:          * <!-- end-user-doc -->
149:          *
150:          * @generated
151:          */
152:         protected void addOkImageURLPropertyDescriptor(Object object) {
153:                 itemPropertyDescriptors
154:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
155:                                 getResourceLocator(),
156:                                 getString("_UI_ControlValidationTemplate_okImageURL_feature"), //$NON-NLS-1$
157:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_okImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
158:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
159:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__OK_IMAGE_URL,
160:                                 true,
161:                                 false,
162:                                 false,
163:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
164:                                 null,
165:                                 null));
166:         }
167:
168:         /**
169:          * This adds a property descriptor for the Ok Overlay URL feature.
170:          * <!-- begin-user-doc -->
171:          * <!-- end-user-doc -->
172:          *
173:          * @generated
174:          */
175:         protected void addOkOverlayURLPropertyDescriptor(Object object) {
176:                 itemPropertyDescriptors
177:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
178:                                 getResourceLocator(),
179:                                 getString("_UI_ControlValidationTemplate_okOverlayURL_feature"), //$NON-NLS-1$
180:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_okOverlayURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
181:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
182:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__OK_OVERLAY_URL,
183:                                 true,
184:                                 false,
185:                                 false,
186:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
187:                                 null,
188:                                 null));
189:         }
190:
191:         /**
192:          * This adds a property descriptor for the Info Color HEX feature.
193:          * <!-- begin-user-doc -->
194:          * <!-- end-user-doc -->
195:          *
196:          * @generated
197:          */
198:         protected void addInfoColorHEXPropertyDescriptor(Object object) {
199:                 itemPropertyDescriptors
200:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
201:                                 getResourceLocator(),
202:                                 getString("_UI_ControlValidationTemplate_infoColorHEX_feature"), //$NON-NLS-1$
203:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_infoColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
204:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
205:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__INFO_COLOR_HEX,
206:                                 true,
207:                                 false,
208:                                 false,
209:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
210:                                 null,
211:                                 null));
212:         }
213:
214:         /**
215:          * This adds a property descriptor for the Info Foreground Color HEX feature.
216:          * <!-- begin-user-doc -->
217:          * <!-- end-user-doc -->
218:          *
219:          * @generated
220:          */
221:         protected void addInfoForegroundColorHEXPropertyDescriptor(Object object) {
222:                 itemPropertyDescriptors.add(createItemPropertyDescriptor(
223:                         ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
224:                         getResourceLocator(),
225:                         getString("_UI_ControlValidationTemplate_infoForegroundColorHEX_feature"), //$NON-NLS-1$
226:                         getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
227:                                 "_UI_ControlValidationTemplate_infoForegroundColorHEX_feature", "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$ //$NON-NLS-2$
228:                         VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__INFO_FOREGROUND_COLOR_HEX,
229:                         true,
230:                         false,
231:                         false,
232:                         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
233:                         null,
234:                         null));
235:         }
236:
237:         /**
238:          * This adds a property descriptor for the Info Image URL feature.
239:          * <!-- begin-user-doc -->
240:          * <!-- end-user-doc -->
241:          *
242:          * @generated
243:          */
244:         protected void addInfoImageURLPropertyDescriptor(Object object) {
245:                 itemPropertyDescriptors
246:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
247:                                 getResourceLocator(),
248:                                 getString("_UI_ControlValidationTemplate_infoImageURL_feature"), //$NON-NLS-1$
249:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_infoImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
250:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
251:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__INFO_IMAGE_URL,
252:                                 true,
253:                                 false,
254:                                 false,
255:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
256:                                 null,
257:                                 null));
258:         }
259:
260:         /**
261:          * This adds a property descriptor for the Info Overlay URL feature.
262:          * <!-- begin-user-doc -->
263:          * <!-- end-user-doc -->
264:          *
265:          * @generated
266:          */
267:         protected void addInfoOverlayURLPropertyDescriptor(Object object) {
268:                 itemPropertyDescriptors
269:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
270:                                 getResourceLocator(),
271:                                 getString("_UI_ControlValidationTemplate_infoOverlayURL_feature"), //$NON-NLS-1$
272:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_infoOverlayURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
273:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
274:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__INFO_OVERLAY_URL,
275:                                 true,
276:                                 false,
277:                                 false,
278:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
279:                                 null,
280:                                 null));
281:         }
282:
283:         /**
284:          * This adds a property descriptor for the Warning Color HEX feature.
285:          * <!-- begin-user-doc -->
286:          * <!-- end-user-doc -->
287:          *
288:          * @generated
289:          */
290:         protected void addWarningColorHEXPropertyDescriptor(Object object) {
291:                 itemPropertyDescriptors
292:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
293:                                 getResourceLocator(),
294:                                 getString("_UI_ControlValidationTemplate_warningColorHEX_feature"), //$NON-NLS-1$
295:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_warningColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
296:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
297:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__WARNING_COLOR_HEX,
298:                                 true,
299:                                 false,
300:                                 false,
301:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
302:                                 null,
303:                                 null));
304:         }
305:
306:         /**
307:          * This adds a property descriptor for the Warning Foreground Color HEX feature.
308:          * <!-- begin-user-doc -->
309:          * <!-- end-user-doc -->
310:          *
311:          * @generated
312:          */
313:         protected void addWarningForegroundColorHEXPropertyDescriptor(Object object) {
314:                 itemPropertyDescriptors
315:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
316:                                 getResourceLocator(),
317:                                 getString("_UI_ControlValidationTemplate_warningForegroundColorHEX_feature"), //$NON-NLS-1$
318:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
319:                                         "_UI_ControlValidationTemplate_warningForegroundColorHEX_feature", //$NON-NLS-1$
320:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
321:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__WARNING_FOREGROUND_COLOR_HEX,
322:                                 true,
323:                                 false,
324:                                 false,
325:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
326:                                 null,
327:                                 null));
328:         }
329:
330:         /**
331:          * This adds a property descriptor for the Warning Image URL feature.
332:          * <!-- begin-user-doc -->
333:          * <!-- end-user-doc -->
334:          *
335:          * @generated
336:          */
337:         protected void addWarningImageURLPropertyDescriptor(Object object) {
338:                 itemPropertyDescriptors
339:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
340:                                 getResourceLocator(),
341:                                 getString("_UI_ControlValidationTemplate_warningImageURL_feature"), //$NON-NLS-1$
342:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_warningImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
343:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
344:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__WARNING_IMAGE_URL,
345:                                 true,
346:                                 false,
347:                                 false,
348:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
349:                                 null,
350:                                 null));
351:         }
352:
353:         /**
354:          * This adds a property descriptor for the Warning Overlay URL feature.
355:          * <!-- begin-user-doc -->
356:          * <!-- end-user-doc -->
357:          *
358:          * @generated
359:          */
360:         protected void addWarningOverlayURLPropertyDescriptor(Object object) {
361:                 itemPropertyDescriptors
362:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
363:                                 getResourceLocator(),
364:                                 getString("_UI_ControlValidationTemplate_warningOverlayURL_feature"), //$NON-NLS-1$
365:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
366:                                         "_UI_ControlValidationTemplate_warningOverlayURL_feature", "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$ //$NON-NLS-2$
367:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__WARNING_OVERLAY_URL,
368:                                 true,
369:                                 false,
370:                                 false,
371:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
372:                                 null,
373:                                 null));
374:         }
375:
376:         /**
377:          * This adds a property descriptor for the Error Color HEX feature.
378:          * <!-- begin-user-doc -->
379:          * <!-- end-user-doc -->
380:          *
381:          * @generated
382:          */
383:         protected void addErrorColorHEXPropertyDescriptor(Object object) {
384:                 itemPropertyDescriptors
385:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
386:                                 getResourceLocator(),
387:                                 getString("_UI_ControlValidationTemplate_errorColorHEX_feature"), //$NON-NLS-1$
388:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_errorColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
389:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
390:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__ERROR_COLOR_HEX,
391:                                 true,
392:                                 false,
393:                                 false,
394:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
395:                                 null,
396:                                 null));
397:         }
398:
399:         /**
400:          * This adds a property descriptor for the Error Foreground Color HEX feature.
401:          * <!-- begin-user-doc -->
402:          * <!-- end-user-doc -->
403:          *
404:          * @generated
405:          */
406:         protected void addErrorForegroundColorHEXPropertyDescriptor(Object object) {
407:                 itemPropertyDescriptors.add(createItemPropertyDescriptor(
408:                         ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
409:                         getResourceLocator(),
410:                         getString("_UI_ControlValidationTemplate_errorForegroundColorHEX_feature"), //$NON-NLS-1$
411:                         getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
412:                                 "_UI_ControlValidationTemplate_errorForegroundColorHEX_feature", "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$ //$NON-NLS-2$
413:                         VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__ERROR_FOREGROUND_COLOR_HEX,
414:                         true,
415:                         false,
416:                         false,
417:                         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
418:                         null,
419:                         null));
420:         }
421:
422:         /**
423:          * This adds a property descriptor for the Error Image URL feature.
424:          * <!-- begin-user-doc -->
425:          * <!-- end-user-doc -->
426:          *
427:          * @generated
428:          */
429:         protected void addErrorImageURLPropertyDescriptor(Object object) {
430:                 itemPropertyDescriptors
431:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
432:                                 getResourceLocator(),
433:                                 getString("_UI_ControlValidationTemplate_errorImageURL_feature"), //$NON-NLS-1$
434:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_errorImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
435:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
436:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__ERROR_IMAGE_URL,
437:                                 true,
438:                                 false,
439:                                 false,
440:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
441:                                 null,
442:                                 null));
443:         }
444:
445:         /**
446:          * This adds a property descriptor for the Error Overlay URL feature.
447:          * <!-- begin-user-doc -->
448:          * <!-- end-user-doc -->
449:          *
450:          * @generated
451:          */
452:         protected void addErrorOverlayURLPropertyDescriptor(Object object) {
453:                 itemPropertyDescriptors
454:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
455:                                 getResourceLocator(),
456:                                 getString("_UI_ControlValidationTemplate_errorOverlayURL_feature"), //$NON-NLS-1$
457:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_errorOverlayURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
458:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
459:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__ERROR_OVERLAY_URL,
460:                                 true,
461:                                 false,
462:                                 false,
463:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
464:                                 null,
465:                                 null));
466:         }
467:
468:         /**
469:          * This adds a property descriptor for the Cancel Color HEX feature.
470:          * <!-- begin-user-doc -->
471:          * <!-- end-user-doc -->
472:          *
473:          * @generated
474:          */
475:         protected void addCancelColorHEXPropertyDescriptor(Object object) {
476:                 itemPropertyDescriptors
477:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
478:                                 getResourceLocator(),
479:                                 getString("_UI_ControlValidationTemplate_cancelColorHEX_feature"), //$NON-NLS-1$
480:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_cancelColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
481:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
482:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__CANCEL_COLOR_HEX,
483:                                 true,
484:                                 false,
485:                                 false,
486:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
487:                                 null,
488:                                 null));
489:         }
490:
491:         /**
492:          * This adds a property descriptor for the Cancel Foreground Color HEX feature.
493:          * <!-- begin-user-doc -->
494:          * <!-- end-user-doc -->
495:          *
496:          * @generated
497:          */
498:         protected void addCancelForegroundColorHEXPropertyDescriptor(Object object) {
499:                 itemPropertyDescriptors.add(createItemPropertyDescriptor(
500:                         ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
501:                         getResourceLocator(),
502:                         getString("_UI_ControlValidationTemplate_cancelForegroundColorHEX_feature"), //$NON-NLS-1$
503:                         getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
504:                                 "_UI_ControlValidationTemplate_cancelForegroundColorHEX_feature", "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$ //$NON-NLS-2$
505:                         VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__CANCEL_FOREGROUND_COLOR_HEX,
506:                         true,
507:                         false,
508:                         false,
509:                         ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
510:                         null,
511:                         null));
512:         }
513:
514:         /**
515:          * This adds a property descriptor for the Cancel Image URL feature.
516:          * <!-- begin-user-doc -->
517:          * <!-- end-user-doc -->
518:          *
519:          * @generated
520:          */
521:         protected void addCancelImageURLPropertyDescriptor(Object object) {
522:                 itemPropertyDescriptors
523:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
524:                                 getResourceLocator(),
525:                                 getString("_UI_ControlValidationTemplate_cancelImageURL_feature"), //$NON-NLS-1$
526:                                 getString("_UI_PropertyDescriptor_description", "_UI_ControlValidationTemplate_cancelImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
527:                                         "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$
528:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__CANCEL_IMAGE_URL,
529:                                 true,
530:                                 false,
531:                                 false,
532:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
533:                                 null,
534:                                 null));
535:         }
536:
537:         /**
538:          * This adds a property descriptor for the Cancel Overlay URL feature.
539:          * <!-- begin-user-doc -->
540:          * <!-- end-user-doc -->
541:          *
542:          * @generated
543:          */
544:         protected void addCancelOverlayURLPropertyDescriptor(Object object) {
545:                 itemPropertyDescriptors
546:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
547:                                 getResourceLocator(),
548:                                 getString("_UI_ControlValidationTemplate_cancelOverlayURL_feature"), //$NON-NLS-1$
549:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
550:                                         "_UI_ControlValidationTemplate_cancelOverlayURL_feature", "_UI_ControlValidationTemplate_type"), //$NON-NLS-1$ //$NON-NLS-2$
551:                                 VTTemplatePackage.Literals.CONTROL_VALIDATION_TEMPLATE__CANCEL_OVERLAY_URL,
552:                                 true,
553:                                 false,
554:                                 false,
555:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
556:                                 null,
557:                                 null));
558:         }
559:
560:         /**
561:          * This returns ControlValidationTemplate.gif.
562:          * <!-- begin-user-doc -->
563:          * <!-- end-user-doc -->
564:          *
565:          * @generated
566:          */
567:         @Override
568:         public Object getImage(Object object) {
569:                 return overlayImage(object, getResourceLocator().getImage("full/obj16/ControlValidationTemplate")); //$NON-NLS-1$
570:         }
571:
572:         /**
573:          * This returns the label text for the adapted class.
574:          * <!-- begin-user-doc -->
575:          * <!-- end-user-doc -->
576:          *
577:          * @generated
578:          */
579:         @Override
580:         public String getText(Object object) {
581:                 final String label = ((VTControlValidationTemplate) object).getOkColorHEX();
582:•                return label == null || label.length() == 0 ? getString("_UI_ControlValidationTemplate_type") : //$NON-NLS-1$
583:                         getString("_UI_ControlValidationTemplate_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
584:         }
585:
586:         /**
587:          * This handles model notifications by calling {@link #updateChildren} to update any cached
588:          * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
589:          * <!-- begin-user-doc -->
590:          * <!-- end-user-doc -->
591:          *
592:          * @generated
593:          */
594:         @Override
595:         public void notifyChanged(Notification notification) {
596:                 updateChildren(notification);
597:
598:•                switch (notification.getFeatureID(VTControlValidationTemplate.class)) {
599:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__OK_COLOR_HEX:
600:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__OK_FOREGROUND_COLOR_HEX:
601:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__OK_IMAGE_URL:
602:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__OK_OVERLAY_URL:
603:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__INFO_COLOR_HEX:
604:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__INFO_FOREGROUND_COLOR_HEX:
605:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__INFO_IMAGE_URL:
606:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__INFO_OVERLAY_URL:
607:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__WARNING_COLOR_HEX:
608:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__WARNING_FOREGROUND_COLOR_HEX:
609:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__WARNING_IMAGE_URL:
610:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__WARNING_OVERLAY_URL:
611:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__ERROR_COLOR_HEX:
612:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__ERROR_FOREGROUND_COLOR_HEX:
613:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__ERROR_IMAGE_URL:
614:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__ERROR_OVERLAY_URL:
615:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__CANCEL_COLOR_HEX:
616:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__CANCEL_FOREGROUND_COLOR_HEX:
617:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__CANCEL_IMAGE_URL:
618:                 case VTTemplatePackage.CONTROL_VALIDATION_TEMPLATE__CANCEL_OVERLAY_URL:
619:                         fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
620:                         return;
621:                 }
622:                 super.notifyChanged(notification);
623:         }
624:
625:         /**
626:          * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
627:          * that can be created under this object.
628:          * <!-- begin-user-doc -->
629:          * <!-- end-user-doc -->
630:          *
631:          * @generated
632:          */
633:         @Override
634:         protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
635:                 super.collectNewChildDescriptors(newChildDescriptors, object);
636:         }
637:
638:         /**
639:          * Return the resource locator for this item provider's resources.
640:          * <!-- begin-user-doc -->
641:          * <!-- end-user-doc -->
642:          *
643:          * @generated
644:          */
645:         @Override
646:         public ResourceLocator getResourceLocator() {
647:                 return ((IChildCreationExtender) adapterFactory).getResourceLocator();
648:         }
649:
650: }