1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package EssentialOCL.provider; |
8 | |
9 | |
10 | import EssentialOCL.EssentialOCLFactory; |
11 | import EssentialOCL.EssentialOCLPackage; |
12 | import EssentialOCL.IfExp; |
13 | |
14 | import QVTRelation.QVTRelationFactory; |
15 | |
16 | import QVTTemplate.QVTTemplateFactory; |
17 | |
18 | import java.util.Collection; |
19 | import java.util.List; |
20 | |
21 | import org.eclipse.emf.common.notify.AdapterFactory; |
22 | import org.eclipse.emf.common.notify.Notification; |
23 | |
24 | import org.eclipse.emf.ecore.EStructuralFeature; |
25 | |
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.ViewerNotification; |
33 | |
34 | /** |
35 | * This is the item provider adapter for a {@link EssentialOCL.IfExp} object. |
36 | * <!-- begin-user-doc --> |
37 | * <!-- end-user-doc --> |
38 | * @generated |
39 | */ |
40 | public class IfExpItemProvider |
41 | extends OclExpressionItemProvider |
42 | implements |
43 | IEditingDomainItemProvider, |
44 | IStructuredItemContentProvider, |
45 | ITreeItemContentProvider, |
46 | IItemLabelProvider, |
47 | IItemPropertySource { |
48 | /** |
49 | * This constructs an instance from a factory and a notifier. |
50 | * <!-- begin-user-doc --> |
51 | * <!-- end-user-doc --> |
52 | * @generated |
53 | */ |
54 | public IfExpItemProvider(AdapterFactory adapterFactory) { |
55 | super(adapterFactory); |
56 | } |
57 | |
58 | /** |
59 | * This returns the property descriptors for the adapted class. |
60 | * <!-- begin-user-doc --> |
61 | * <!-- end-user-doc --> |
62 | * @generated |
63 | */ |
64 | @Override |
65 | public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { |
66 | if (itemPropertyDescriptors == null) { |
67 | super.getPropertyDescriptors(object); |
68 | |
69 | } |
70 | return itemPropertyDescriptors; |
71 | } |
72 | |
73 | /** |
74 | * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an |
75 | * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or |
76 | * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. |
77 | * <!-- begin-user-doc --> |
78 | * <!-- end-user-doc --> |
79 | * @generated |
80 | */ |
81 | @Override |
82 | public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { |
83 | if (childrenFeatures == null) { |
84 | super.getChildrenFeatures(object); |
85 | childrenFeatures.add(EssentialOCLPackage.Literals.IF_EXP__CONDITION); |
86 | childrenFeatures.add(EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION); |
87 | childrenFeatures.add(EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION); |
88 | } |
89 | return childrenFeatures; |
90 | } |
91 | |
92 | /** |
93 | * <!-- begin-user-doc --> |
94 | * <!-- end-user-doc --> |
95 | * @generated |
96 | */ |
97 | @Override |
98 | protected EStructuralFeature getChildFeature(Object object, Object child) { |
99 | // Check the type of the specified child object and return the proper feature to use for |
100 | // adding (see {@link AddCommand}) it as a child. |
101 | |
102 | return super.getChildFeature(object, child); |
103 | } |
104 | |
105 | /** |
106 | * This returns IfExp.gif. |
107 | * <!-- begin-user-doc --> |
108 | * <!-- end-user-doc --> |
109 | * @generated |
110 | */ |
111 | @Override |
112 | public Object getImage(Object object) { |
113 | return overlayImage(object, getResourceLocator().getImage("full/obj16/IfExp")); |
114 | } |
115 | |
116 | /** |
117 | * This returns the label text for the adapted class. |
118 | * <!-- begin-user-doc --> |
119 | * <!-- end-user-doc --> |
120 | * @generated |
121 | */ |
122 | @Override |
123 | public String getText(Object object) { |
124 | String label = ((IfExp)object).getName(); |
125 | return label == null || label.length() == 0 ? |
126 | getString("_UI_IfExp_type") : |
127 | getString("_UI_IfExp_type") + " " + label; |
128 | } |
129 | |
130 | /** |
131 | * This handles model notifications by calling {@link #updateChildren} to update any cached |
132 | * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. |
133 | * <!-- begin-user-doc --> |
134 | * <!-- end-user-doc --> |
135 | * @generated |
136 | */ |
137 | @Override |
138 | public void notifyChanged(Notification notification) { |
139 | updateChildren(notification); |
140 | |
141 | switch (notification.getFeatureID(IfExp.class)) { |
142 | case EssentialOCLPackage.IF_EXP__CONDITION: |
143 | case EssentialOCLPackage.IF_EXP__ELSE_EXPRESSION: |
144 | case EssentialOCLPackage.IF_EXP__THEN_EXPRESSION: |
145 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); |
146 | return; |
147 | } |
148 | super.notifyChanged(notification); |
149 | } |
150 | |
151 | /** |
152 | * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children |
153 | * that can be created under this object. |
154 | * <!-- begin-user-doc --> |
155 | * <!-- end-user-doc --> |
156 | * @generated |
157 | */ |
158 | @Override |
159 | protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { |
160 | super.collectNewChildDescriptors(newChildDescriptors, object); |
161 | |
162 | newChildDescriptors.add |
163 | (createChildParameter |
164 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
165 | EssentialOCLFactory.eINSTANCE.createBooleanLiteralExp())); |
166 | |
167 | newChildDescriptors.add |
168 | (createChildParameter |
169 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
170 | EssentialOCLFactory.eINSTANCE.createCollectionLiteralExp())); |
171 | |
172 | newChildDescriptors.add |
173 | (createChildParameter |
174 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
175 | EssentialOCLFactory.eINSTANCE.createEnumLiteralExp())); |
176 | |
177 | newChildDescriptors.add |
178 | (createChildParameter |
179 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
180 | EssentialOCLFactory.eINSTANCE.createIfExp())); |
181 | |
182 | newChildDescriptors.add |
183 | (createChildParameter |
184 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
185 | EssentialOCLFactory.eINSTANCE.createIntegerLiteralExp())); |
186 | |
187 | newChildDescriptors.add |
188 | (createChildParameter |
189 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
190 | EssentialOCLFactory.eINSTANCE.createInvalidLiteralExp())); |
191 | |
192 | newChildDescriptors.add |
193 | (createChildParameter |
194 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
195 | EssentialOCLFactory.eINSTANCE.createIterateExp())); |
196 | |
197 | newChildDescriptors.add |
198 | (createChildParameter |
199 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
200 | EssentialOCLFactory.eINSTANCE.createIteratorExp())); |
201 | |
202 | newChildDescriptors.add |
203 | (createChildParameter |
204 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
205 | EssentialOCLFactory.eINSTANCE.createLetExp())); |
206 | |
207 | newChildDescriptors.add |
208 | (createChildParameter |
209 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
210 | EssentialOCLFactory.eINSTANCE.createNavigationCallExp())); |
211 | |
212 | newChildDescriptors.add |
213 | (createChildParameter |
214 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
215 | EssentialOCLFactory.eINSTANCE.createNullLiteralExp())); |
216 | |
217 | newChildDescriptors.add |
218 | (createChildParameter |
219 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
220 | EssentialOCLFactory.eINSTANCE.createOperationCallExp())); |
221 | |
222 | newChildDescriptors.add |
223 | (createChildParameter |
224 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
225 | EssentialOCLFactory.eINSTANCE.createPropertyCallExp())); |
226 | |
227 | newChildDescriptors.add |
228 | (createChildParameter |
229 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
230 | EssentialOCLFactory.eINSTANCE.createRealLiteralExp())); |
231 | |
232 | newChildDescriptors.add |
233 | (createChildParameter |
234 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
235 | EssentialOCLFactory.eINSTANCE.createStringLiteralExp())); |
236 | |
237 | newChildDescriptors.add |
238 | (createChildParameter |
239 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
240 | EssentialOCLFactory.eINSTANCE.createTupleLiteralExp())); |
241 | |
242 | newChildDescriptors.add |
243 | (createChildParameter |
244 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
245 | EssentialOCLFactory.eINSTANCE.createTypeExp())); |
246 | |
247 | newChildDescriptors.add |
248 | (createChildParameter |
249 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
250 | EssentialOCLFactory.eINSTANCE.createUnlimitedNaturalExp())); |
251 | |
252 | newChildDescriptors.add |
253 | (createChildParameter |
254 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
255 | EssentialOCLFactory.eINSTANCE.createVariableExp())); |
256 | |
257 | newChildDescriptors.add |
258 | (createChildParameter |
259 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
260 | QVTRelationFactory.eINSTANCE.createOppositePropertyCallExp())); |
261 | |
262 | newChildDescriptors.add |
263 | (createChildParameter |
264 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
265 | QVTRelationFactory.eINSTANCE.createRelationCallExp())); |
266 | |
267 | newChildDescriptors.add |
268 | (createChildParameter |
269 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
270 | QVTTemplateFactory.eINSTANCE.createCollectionTemplateExp())); |
271 | |
272 | newChildDescriptors.add |
273 | (createChildParameter |
274 | (EssentialOCLPackage.Literals.IF_EXP__CONDITION, |
275 | QVTTemplateFactory.eINSTANCE.createObjectTemplateExp())); |
276 | |
277 | newChildDescriptors.add |
278 | (createChildParameter |
279 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
280 | EssentialOCLFactory.eINSTANCE.createBooleanLiteralExp())); |
281 | |
282 | newChildDescriptors.add |
283 | (createChildParameter |
284 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
285 | EssentialOCLFactory.eINSTANCE.createCollectionLiteralExp())); |
286 | |
287 | newChildDescriptors.add |
288 | (createChildParameter |
289 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
290 | EssentialOCLFactory.eINSTANCE.createEnumLiteralExp())); |
291 | |
292 | newChildDescriptors.add |
293 | (createChildParameter |
294 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
295 | EssentialOCLFactory.eINSTANCE.createIfExp())); |
296 | |
297 | newChildDescriptors.add |
298 | (createChildParameter |
299 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
300 | EssentialOCLFactory.eINSTANCE.createIntegerLiteralExp())); |
301 | |
302 | newChildDescriptors.add |
303 | (createChildParameter |
304 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
305 | EssentialOCLFactory.eINSTANCE.createInvalidLiteralExp())); |
306 | |
307 | newChildDescriptors.add |
308 | (createChildParameter |
309 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
310 | EssentialOCLFactory.eINSTANCE.createIterateExp())); |
311 | |
312 | newChildDescriptors.add |
313 | (createChildParameter |
314 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
315 | EssentialOCLFactory.eINSTANCE.createIteratorExp())); |
316 | |
317 | newChildDescriptors.add |
318 | (createChildParameter |
319 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
320 | EssentialOCLFactory.eINSTANCE.createLetExp())); |
321 | |
322 | newChildDescriptors.add |
323 | (createChildParameter |
324 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
325 | EssentialOCLFactory.eINSTANCE.createNavigationCallExp())); |
326 | |
327 | newChildDescriptors.add |
328 | (createChildParameter |
329 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
330 | EssentialOCLFactory.eINSTANCE.createNullLiteralExp())); |
331 | |
332 | newChildDescriptors.add |
333 | (createChildParameter |
334 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
335 | EssentialOCLFactory.eINSTANCE.createOperationCallExp())); |
336 | |
337 | newChildDescriptors.add |
338 | (createChildParameter |
339 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
340 | EssentialOCLFactory.eINSTANCE.createPropertyCallExp())); |
341 | |
342 | newChildDescriptors.add |
343 | (createChildParameter |
344 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
345 | EssentialOCLFactory.eINSTANCE.createRealLiteralExp())); |
346 | |
347 | newChildDescriptors.add |
348 | (createChildParameter |
349 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
350 | EssentialOCLFactory.eINSTANCE.createStringLiteralExp())); |
351 | |
352 | newChildDescriptors.add |
353 | (createChildParameter |
354 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
355 | EssentialOCLFactory.eINSTANCE.createTupleLiteralExp())); |
356 | |
357 | newChildDescriptors.add |
358 | (createChildParameter |
359 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
360 | EssentialOCLFactory.eINSTANCE.createTypeExp())); |
361 | |
362 | newChildDescriptors.add |
363 | (createChildParameter |
364 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
365 | EssentialOCLFactory.eINSTANCE.createUnlimitedNaturalExp())); |
366 | |
367 | newChildDescriptors.add |
368 | (createChildParameter |
369 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
370 | EssentialOCLFactory.eINSTANCE.createVariableExp())); |
371 | |
372 | newChildDescriptors.add |
373 | (createChildParameter |
374 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
375 | QVTRelationFactory.eINSTANCE.createOppositePropertyCallExp())); |
376 | |
377 | newChildDescriptors.add |
378 | (createChildParameter |
379 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
380 | QVTRelationFactory.eINSTANCE.createRelationCallExp())); |
381 | |
382 | newChildDescriptors.add |
383 | (createChildParameter |
384 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
385 | QVTTemplateFactory.eINSTANCE.createCollectionTemplateExp())); |
386 | |
387 | newChildDescriptors.add |
388 | (createChildParameter |
389 | (EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION, |
390 | QVTTemplateFactory.eINSTANCE.createObjectTemplateExp())); |
391 | |
392 | newChildDescriptors.add |
393 | (createChildParameter |
394 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
395 | EssentialOCLFactory.eINSTANCE.createBooleanLiteralExp())); |
396 | |
397 | newChildDescriptors.add |
398 | (createChildParameter |
399 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
400 | EssentialOCLFactory.eINSTANCE.createCollectionLiteralExp())); |
401 | |
402 | newChildDescriptors.add |
403 | (createChildParameter |
404 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
405 | EssentialOCLFactory.eINSTANCE.createEnumLiteralExp())); |
406 | |
407 | newChildDescriptors.add |
408 | (createChildParameter |
409 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
410 | EssentialOCLFactory.eINSTANCE.createIfExp())); |
411 | |
412 | newChildDescriptors.add |
413 | (createChildParameter |
414 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
415 | EssentialOCLFactory.eINSTANCE.createIntegerLiteralExp())); |
416 | |
417 | newChildDescriptors.add |
418 | (createChildParameter |
419 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
420 | EssentialOCLFactory.eINSTANCE.createInvalidLiteralExp())); |
421 | |
422 | newChildDescriptors.add |
423 | (createChildParameter |
424 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
425 | EssentialOCLFactory.eINSTANCE.createIterateExp())); |
426 | |
427 | newChildDescriptors.add |
428 | (createChildParameter |
429 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
430 | EssentialOCLFactory.eINSTANCE.createIteratorExp())); |
431 | |
432 | newChildDescriptors.add |
433 | (createChildParameter |
434 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
435 | EssentialOCLFactory.eINSTANCE.createLetExp())); |
436 | |
437 | newChildDescriptors.add |
438 | (createChildParameter |
439 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
440 | EssentialOCLFactory.eINSTANCE.createNavigationCallExp())); |
441 | |
442 | newChildDescriptors.add |
443 | (createChildParameter |
444 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
445 | EssentialOCLFactory.eINSTANCE.createNullLiteralExp())); |
446 | |
447 | newChildDescriptors.add |
448 | (createChildParameter |
449 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
450 | EssentialOCLFactory.eINSTANCE.createOperationCallExp())); |
451 | |
452 | newChildDescriptors.add |
453 | (createChildParameter |
454 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
455 | EssentialOCLFactory.eINSTANCE.createPropertyCallExp())); |
456 | |
457 | newChildDescriptors.add |
458 | (createChildParameter |
459 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
460 | EssentialOCLFactory.eINSTANCE.createRealLiteralExp())); |
461 | |
462 | newChildDescriptors.add |
463 | (createChildParameter |
464 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
465 | EssentialOCLFactory.eINSTANCE.createStringLiteralExp())); |
466 | |
467 | newChildDescriptors.add |
468 | (createChildParameter |
469 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
470 | EssentialOCLFactory.eINSTANCE.createTupleLiteralExp())); |
471 | |
472 | newChildDescriptors.add |
473 | (createChildParameter |
474 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
475 | EssentialOCLFactory.eINSTANCE.createTypeExp())); |
476 | |
477 | newChildDescriptors.add |
478 | (createChildParameter |
479 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
480 | EssentialOCLFactory.eINSTANCE.createUnlimitedNaturalExp())); |
481 | |
482 | newChildDescriptors.add |
483 | (createChildParameter |
484 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
485 | EssentialOCLFactory.eINSTANCE.createVariableExp())); |
486 | |
487 | newChildDescriptors.add |
488 | (createChildParameter |
489 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
490 | QVTRelationFactory.eINSTANCE.createOppositePropertyCallExp())); |
491 | |
492 | newChildDescriptors.add |
493 | (createChildParameter |
494 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
495 | QVTRelationFactory.eINSTANCE.createRelationCallExp())); |
496 | |
497 | newChildDescriptors.add |
498 | (createChildParameter |
499 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
500 | QVTTemplateFactory.eINSTANCE.createCollectionTemplateExp())); |
501 | |
502 | newChildDescriptors.add |
503 | (createChildParameter |
504 | (EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION, |
505 | QVTTemplateFactory.eINSTANCE.createObjectTemplateExp())); |
506 | } |
507 | |
508 | /** |
509 | * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. |
510 | * <!-- begin-user-doc --> |
511 | * <!-- end-user-doc --> |
512 | * @generated |
513 | */ |
514 | @Override |
515 | public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { |
516 | Object childFeature = feature; |
517 | Object childObject = child; |
518 | |
519 | boolean qualify = |
520 | childFeature == EssentialOCLPackage.Literals.IF_EXP__CONDITION || |
521 | childFeature == EssentialOCLPackage.Literals.IF_EXP__ELSE_EXPRESSION || |
522 | childFeature == EssentialOCLPackage.Literals.IF_EXP__THEN_EXPRESSION; |
523 | |
524 | if (qualify) { |
525 | return getString |
526 | ("_UI_CreateChild_text2", |
527 | new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); |
528 | } |
529 | return super.getCreateChildText(owner, feature, child, selection); |
530 | } |
531 | |
532 | } |