1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.fzi.se.quality.qualityannotation.provider; |
8 | |
9 | import de.fzi.se.quality.qualityannotation.util.QualityAnnotationAdapterFactory; |
10 | |
11 | import java.util.ArrayList; |
12 | import java.util.Collection; |
13 | |
14 | import org.eclipse.emf.common.notify.Adapter; |
15 | import org.eclipse.emf.common.notify.Notification; |
16 | import org.eclipse.emf.common.notify.Notifier; |
17 | |
18 | import org.eclipse.emf.edit.provider.ChangeNotifier; |
19 | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; |
20 | import org.eclipse.emf.edit.provider.ComposedAdapterFactory; |
21 | import org.eclipse.emf.edit.provider.IChangeNotifier; |
22 | import org.eclipse.emf.edit.provider.IDisposable; |
23 | import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; |
24 | import org.eclipse.emf.edit.provider.IItemLabelProvider; |
25 | import org.eclipse.emf.edit.provider.IItemPropertySource; |
26 | import org.eclipse.emf.edit.provider.INotifyChangedListener; |
27 | import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; |
28 | import org.eclipse.emf.edit.provider.ITreeItemContentProvider; |
29 | |
30 | /** |
31 | * This is the factory that is used to provide the interfaces needed to support Viewers. |
32 | * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. |
33 | * The adapters also support Eclipse property sheets. |
34 | * Note that most of the adapters are shared among multiple instances. |
35 | * <!-- begin-user-doc --> |
36 | * <!-- end-user-doc --> |
37 | * @generated |
38 | */ |
39 | public class QualityAnnotationItemProviderAdapterFactory extends QualityAnnotationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { |
40 | /** |
41 | * This keeps track of the root adapter factory that delegates to this adapter factory. |
42 | * <!-- begin-user-doc --> |
43 | * <!-- end-user-doc --> |
44 | * @generated |
45 | */ |
46 | protected ComposedAdapterFactory parentAdapterFactory; |
47 | |
48 | /** |
49 | * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. |
50 | * <!-- begin-user-doc --> |
51 | * <!-- end-user-doc --> |
52 | * @generated |
53 | */ |
54 | protected IChangeNotifier changeNotifier = new ChangeNotifier(); |
55 | |
56 | /** |
57 | * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. |
58 | * <!-- begin-user-doc --> |
59 | * <!-- end-user-doc --> |
60 | * @generated |
61 | */ |
62 | protected Collection<Object> supportedTypes = new ArrayList<Object>(); |
63 | |
64 | /** |
65 | * This constructs an instance. |
66 | * <!-- begin-user-doc --> |
67 | * <!-- end-user-doc --> |
68 | * @generated |
69 | */ |
70 | public QualityAnnotationItemProviderAdapterFactory() { |
71 | supportedTypes.add(IEditingDomainItemProvider.class); |
72 | supportedTypes.add(IStructuredItemContentProvider.class); |
73 | supportedTypes.add(ITreeItemContentProvider.class); |
74 | supportedTypes.add(IItemLabelProvider.class); |
75 | supportedTypes.add(IItemPropertySource.class); |
76 | } |
77 | |
78 | /** |
79 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.CallParameterDeviation} instances. |
80 | * <!-- begin-user-doc --> |
81 | * <!-- end-user-doc --> |
82 | * @generated |
83 | */ |
84 | protected CallParameterDeviationItemProvider callParameterDeviationItemProvider; |
85 | |
86 | /** |
87 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.CallParameterDeviation}. |
88 | * <!-- begin-user-doc --> |
89 | * <!-- end-user-doc --> |
90 | * @generated |
91 | */ |
92 | @Override |
93 | public Adapter createCallParameterDeviationAdapter() { |
94 | if (callParameterDeviationItemProvider == null) { |
95 | callParameterDeviationItemProvider = new CallParameterDeviationItemProvider(this); |
96 | } |
97 | |
98 | return callParameterDeviationItemProvider; |
99 | } |
100 | |
101 | /** |
102 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.QualityAnnotation} instances. |
103 | * <!-- begin-user-doc --> |
104 | * <!-- end-user-doc --> |
105 | * @generated |
106 | */ |
107 | protected QualityAnnotationItemProvider qualityAnnotationItemProvider; |
108 | |
109 | /** |
110 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.QualityAnnotation}. |
111 | * <!-- begin-user-doc --> |
112 | * <!-- end-user-doc --> |
113 | * @generated |
114 | */ |
115 | @Override |
116 | public Adapter createQualityAnnotationAdapter() { |
117 | if (qualityAnnotationItemProvider == null) { |
118 | qualityAnnotationItemProvider = new QualityAnnotationItemProvider(this); |
119 | } |
120 | |
121 | return qualityAnnotationItemProvider; |
122 | } |
123 | |
124 | /** |
125 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.RequiredElement} instances. |
126 | * <!-- begin-user-doc --> |
127 | * <!-- end-user-doc --> |
128 | * @generated |
129 | */ |
130 | protected RequiredElementItemProvider requiredElementItemProvider; |
131 | |
132 | /** |
133 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.RequiredElement}. |
134 | * <!-- begin-user-doc --> |
135 | * <!-- end-user-doc --> |
136 | * @generated |
137 | */ |
138 | @Override |
139 | public Adapter createRequiredElementAdapter() { |
140 | if (requiredElementItemProvider == null) { |
141 | requiredElementItemProvider = new RequiredElementItemProvider(this); |
142 | } |
143 | |
144 | return requiredElementItemProvider; |
145 | } |
146 | |
147 | /** |
148 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.NumberOfCallsDeviation} instances. |
149 | * <!-- begin-user-doc --> |
150 | * <!-- end-user-doc --> |
151 | * @generated |
152 | */ |
153 | protected NumberOfCallsDeviationItemProvider numberOfCallsDeviationItemProvider; |
154 | |
155 | /** |
156 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.NumberOfCallsDeviation}. |
157 | * <!-- begin-user-doc --> |
158 | * <!-- end-user-doc --> |
159 | * @generated |
160 | */ |
161 | @Override |
162 | public Adapter createNumberOfCallsDeviationAdapter() { |
163 | if (numberOfCallsDeviationItemProvider == null) { |
164 | numberOfCallsDeviationItemProvider = new NumberOfCallsDeviationItemProvider(this); |
165 | } |
166 | |
167 | return numberOfCallsDeviationItemProvider; |
168 | } |
169 | |
170 | /** |
171 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.InternalStateInfluenceAnalysisAggregation} instances. |
172 | * <!-- begin-user-doc --> |
173 | * <!-- end-user-doc --> |
174 | * @generated |
175 | */ |
176 | protected InternalStateInfluenceAnalysisAggregationItemProvider internalStateInfluenceAnalysisAggregationItemProvider; |
177 | |
178 | /** |
179 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.InternalStateInfluenceAnalysisAggregation}. |
180 | * <!-- begin-user-doc --> |
181 | * <!-- end-user-doc --> |
182 | * @generated |
183 | */ |
184 | @Override |
185 | public Adapter createInternalStateInfluenceAnalysisAggregationAdapter() { |
186 | if (internalStateInfluenceAnalysisAggregationItemProvider == null) { |
187 | internalStateInfluenceAnalysisAggregationItemProvider = new InternalStateInfluenceAnalysisAggregationItemProvider(this); |
188 | } |
189 | |
190 | return internalStateInfluenceAnalysisAggregationItemProvider; |
191 | } |
192 | |
193 | /** |
194 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.REPrecision} instances. |
195 | * <!-- begin-user-doc --> |
196 | * <!-- end-user-doc --> |
197 | * @generated |
198 | */ |
199 | protected REPrecisionItemProvider rePrecisionItemProvider; |
200 | |
201 | /** |
202 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.REPrecision}. |
203 | * <!-- begin-user-doc --> |
204 | * <!-- end-user-doc --> |
205 | * @generated |
206 | */ |
207 | @Override |
208 | public Adapter createREPrecisionAdapter() { |
209 | if (rePrecisionItemProvider == null) { |
210 | rePrecisionItemProvider = new REPrecisionItemProvider(this); |
211 | } |
212 | |
213 | return rePrecisionItemProvider; |
214 | } |
215 | |
216 | /** |
217 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.PCMParameterPartition} instances. |
218 | * <!-- begin-user-doc --> |
219 | * <!-- end-user-doc --> |
220 | * @generated |
221 | */ |
222 | protected PCMParameterPartitionItemProvider pcmParameterPartitionItemProvider; |
223 | |
224 | /** |
225 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.PCMParameterPartition}. |
226 | * <!-- begin-user-doc --> |
227 | * <!-- end-user-doc --> |
228 | * @generated |
229 | */ |
230 | @Override |
231 | public Adapter createPCMParameterPartitionAdapter() { |
232 | if (pcmParameterPartitionItemProvider == null) { |
233 | pcmParameterPartitionItemProvider = new PCMParameterPartitionItemProvider(this); |
234 | } |
235 | |
236 | return pcmParameterPartitionItemProvider; |
237 | } |
238 | |
239 | /** |
240 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.CharacterisedPCMParameterPartitionInterval} instances. |
241 | * <!-- begin-user-doc --> |
242 | * <!-- end-user-doc --> |
243 | * @generated |
244 | */ |
245 | protected CharacterisedPCMParameterPartitionIntervalItemProvider characterisedPCMParameterPartitionIntervalItemProvider; |
246 | |
247 | /** |
248 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.CharacterisedPCMParameterPartitionInterval}. |
249 | * <!-- begin-user-doc --> |
250 | * <!-- end-user-doc --> |
251 | * @generated |
252 | */ |
253 | @Override |
254 | public Adapter createCharacterisedPCMParameterPartitionIntervalAdapter() { |
255 | if (characterisedPCMParameterPartitionIntervalItemProvider == null) { |
256 | characterisedPCMParameterPartitionIntervalItemProvider = new CharacterisedPCMParameterPartitionIntervalItemProvider(this); |
257 | } |
258 | |
259 | return characterisedPCMParameterPartitionIntervalItemProvider; |
260 | } |
261 | |
262 | /** |
263 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.CharacterisedPCMParameterPartitionRange} instances. |
264 | * <!-- begin-user-doc --> |
265 | * <!-- end-user-doc --> |
266 | * @generated |
267 | */ |
268 | protected CharacterisedPCMParameterPartitionRangeItemProvider characterisedPCMParameterPartitionRangeItemProvider; |
269 | |
270 | /** |
271 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.CharacterisedPCMParameterPartitionRange}. |
272 | * <!-- begin-user-doc --> |
273 | * <!-- end-user-doc --> |
274 | * @generated |
275 | */ |
276 | @Override |
277 | public Adapter createCharacterisedPCMParameterPartitionRangeAdapter() { |
278 | if (characterisedPCMParameterPartitionRangeItemProvider == null) { |
279 | characterisedPCMParameterPartitionRangeItemProvider = new CharacterisedPCMParameterPartitionRangeItemProvider(this); |
280 | } |
281 | |
282 | return characterisedPCMParameterPartitionRangeItemProvider; |
283 | } |
284 | |
285 | /** |
286 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.ExactlyAsSpecifiedPrecision} instances. |
287 | * <!-- begin-user-doc --> |
288 | * <!-- end-user-doc --> |
289 | * @generated |
290 | */ |
291 | protected ExactlyAsSpecifiedPrecisionItemProvider exactlyAsSpecifiedPrecisionItemProvider; |
292 | |
293 | /** |
294 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.ExactlyAsSpecifiedPrecision}. |
295 | * <!-- begin-user-doc --> |
296 | * <!-- end-user-doc --> |
297 | * @generated |
298 | */ |
299 | @Override |
300 | public Adapter createExactlyAsSpecifiedPrecisionAdapter() { |
301 | if (exactlyAsSpecifiedPrecisionItemProvider == null) { |
302 | exactlyAsSpecifiedPrecisionItemProvider = new ExactlyAsSpecifiedPrecisionItemProvider(this); |
303 | } |
304 | |
305 | return exactlyAsSpecifiedPrecisionItemProvider; |
306 | } |
307 | |
308 | /** |
309 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.LimitedDeviationPrecision} instances. |
310 | * <!-- begin-user-doc --> |
311 | * <!-- end-user-doc --> |
312 | * @generated |
313 | */ |
314 | protected LimitedDeviationPrecisionItemProvider limitedDeviationPrecisionItemProvider; |
315 | |
316 | /** |
317 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.LimitedDeviationPrecision}. |
318 | * <!-- begin-user-doc --> |
319 | * <!-- end-user-doc --> |
320 | * @generated |
321 | */ |
322 | @Override |
323 | public Adapter createLimitedDeviationPrecisionAdapter() { |
324 | if (limitedDeviationPrecisionItemProvider == null) { |
325 | limitedDeviationPrecisionItemProvider = new LimitedDeviationPrecisionItemProvider(this); |
326 | } |
327 | |
328 | return limitedDeviationPrecisionItemProvider; |
329 | } |
330 | |
331 | /** |
332 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.NoPrecision} instances. |
333 | * <!-- begin-user-doc --> |
334 | * <!-- end-user-doc --> |
335 | * @generated |
336 | */ |
337 | protected NoPrecisionItemProvider noPrecisionItemProvider; |
338 | |
339 | /** |
340 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.NoPrecision}. |
341 | * <!-- begin-user-doc --> |
342 | * <!-- end-user-doc --> |
343 | * @generated |
344 | */ |
345 | @Override |
346 | public Adapter createNoPrecisionAdapter() { |
347 | if (noPrecisionItemProvider == null) { |
348 | noPrecisionItemProvider = new NoPrecisionItemProvider(this); |
349 | } |
350 | |
351 | return noPrecisionItemProvider; |
352 | } |
353 | |
354 | /** |
355 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.PCMRECategory} instances. |
356 | * <!-- begin-user-doc --> |
357 | * <!-- end-user-doc --> |
358 | * @generated |
359 | */ |
360 | protected PCMRECategoryItemProvider pcmreCategoryItemProvider; |
361 | |
362 | /** |
363 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.PCMRECategory}. |
364 | * <!-- begin-user-doc --> |
365 | * <!-- end-user-doc --> |
366 | * @generated |
367 | */ |
368 | @Override |
369 | public Adapter createPCMRECategoryAdapter() { |
370 | if (pcmreCategoryItemProvider == null) { |
371 | pcmreCategoryItemProvider = new PCMRECategoryItemProvider(this); |
372 | } |
373 | |
374 | return pcmreCategoryItemProvider; |
375 | } |
376 | |
377 | /** |
378 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.PCMREInterface} instances. |
379 | * <!-- begin-user-doc --> |
380 | * <!-- end-user-doc --> |
381 | * @generated |
382 | */ |
383 | protected PCMREInterfaceItemProvider pcmreInterfaceItemProvider; |
384 | |
385 | /** |
386 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.PCMREInterface}. |
387 | * <!-- begin-user-doc --> |
388 | * <!-- end-user-doc --> |
389 | * @generated |
390 | */ |
391 | @Override |
392 | public Adapter createPCMREInterfaceAdapter() { |
393 | if (pcmreInterfaceItemProvider == null) { |
394 | pcmreInterfaceItemProvider = new PCMREInterfaceItemProvider(this); |
395 | } |
396 | |
397 | return pcmreInterfaceItemProvider; |
398 | } |
399 | |
400 | /** |
401 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.PCMRERole} instances. |
402 | * <!-- begin-user-doc --> |
403 | * <!-- end-user-doc --> |
404 | * @generated |
405 | */ |
406 | protected PCMRERoleItemProvider pcmreRoleItemProvider; |
407 | |
408 | /** |
409 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.PCMRERole}. |
410 | * <!-- begin-user-doc --> |
411 | * <!-- end-user-doc --> |
412 | * @generated |
413 | */ |
414 | @Override |
415 | public Adapter createPCMRERoleAdapter() { |
416 | if (pcmreRoleItemProvider == null) { |
417 | pcmreRoleItemProvider = new PCMRERoleItemProvider(this); |
418 | } |
419 | |
420 | return pcmreRoleItemProvider; |
421 | } |
422 | |
423 | /** |
424 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.PCMRESignature} instances. |
425 | * <!-- begin-user-doc --> |
426 | * <!-- end-user-doc --> |
427 | * @generated |
428 | */ |
429 | protected PCMRESignatureItemProvider pcmreSignatureItemProvider; |
430 | |
431 | /** |
432 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.PCMRESignature}. |
433 | * <!-- begin-user-doc --> |
434 | * <!-- end-user-doc --> |
435 | * @generated |
436 | */ |
437 | @Override |
438 | public Adapter createPCMRESignatureAdapter() { |
439 | if (pcmreSignatureItemProvider == null) { |
440 | pcmreSignatureItemProvider = new PCMRESignatureItemProvider(this); |
441 | } |
442 | |
443 | return pcmreSignatureItemProvider; |
444 | } |
445 | |
446 | /** |
447 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.PCMServiceSpecification} instances. |
448 | * <!-- begin-user-doc --> |
449 | * <!-- end-user-doc --> |
450 | * @generated |
451 | */ |
452 | protected PCMServiceSpecificationItemProvider pcmServiceSpecificationItemProvider; |
453 | |
454 | /** |
455 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.PCMServiceSpecification}. |
456 | * <!-- begin-user-doc --> |
457 | * <!-- end-user-doc --> |
458 | * @generated |
459 | */ |
460 | @Override |
461 | public Adapter createPCMServiceSpecificationAdapter() { |
462 | if (pcmServiceSpecificationItemProvider == null) { |
463 | pcmServiceSpecificationItemProvider = new PCMServiceSpecificationItemProvider(this); |
464 | } |
465 | |
466 | return pcmServiceSpecificationItemProvider; |
467 | } |
468 | |
469 | /** |
470 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.PCMREResourceInterface} instances. |
471 | * <!-- begin-user-doc --> |
472 | * <!-- end-user-doc --> |
473 | * @generated |
474 | */ |
475 | protected PCMREResourceInterfaceItemProvider pcmreResourceInterfaceItemProvider; |
476 | |
477 | /** |
478 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.PCMREResourceInterface}. |
479 | * <!-- begin-user-doc --> |
480 | * <!-- end-user-doc --> |
481 | * @generated |
482 | */ |
483 | @Override |
484 | public Adapter createPCMREResourceInterfaceAdapter() { |
485 | if (pcmreResourceInterfaceItemProvider == null) { |
486 | pcmreResourceInterfaceItemProvider = new PCMREResourceInterfaceItemProvider(this); |
487 | } |
488 | |
489 | return pcmreResourceInterfaceItemProvider; |
490 | } |
491 | |
492 | /** |
493 | * This keeps track of the one adapter used for all {@link de.fzi.se.quality.qualityannotation.PCMREResourceSignature} instances. |
494 | * <!-- begin-user-doc --> |
495 | * <!-- end-user-doc --> |
496 | * @generated |
497 | */ |
498 | protected PCMREResourceSignatureItemProvider pcmreResourceSignatureItemProvider; |
499 | |
500 | /** |
501 | * This creates an adapter for a {@link de.fzi.se.quality.qualityannotation.PCMREResourceSignature}. |
502 | * <!-- begin-user-doc --> |
503 | * <!-- end-user-doc --> |
504 | * @generated |
505 | */ |
506 | @Override |
507 | public Adapter createPCMREResourceSignatureAdapter() { |
508 | if (pcmreResourceSignatureItemProvider == null) { |
509 | pcmreResourceSignatureItemProvider = new PCMREResourceSignatureItemProvider(this); |
510 | } |
511 | |
512 | return pcmreResourceSignatureItemProvider; |
513 | } |
514 | |
515 | /** |
516 | * This returns the root adapter factory that contains this factory. |
517 | * <!-- begin-user-doc --> |
518 | * <!-- end-user-doc --> |
519 | * @generated |
520 | */ |
521 | public ComposeableAdapterFactory getRootAdapterFactory() { |
522 | return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); |
523 | } |
524 | |
525 | /** |
526 | * This sets the composed adapter factory that contains this factory. |
527 | * <!-- begin-user-doc --> |
528 | * <!-- end-user-doc --> |
529 | * @generated |
530 | */ |
531 | public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { |
532 | this.parentAdapterFactory = parentAdapterFactory; |
533 | } |
534 | |
535 | /** |
536 | * <!-- begin-user-doc --> |
537 | * <!-- end-user-doc --> |
538 | * @generated |
539 | */ |
540 | @Override |
541 | public boolean isFactoryForType(Object type) { |
542 | return supportedTypes.contains(type) || super.isFactoryForType(type); |
543 | } |
544 | |
545 | /** |
546 | * This implementation substitutes the factory itself as the key for the adapter. |
547 | * <!-- begin-user-doc --> |
548 | * <!-- end-user-doc --> |
549 | * @generated |
550 | */ |
551 | @Override |
552 | public Adapter adapt(Notifier notifier, Object type) { |
553 | return super.adapt(notifier, this); |
554 | } |
555 | |
556 | /** |
557 | * <!-- begin-user-doc --> |
558 | * <!-- end-user-doc --> |
559 | * @generated |
560 | */ |
561 | @Override |
562 | public Object adapt(Object object, Object type) { |
563 | if (isFactoryForType(type)) { |
564 | Object adapter = super.adapt(object, type); |
565 | if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { |
566 | return adapter; |
567 | } |
568 | } |
569 | |
570 | return null; |
571 | } |
572 | |
573 | /** |
574 | * This adds a listener. |
575 | * <!-- begin-user-doc --> |
576 | * <!-- end-user-doc --> |
577 | * @generated |
578 | */ |
579 | public void addListener(INotifyChangedListener notifyChangedListener) { |
580 | changeNotifier.addListener(notifyChangedListener); |
581 | } |
582 | |
583 | /** |
584 | * This removes a listener. |
585 | * <!-- begin-user-doc --> |
586 | * <!-- end-user-doc --> |
587 | * @generated |
588 | */ |
589 | public void removeListener(INotifyChangedListener notifyChangedListener) { |
590 | changeNotifier.removeListener(notifyChangedListener); |
591 | } |
592 | |
593 | /** |
594 | * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. |
595 | * <!-- begin-user-doc --> |
596 | * <!-- end-user-doc --> |
597 | * @generated |
598 | */ |
599 | public void fireNotifyChanged(Notification notification) { |
600 | changeNotifier.fireNotifyChanged(notification); |
601 | |
602 | if (parentAdapterFactory != null) { |
603 | parentAdapterFactory.fireNotifyChanged(notification); |
604 | } |
605 | } |
606 | |
607 | /** |
608 | * This disposes all of the item providers created by this factory. |
609 | * <!-- begin-user-doc --> |
610 | * <!-- end-user-doc --> |
611 | * @generated |
612 | */ |
613 | public void dispose() { |
614 | if (callParameterDeviationItemProvider != null) callParameterDeviationItemProvider.dispose(); |
615 | if (qualityAnnotationItemProvider != null) qualityAnnotationItemProvider.dispose(); |
616 | if (requiredElementItemProvider != null) requiredElementItemProvider.dispose(); |
617 | if (numberOfCallsDeviationItemProvider != null) numberOfCallsDeviationItemProvider.dispose(); |
618 | if (internalStateInfluenceAnalysisAggregationItemProvider != null) internalStateInfluenceAnalysisAggregationItemProvider.dispose(); |
619 | if (rePrecisionItemProvider != null) rePrecisionItemProvider.dispose(); |
620 | if (pcmParameterPartitionItemProvider != null) pcmParameterPartitionItemProvider.dispose(); |
621 | if (characterisedPCMParameterPartitionIntervalItemProvider != null) characterisedPCMParameterPartitionIntervalItemProvider.dispose(); |
622 | if (characterisedPCMParameterPartitionRangeItemProvider != null) characterisedPCMParameterPartitionRangeItemProvider.dispose(); |
623 | if (exactlyAsSpecifiedPrecisionItemProvider != null) exactlyAsSpecifiedPrecisionItemProvider.dispose(); |
624 | if (limitedDeviationPrecisionItemProvider != null) limitedDeviationPrecisionItemProvider.dispose(); |
625 | if (noPrecisionItemProvider != null) noPrecisionItemProvider.dispose(); |
626 | if (pcmreCategoryItemProvider != null) pcmreCategoryItemProvider.dispose(); |
627 | if (pcmreInterfaceItemProvider != null) pcmreInterfaceItemProvider.dispose(); |
628 | if (pcmreRoleItemProvider != null) pcmreRoleItemProvider.dispose(); |
629 | if (pcmreSignatureItemProvider != null) pcmreSignatureItemProvider.dispose(); |
630 | if (pcmServiceSpecificationItemProvider != null) pcmServiceSpecificationItemProvider.dispose(); |
631 | if (pcmreResourceInterfaceItemProvider != null) pcmreResourceInterfaceItemProvider.dispose(); |
632 | if (pcmreResourceSignatureItemProvider != null) pcmreResourceSignatureItemProvider.dispose(); |
633 | } |
634 | |
635 | } |