Skip to content

Package: ValidationStylePropertyItemProvider

ValidationStylePropertyItemProvider

nameinstructionbranchcomplexitylinemethod
ValidationStylePropertyItemProvider(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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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: 15 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-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: * EclipseSource Munich - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.view.template.style.validation.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.style.validation.model.VTValidationPackage;
23: import org.eclipse.emf.ecp.view.template.style.validation.model.VTValidationStyleProperty;
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
38: * {@link org.eclipse.emf.ecp.view.template.style.validation.model.VTValidationStyleProperty} object.
39: * <!-- begin-user-doc -->
40: * <!-- end-user-doc -->
41: *
42: * @generated
43: */
44: public class ValidationStylePropertyItemProvider
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 ValidationStylePropertyItemProvider(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_ValidationStyleProperty_okColorHEX_feature"), //$NON-NLS-1$
111:                                 getString(
112:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_okColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
113:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
114:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__OK_COLOR_HEX,
115:                                 true,
116:                                 false,
117:                                 false,
118:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
119:                                 null,
120:                                 null));
121:         }
122:
123:         /**
124:          * This adds a property descriptor for the Ok Foreground Color HEX feature.
125:          * <!-- begin-user-doc -->
126:          * <!-- end-user-doc -->
127:          *
128:          * @generated
129:          */
130:         protected void addOkForegroundColorHEXPropertyDescriptor(Object object) {
131:                 itemPropertyDescriptors
132:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
133:                                 getResourceLocator(),
134:                                 getString("_UI_ValidationStyleProperty_okForegroundColorHEX_feature"), //$NON-NLS-1$
135:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
136:                                         "_UI_ValidationStyleProperty_okForegroundColorHEX_feature", "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$ //$NON-NLS-2$
137:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__OK_FOREGROUND_COLOR_HEX,
138:                                 true,
139:                                 false,
140:                                 false,
141:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
142:                                 null,
143:                                 null));
144:         }
145:
146:         /**
147:          * This adds a property descriptor for the Ok Image URL feature.
148:          * <!-- begin-user-doc -->
149:          * <!-- end-user-doc -->
150:          *
151:          * @generated
152:          */
153:         protected void addOkImageURLPropertyDescriptor(Object object) {
154:                 itemPropertyDescriptors
155:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
156:                                 getResourceLocator(),
157:                                 getString("_UI_ValidationStyleProperty_okImageURL_feature"), //$NON-NLS-1$
158:                                 getString(
159:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_okImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
160:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
161:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__OK_IMAGE_URL,
162:                                 true,
163:                                 false,
164:                                 false,
165:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
166:                                 null,
167:                                 null));
168:         }
169:
170:         /**
171:          * This adds a property descriptor for the Ok Overlay URL feature.
172:          * <!-- begin-user-doc -->
173:          * <!-- end-user-doc -->
174:          *
175:          * @generated
176:          */
177:         protected void addOkOverlayURLPropertyDescriptor(Object object) {
178:                 itemPropertyDescriptors
179:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
180:                                 getResourceLocator(),
181:                                 getString("_UI_ValidationStyleProperty_okOverlayURL_feature"), //$NON-NLS-1$
182:                                 getString(
183:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_okOverlayURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
184:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
185:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__OK_OVERLAY_URL,
186:                                 true,
187:                                 false,
188:                                 false,
189:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
190:                                 null,
191:                                 null));
192:         }
193:
194:         /**
195:          * This adds a property descriptor for the Info Color HEX feature.
196:          * <!-- begin-user-doc -->
197:          * <!-- end-user-doc -->
198:          *
199:          * @generated
200:          */
201:         protected void addInfoColorHEXPropertyDescriptor(Object object) {
202:                 itemPropertyDescriptors
203:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
204:                                 getResourceLocator(),
205:                                 getString("_UI_ValidationStyleProperty_infoColorHEX_feature"), //$NON-NLS-1$
206:                                 getString(
207:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_infoColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
208:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
209:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__INFO_COLOR_HEX,
210:                                 true,
211:                                 false,
212:                                 false,
213:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
214:                                 null,
215:                                 null));
216:         }
217:
218:         /**
219:          * This adds a property descriptor for the Info Foreground Color HEX feature.
220:          * <!-- begin-user-doc -->
221:          * <!-- end-user-doc -->
222:          *
223:          * @generated
224:          */
225:         protected void addInfoForegroundColorHEXPropertyDescriptor(Object object) {
226:                 itemPropertyDescriptors
227:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
228:                                 getResourceLocator(),
229:                                 getString("_UI_ValidationStyleProperty_infoForegroundColorHEX_feature"), //$NON-NLS-1$
230:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
231:                                         "_UI_ValidationStyleProperty_infoForegroundColorHEX_feature", "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$ //$NON-NLS-2$
232:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__INFO_FOREGROUND_COLOR_HEX,
233:                                 true,
234:                                 false,
235:                                 false,
236:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
237:                                 null,
238:                                 null));
239:         }
240:
241:         /**
242:          * This adds a property descriptor for the Info Image URL feature.
243:          * <!-- begin-user-doc -->
244:          * <!-- end-user-doc -->
245:          *
246:          * @generated
247:          */
248:         protected void addInfoImageURLPropertyDescriptor(Object object) {
249:                 itemPropertyDescriptors
250:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
251:                                 getResourceLocator(),
252:                                 getString("_UI_ValidationStyleProperty_infoImageURL_feature"), //$NON-NLS-1$
253:                                 getString(
254:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_infoImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
255:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
256:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__INFO_IMAGE_URL,
257:                                 true,
258:                                 false,
259:                                 false,
260:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
261:                                 null,
262:                                 null));
263:         }
264:
265:         /**
266:          * This adds a property descriptor for the Info Overlay URL feature.
267:          * <!-- begin-user-doc -->
268:          * <!-- end-user-doc -->
269:          *
270:          * @generated
271:          */
272:         protected void addInfoOverlayURLPropertyDescriptor(Object object) {
273:                 itemPropertyDescriptors
274:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
275:                                 getResourceLocator(),
276:                                 getString("_UI_ValidationStyleProperty_infoOverlayURL_feature"), //$NON-NLS-1$
277:                                 getString(
278:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_infoOverlayURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
279:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
280:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__INFO_OVERLAY_URL,
281:                                 true,
282:                                 false,
283:                                 false,
284:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
285:                                 null,
286:                                 null));
287:         }
288:
289:         /**
290:          * This adds a property descriptor for the Warning Color HEX feature.
291:          * <!-- begin-user-doc -->
292:          * <!-- end-user-doc -->
293:          *
294:          * @generated
295:          */
296:         protected void addWarningColorHEXPropertyDescriptor(Object object) {
297:                 itemPropertyDescriptors
298:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
299:                                 getResourceLocator(),
300:                                 getString("_UI_ValidationStyleProperty_warningColorHEX_feature"), //$NON-NLS-1$
301:                                 getString(
302:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_warningColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
303:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
304:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__WARNING_COLOR_HEX,
305:                                 true,
306:                                 false,
307:                                 false,
308:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
309:                                 null,
310:                                 null));
311:         }
312:
313:         /**
314:          * This adds a property descriptor for the Warning Foreground Color HEX feature.
315:          * <!-- begin-user-doc -->
316:          * <!-- end-user-doc -->
317:          *
318:          * @generated
319:          */
320:         protected void addWarningForegroundColorHEXPropertyDescriptor(Object object) {
321:                 itemPropertyDescriptors
322:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
323:                                 getResourceLocator(),
324:                                 getString("_UI_ValidationStyleProperty_warningForegroundColorHEX_feature"), //$NON-NLS-1$
325:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
326:                                         "_UI_ValidationStyleProperty_warningForegroundColorHEX_feature", //$NON-NLS-1$
327:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
328:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__WARNING_FOREGROUND_COLOR_HEX,
329:                                 true,
330:                                 false,
331:                                 false,
332:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
333:                                 null,
334:                                 null));
335:         }
336:
337:         /**
338:          * This adds a property descriptor for the Warning Image URL feature.
339:          * <!-- begin-user-doc -->
340:          * <!-- end-user-doc -->
341:          *
342:          * @generated
343:          */
344:         protected void addWarningImageURLPropertyDescriptor(Object object) {
345:                 itemPropertyDescriptors
346:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
347:                                 getResourceLocator(),
348:                                 getString("_UI_ValidationStyleProperty_warningImageURL_feature"), //$NON-NLS-1$
349:                                 getString(
350:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_warningImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
351:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
352:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__WARNING_IMAGE_URL,
353:                                 true,
354:                                 false,
355:                                 false,
356:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
357:                                 null,
358:                                 null));
359:         }
360:
361:         /**
362:          * This adds a property descriptor for the Warning Overlay URL feature.
363:          * <!-- begin-user-doc -->
364:          * <!-- end-user-doc -->
365:          *
366:          * @generated
367:          */
368:         protected void addWarningOverlayURLPropertyDescriptor(Object object) {
369:                 itemPropertyDescriptors
370:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
371:                                 getResourceLocator(),
372:                                 getString("_UI_ValidationStyleProperty_warningOverlayURL_feature"), //$NON-NLS-1$
373:                                 getString(
374:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_warningOverlayURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
375:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
376:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__WARNING_OVERLAY_URL,
377:                                 true,
378:                                 false,
379:                                 false,
380:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
381:                                 null,
382:                                 null));
383:         }
384:
385:         /**
386:          * This adds a property descriptor for the Error Color HEX feature.
387:          * <!-- begin-user-doc -->
388:          * <!-- end-user-doc -->
389:          *
390:          * @generated
391:          */
392:         protected void addErrorColorHEXPropertyDescriptor(Object object) {
393:                 itemPropertyDescriptors
394:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
395:                                 getResourceLocator(),
396:                                 getString("_UI_ValidationStyleProperty_errorColorHEX_feature"), //$NON-NLS-1$
397:                                 getString(
398:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_errorColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
399:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
400:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__ERROR_COLOR_HEX,
401:                                 true,
402:                                 false,
403:                                 false,
404:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
405:                                 null,
406:                                 null));
407:         }
408:
409:         /**
410:          * This adds a property descriptor for the Error Foreground Color HEX feature.
411:          * <!-- begin-user-doc -->
412:          * <!-- end-user-doc -->
413:          *
414:          * @generated
415:          */
416:         protected void addErrorForegroundColorHEXPropertyDescriptor(Object object) {
417:                 itemPropertyDescriptors
418:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
419:                                 getResourceLocator(),
420:                                 getString("_UI_ValidationStyleProperty_errorForegroundColorHEX_feature"), //$NON-NLS-1$
421:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
422:                                         "_UI_ValidationStyleProperty_errorForegroundColorHEX_feature", "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$ //$NON-NLS-2$
423:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__ERROR_FOREGROUND_COLOR_HEX,
424:                                 true,
425:                                 false,
426:                                 false,
427:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
428:                                 null,
429:                                 null));
430:         }
431:
432:         /**
433:          * This adds a property descriptor for the Error Image URL feature.
434:          * <!-- begin-user-doc -->
435:          * <!-- end-user-doc -->
436:          *
437:          * @generated
438:          */
439:         protected void addErrorImageURLPropertyDescriptor(Object object) {
440:                 itemPropertyDescriptors
441:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
442:                                 getResourceLocator(),
443:                                 getString("_UI_ValidationStyleProperty_errorImageURL_feature"), //$NON-NLS-1$
444:                                 getString(
445:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_errorImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
446:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
447:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__ERROR_IMAGE_URL,
448:                                 true,
449:                                 false,
450:                                 false,
451:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
452:                                 null,
453:                                 null));
454:         }
455:
456:         /**
457:          * This adds a property descriptor for the Error Overlay URL feature.
458:          * <!-- begin-user-doc -->
459:          * <!-- end-user-doc -->
460:          *
461:          * @generated
462:          */
463:         protected void addErrorOverlayURLPropertyDescriptor(Object object) {
464:                 itemPropertyDescriptors
465:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
466:                                 getResourceLocator(),
467:                                 getString("_UI_ValidationStyleProperty_errorOverlayURL_feature"), //$NON-NLS-1$
468:                                 getString(
469:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_errorOverlayURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
470:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
471:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__ERROR_OVERLAY_URL,
472:                                 true,
473:                                 false,
474:                                 false,
475:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
476:                                 null,
477:                                 null));
478:         }
479:
480:         /**
481:          * This adds a property descriptor for the Cancel Color HEX feature.
482:          * <!-- begin-user-doc -->
483:          * <!-- end-user-doc -->
484:          *
485:          * @generated
486:          */
487:         protected void addCancelColorHEXPropertyDescriptor(Object object) {
488:                 itemPropertyDescriptors
489:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
490:                                 getResourceLocator(),
491:                                 getString("_UI_ValidationStyleProperty_cancelColorHEX_feature"), //$NON-NLS-1$
492:                                 getString(
493:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_cancelColorHEX_feature", //$NON-NLS-1$ //$NON-NLS-2$
494:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
495:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__CANCEL_COLOR_HEX,
496:                                 true,
497:                                 false,
498:                                 false,
499:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
500:                                 null,
501:                                 null));
502:         }
503:
504:         /**
505:          * This adds a property descriptor for the Cancel Foreground Color HEX feature.
506:          * <!-- begin-user-doc -->
507:          * <!-- end-user-doc -->
508:          *
509:          * @generated
510:          */
511:         protected void addCancelForegroundColorHEXPropertyDescriptor(Object object) {
512:                 itemPropertyDescriptors
513:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
514:                                 getResourceLocator(),
515:                                 getString("_UI_ValidationStyleProperty_cancelForegroundColorHEX_feature"), //$NON-NLS-1$
516:                                 getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$
517:                                         "_UI_ValidationStyleProperty_cancelForegroundColorHEX_feature", "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$ //$NON-NLS-2$
518:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__CANCEL_FOREGROUND_COLOR_HEX,
519:                                 true,
520:                                 false,
521:                                 false,
522:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
523:                                 null,
524:                                 null));
525:         }
526:
527:         /**
528:          * This adds a property descriptor for the Cancel Image URL feature.
529:          * <!-- begin-user-doc -->
530:          * <!-- end-user-doc -->
531:          *
532:          * @generated
533:          */
534:         protected void addCancelImageURLPropertyDescriptor(Object object) {
535:                 itemPropertyDescriptors
536:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
537:                                 getResourceLocator(),
538:                                 getString("_UI_ValidationStyleProperty_cancelImageURL_feature"), //$NON-NLS-1$
539:                                 getString(
540:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_cancelImageURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
541:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
542:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__CANCEL_IMAGE_URL,
543:                                 true,
544:                                 false,
545:                                 false,
546:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
547:                                 null,
548:                                 null));
549:         }
550:
551:         /**
552:          * This adds a property descriptor for the Cancel Overlay URL feature.
553:          * <!-- begin-user-doc -->
554:          * <!-- end-user-doc -->
555:          *
556:          * @generated
557:          */
558:         protected void addCancelOverlayURLPropertyDescriptor(Object object) {
559:                 itemPropertyDescriptors
560:                         .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
561:                                 getResourceLocator(),
562:                                 getString("_UI_ValidationStyleProperty_cancelOverlayURL_feature"), //$NON-NLS-1$
563:                                 getString(
564:                                         "_UI_PropertyDescriptor_description", "_UI_ValidationStyleProperty_cancelOverlayURL_feature", //$NON-NLS-1$ //$NON-NLS-2$
565:                                         "_UI_ValidationStyleProperty_type"), //$NON-NLS-1$
566:                                 VTValidationPackage.Literals.VALIDATION_STYLE_PROPERTY__CANCEL_OVERLAY_URL,
567:                                 true,
568:                                 false,
569:                                 false,
570:                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
571:                                 null,
572:                                 null));
573:         }
574:
575:         /**
576:          * This returns ValidationStyleProperty.gif.
577:          * <!-- begin-user-doc -->
578:          * <!-- end-user-doc -->
579:          *
580:          * @generated
581:          */
582:         @Override
583:         public Object getImage(Object object) {
584:                 return overlayImage(object, getResourceLocator().getImage("full/obj16/ValidationStyleProperty")); //$NON-NLS-1$
585:         }
586:
587:         /**
588:          * This returns the label text for the adapted class.
589:          * <!-- begin-user-doc -->
590:          * <!-- end-user-doc -->
591:          *
592:          * @generated
593:          */
594:         @Override
595:         public String getText(Object object) {
596:                 final String label = ((VTValidationStyleProperty) object).getOkColorHEX();
597:•                return label == null || label.length() == 0 ? getString("_UI_ValidationStyleProperty_type") : //$NON-NLS-1$
598:                         getString("_UI_ValidationStyleProperty_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
599:         }
600:
601:         /**
602:          * This handles model notifications by calling {@link #updateChildren} to update any cached
603:          * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
604:          * <!-- begin-user-doc -->
605:          * <!-- end-user-doc -->
606:          *
607:          * @generated
608:          */
609:         @Override
610:         public void notifyChanged(Notification notification) {
611:                 updateChildren(notification);
612:
613:•                switch (notification.getFeatureID(VTValidationStyleProperty.class)) {
614:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__OK_COLOR_HEX:
615:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__OK_FOREGROUND_COLOR_HEX:
616:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__OK_IMAGE_URL:
617:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__OK_OVERLAY_URL:
618:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__INFO_COLOR_HEX:
619:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__INFO_FOREGROUND_COLOR_HEX:
620:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__INFO_IMAGE_URL:
621:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__INFO_OVERLAY_URL:
622:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__WARNING_COLOR_HEX:
623:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__WARNING_FOREGROUND_COLOR_HEX:
624:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__WARNING_IMAGE_URL:
625:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__WARNING_OVERLAY_URL:
626:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__ERROR_COLOR_HEX:
627:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__ERROR_FOREGROUND_COLOR_HEX:
628:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__ERROR_IMAGE_URL:
629:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__ERROR_OVERLAY_URL:
630:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__CANCEL_COLOR_HEX:
631:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__CANCEL_FOREGROUND_COLOR_HEX:
632:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__CANCEL_IMAGE_URL:
633:                 case VTValidationPackage.VALIDATION_STYLE_PROPERTY__CANCEL_OVERLAY_URL:
634:                         fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
635:                         return;
636:                 }
637:                 super.notifyChanged(notification);
638:         }
639:
640:         /**
641:          * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
642:          * that can be created under this object.
643:          * <!-- begin-user-doc -->
644:          * <!-- end-user-doc -->
645:          *
646:          * @generated
647:          */
648:         @Override
649:         protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
650:                 super.collectNewChildDescriptors(newChildDescriptors, object);
651:         }
652:
653:         /**
654:          * Return the resource locator for this item provider's resources.
655:          * <!-- begin-user-doc -->
656:          * <!-- end-user-doc -->
657:          *
658:          * @generated
659:          */
660:         @Override
661:         public ResourceLocator getResourceLocator() {
662:                 return ((IChildCreationExtender) adapterFactory).getResourceLocator();
663:         }
664:
665: }