1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.sensitivity.provider; |
8 | |
9 | import java.util.ArrayList; |
10 | import java.util.Collection; |
11 | |
12 | import org.eclipse.emf.common.notify.Adapter; |
13 | import org.eclipse.emf.common.notify.Notification; |
14 | import org.eclipse.emf.common.notify.Notifier; |
15 | import org.eclipse.emf.edit.provider.ChangeNotifier; |
16 | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; |
17 | import org.eclipse.emf.edit.provider.ComposedAdapterFactory; |
18 | import org.eclipse.emf.edit.provider.IChangeNotifier; |
19 | import org.eclipse.emf.edit.provider.IDisposable; |
20 | import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; |
21 | import org.eclipse.emf.edit.provider.IItemLabelProvider; |
22 | import org.eclipse.emf.edit.provider.IItemPropertySource; |
23 | import org.eclipse.emf.edit.provider.INotifyChangedListener; |
24 | import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; |
25 | import org.eclipse.emf.edit.provider.ITreeItemContentProvider; |
26 | |
27 | import de.uka.ipd.sdq.sensitivity.util.SensitivityAdapterFactory; |
28 | |
29 | /** |
30 | * This is the factory that is used to provide the interfaces needed to support Viewers. |
31 | * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. |
32 | * The adapters also support Eclipse property sheets. |
33 | * Note that most of the adapters are shared among multiple instances. |
34 | * <!-- begin-user-doc --> |
35 | * <!-- end-user-doc --> |
36 | * @generated |
37 | */ |
38 | public class SensitivityItemProviderAdapterFactory extends SensitivityAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { |
39 | /** |
40 | * This keeps track of the root adapter factory that delegates to this adapter factory. |
41 | * <!-- begin-user-doc --> |
42 | * <!-- end-user-doc --> |
43 | * @generated |
44 | */ |
45 | protected ComposedAdapterFactory parentAdapterFactory; |
46 | |
47 | /** |
48 | * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. |
49 | * <!-- begin-user-doc --> |
50 | * <!-- end-user-doc --> |
51 | * @generated |
52 | */ |
53 | protected IChangeNotifier changeNotifier = new ChangeNotifier(); |
54 | |
55 | /** |
56 | * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. |
57 | * <!-- begin-user-doc --> |
58 | * <!-- end-user-doc --> |
59 | * @generated |
60 | */ |
61 | protected Collection<Object> supportedTypes = new ArrayList<Object>(); |
62 | |
63 | /** |
64 | * This constructs an instance. |
65 | * <!-- begin-user-doc --> |
66 | * <!-- end-user-doc --> |
67 | * @generated |
68 | */ |
69 | public SensitivityItemProviderAdapterFactory() { |
70 | supportedTypes.add(IEditingDomainItemProvider.class); |
71 | supportedTypes.add(IStructuredItemContentProvider.class); |
72 | supportedTypes.add(ITreeItemContentProvider.class); |
73 | supportedTypes.add(IItemLabelProvider.class); |
74 | supportedTypes.add(IItemPropertySource.class); |
75 | } |
76 | |
77 | /** |
78 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.SensitivityConfiguration} instances. |
79 | * <!-- begin-user-doc --> |
80 | * <!-- end-user-doc --> |
81 | * @generated |
82 | */ |
83 | protected SensitivityConfigurationItemProvider sensitivityConfigurationItemProvider; |
84 | |
85 | /** |
86 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.SensitivityConfiguration}. |
87 | * <!-- begin-user-doc --> |
88 | * <!-- end-user-doc --> |
89 | * @generated |
90 | */ |
91 | @Override |
92 | public Adapter createSensitivityConfigurationAdapter() { |
93 | if (sensitivityConfigurationItemProvider == null) { |
94 | sensitivityConfigurationItemProvider = new SensitivityConfigurationItemProvider(this); |
95 | } |
96 | |
97 | return sensitivityConfigurationItemProvider; |
98 | } |
99 | |
100 | /** |
101 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.CombinedSensitivityParameter} instances. |
102 | * <!-- begin-user-doc --> |
103 | * <!-- end-user-doc --> |
104 | * @generated |
105 | */ |
106 | protected CombinedSensitivityParameterItemProvider combinedSensitivityParameterItemProvider; |
107 | |
108 | /** |
109 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.CombinedSensitivityParameter}. |
110 | * <!-- begin-user-doc --> |
111 | * <!-- end-user-doc --> |
112 | * @generated |
113 | */ |
114 | @Override |
115 | public Adapter createCombinedSensitivityParameterAdapter() { |
116 | if (combinedSensitivityParameterItemProvider == null) { |
117 | combinedSensitivityParameterItemProvider = new CombinedSensitivityParameterItemProvider(this); |
118 | } |
119 | |
120 | return combinedSensitivityParameterItemProvider; |
121 | } |
122 | |
123 | /** |
124 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.ComponentReliabilityParameter} instances. |
125 | * <!-- begin-user-doc --> |
126 | * <!-- end-user-doc --> |
127 | * @generated |
128 | */ |
129 | protected ComponentReliabilityParameterItemProvider componentReliabilityParameterItemProvider; |
130 | |
131 | /** |
132 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.ComponentReliabilityParameter}. |
133 | * <!-- begin-user-doc --> |
134 | * <!-- end-user-doc --> |
135 | * @generated |
136 | */ |
137 | @Override |
138 | public Adapter createComponentReliabilityParameterAdapter() { |
139 | if (componentReliabilityParameterItemProvider == null) { |
140 | componentReliabilityParameterItemProvider = new ComponentReliabilityParameterItemProvider(this); |
141 | } |
142 | |
143 | return componentReliabilityParameterItemProvider; |
144 | } |
145 | |
146 | /** |
147 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.StringParameterSequence} instances. |
148 | * <!-- begin-user-doc --> |
149 | * <!-- end-user-doc --> |
150 | * @generated |
151 | */ |
152 | protected StringParameterSequenceItemProvider stringParameterSequenceItemProvider; |
153 | |
154 | /** |
155 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.StringParameterSequence}. |
156 | * <!-- begin-user-doc --> |
157 | * <!-- end-user-doc --> |
158 | * @generated |
159 | */ |
160 | @Override |
161 | public Adapter createStringParameterSequenceAdapter() { |
162 | if (stringParameterSequenceItemProvider == null) { |
163 | stringParameterSequenceItemProvider = new StringParameterSequenceItemProvider(this); |
164 | } |
165 | |
166 | return stringParameterSequenceItemProvider; |
167 | } |
168 | |
169 | /** |
170 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.DoubleParameterRange} instances. |
171 | * <!-- begin-user-doc --> |
172 | * <!-- end-user-doc --> |
173 | * @generated |
174 | */ |
175 | protected DoubleParameterRangeItemProvider doubleParameterRangeItemProvider; |
176 | |
177 | /** |
178 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.DoubleParameterRange}. |
179 | * <!-- begin-user-doc --> |
180 | * <!-- end-user-doc --> |
181 | * @generated |
182 | */ |
183 | @Override |
184 | public Adapter createDoubleParameterRangeAdapter() { |
185 | if (doubleParameterRangeItemProvider == null) { |
186 | doubleParameterRangeItemProvider = new DoubleParameterRangeItemProvider(this); |
187 | } |
188 | |
189 | return doubleParameterRangeItemProvider; |
190 | } |
191 | |
192 | /** |
193 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.DoubleParameterSequence} instances. |
194 | * <!-- begin-user-doc --> |
195 | * <!-- end-user-doc --> |
196 | * @generated |
197 | */ |
198 | protected DoubleParameterSequenceItemProvider doubleParameterSequenceItemProvider; |
199 | |
200 | /** |
201 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.DoubleParameterSequence}. |
202 | * <!-- begin-user-doc --> |
203 | * <!-- end-user-doc --> |
204 | * @generated |
205 | */ |
206 | @Override |
207 | public Adapter createDoubleParameterSequenceAdapter() { |
208 | if (doubleParameterSequenceItemProvider == null) { |
209 | doubleParameterSequenceItemProvider = new DoubleParameterSequenceItemProvider(this); |
210 | } |
211 | |
212 | return doubleParameterSequenceItemProvider; |
213 | } |
214 | |
215 | /** |
216 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.InternalActionReliabilityParameter} instances. |
217 | * <!-- begin-user-doc --> |
218 | * <!-- end-user-doc --> |
219 | * @generated |
220 | */ |
221 | protected InternalActionReliabilityParameterItemProvider internalActionReliabilityParameterItemProvider; |
222 | |
223 | /** |
224 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.InternalActionReliabilityParameter}. |
225 | * <!-- begin-user-doc --> |
226 | * <!-- end-user-doc --> |
227 | * @generated |
228 | */ |
229 | @Override |
230 | public Adapter createInternalActionReliabilityParameterAdapter() { |
231 | if (internalActionReliabilityParameterItemProvider == null) { |
232 | internalActionReliabilityParameterItemProvider = new InternalActionReliabilityParameterItemProvider(this); |
233 | } |
234 | |
235 | return internalActionReliabilityParameterItemProvider; |
236 | } |
237 | |
238 | /** |
239 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.ProbabilisticBranchParameter} instances. |
240 | * <!-- begin-user-doc --> |
241 | * <!-- end-user-doc --> |
242 | * @generated |
243 | */ |
244 | protected ProbabilisticBranchParameterItemProvider probabilisticBranchParameterItemProvider; |
245 | |
246 | /** |
247 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.ProbabilisticBranchParameter}. |
248 | * <!-- begin-user-doc --> |
249 | * <!-- end-user-doc --> |
250 | * @generated |
251 | */ |
252 | @Override |
253 | public Adapter createProbabilisticBranchParameterAdapter() { |
254 | if (probabilisticBranchParameterItemProvider == null) { |
255 | probabilisticBranchParameterItemProvider = new ProbabilisticBranchParameterItemProvider(this); |
256 | } |
257 | |
258 | return probabilisticBranchParameterItemProvider; |
259 | } |
260 | |
261 | /** |
262 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.HardwareMTTFParameter} instances. |
263 | * <!-- begin-user-doc --> |
264 | * <!-- end-user-doc --> |
265 | * @generated |
266 | */ |
267 | protected HardwareMTTFParameterItemProvider hardwareMTTFParameterItemProvider; |
268 | |
269 | /** |
270 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.HardwareMTTFParameter}. |
271 | * <!-- begin-user-doc --> |
272 | * <!-- end-user-doc --> |
273 | * @generated |
274 | */ |
275 | @Override |
276 | public Adapter createHardwareMTTFParameterAdapter() { |
277 | if (hardwareMTTFParameterItemProvider == null) { |
278 | hardwareMTTFParameterItemProvider = new HardwareMTTFParameterItemProvider(this); |
279 | } |
280 | |
281 | return hardwareMTTFParameterItemProvider; |
282 | } |
283 | |
284 | /** |
285 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.HardwareMTTRParameter} instances. |
286 | * <!-- begin-user-doc --> |
287 | * <!-- end-user-doc --> |
288 | * @generated |
289 | */ |
290 | protected HardwareMTTRParameterItemProvider hardwareMTTRParameterItemProvider; |
291 | |
292 | /** |
293 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.HardwareMTTRParameter}. |
294 | * <!-- begin-user-doc --> |
295 | * <!-- end-user-doc --> |
296 | * @generated |
297 | */ |
298 | @Override |
299 | public Adapter createHardwareMTTRParameterAdapter() { |
300 | if (hardwareMTTRParameterItemProvider == null) { |
301 | hardwareMTTRParameterItemProvider = new HardwareMTTRParameterItemProvider(this); |
302 | } |
303 | |
304 | return hardwareMTTRParameterItemProvider; |
305 | } |
306 | |
307 | /** |
308 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.ResourceMTTFParameter} instances. |
309 | * <!-- begin-user-doc --> |
310 | * <!-- end-user-doc --> |
311 | * @generated |
312 | */ |
313 | protected ResourceMTTFParameterItemProvider resourceMTTFParameterItemProvider; |
314 | |
315 | /** |
316 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.ResourceMTTFParameter}. |
317 | * <!-- begin-user-doc --> |
318 | * <!-- end-user-doc --> |
319 | * @generated |
320 | */ |
321 | @Override |
322 | public Adapter createResourceMTTFParameterAdapter() { |
323 | if (resourceMTTFParameterItemProvider == null) { |
324 | resourceMTTFParameterItemProvider = new ResourceMTTFParameterItemProvider(this); |
325 | } |
326 | |
327 | return resourceMTTFParameterItemProvider; |
328 | } |
329 | |
330 | /** |
331 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.ResourceMTTRParameter} instances. |
332 | * <!-- begin-user-doc --> |
333 | * <!-- end-user-doc --> |
334 | * @generated |
335 | */ |
336 | protected ResourceMTTRParameterItemProvider resourceMTTRParameterItemProvider; |
337 | |
338 | /** |
339 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.ResourceMTTRParameter}. |
340 | * <!-- begin-user-doc --> |
341 | * <!-- end-user-doc --> |
342 | * @generated |
343 | */ |
344 | @Override |
345 | public Adapter createResourceMTTRParameterAdapter() { |
346 | if (resourceMTTRParameterItemProvider == null) { |
347 | resourceMTTRParameterItemProvider = new ResourceMTTRParameterItemProvider(this); |
348 | } |
349 | |
350 | return resourceMTTRParameterItemProvider; |
351 | } |
352 | |
353 | /** |
354 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.NetworkReliabilityParameter} instances. |
355 | * <!-- begin-user-doc --> |
356 | * <!-- end-user-doc --> |
357 | * @generated |
358 | */ |
359 | protected NetworkReliabilityParameterItemProvider networkReliabilityParameterItemProvider; |
360 | |
361 | /** |
362 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.NetworkReliabilityParameter}. |
363 | * <!-- begin-user-doc --> |
364 | * <!-- end-user-doc --> |
365 | * @generated |
366 | */ |
367 | @Override |
368 | public Adapter createNetworkReliabilityParameterAdapter() { |
369 | if (networkReliabilityParameterItemProvider == null) { |
370 | networkReliabilityParameterItemProvider = new NetworkReliabilityParameterItemProvider(this); |
371 | } |
372 | |
373 | return networkReliabilityParameterItemProvider; |
374 | } |
375 | |
376 | /** |
377 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.CommunicationLinkReliabilityParameter} instances. |
378 | * <!-- begin-user-doc --> |
379 | * <!-- end-user-doc --> |
380 | * @generated |
381 | */ |
382 | protected CommunicationLinkReliabilityParameterItemProvider communicationLinkReliabilityParameterItemProvider; |
383 | |
384 | /** |
385 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.CommunicationLinkReliabilityParameter}. |
386 | * <!-- begin-user-doc --> |
387 | * <!-- end-user-doc --> |
388 | * @generated |
389 | */ |
390 | @Override |
391 | public Adapter createCommunicationLinkReliabilityParameterAdapter() { |
392 | if (communicationLinkReliabilityParameterItemProvider == null) { |
393 | communicationLinkReliabilityParameterItemProvider = new CommunicationLinkReliabilityParameterItemProvider(this); |
394 | } |
395 | |
396 | return communicationLinkReliabilityParameterItemProvider; |
397 | } |
398 | |
399 | /** |
400 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.SoftwareReliabilityParameter} instances. |
401 | * <!-- begin-user-doc --> |
402 | * <!-- end-user-doc --> |
403 | * @generated |
404 | */ |
405 | protected SoftwareReliabilityParameterItemProvider softwareReliabilityParameterItemProvider; |
406 | |
407 | /** |
408 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.SoftwareReliabilityParameter}. |
409 | * <!-- begin-user-doc --> |
410 | * <!-- end-user-doc --> |
411 | * @generated |
412 | */ |
413 | @Override |
414 | public Adapter createSoftwareReliabilityParameterAdapter() { |
415 | if (softwareReliabilityParameterItemProvider == null) { |
416 | softwareReliabilityParameterItemProvider = new SoftwareReliabilityParameterItemProvider(this); |
417 | } |
418 | |
419 | return softwareReliabilityParameterItemProvider; |
420 | } |
421 | |
422 | /** |
423 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.VariableUsageParameter} instances. |
424 | * <!-- begin-user-doc --> |
425 | * <!-- end-user-doc --> |
426 | * @generated |
427 | */ |
428 | protected VariableUsageParameterItemProvider variableUsageParameterItemProvider; |
429 | |
430 | /** |
431 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.VariableUsageParameter}. |
432 | * <!-- begin-user-doc --> |
433 | * <!-- end-user-doc --> |
434 | * @generated |
435 | */ |
436 | @Override |
437 | public Adapter createVariableUsageParameterAdapter() { |
438 | if (variableUsageParameterItemProvider == null) { |
439 | variableUsageParameterItemProvider = new VariableUsageParameterItemProvider(this); |
440 | } |
441 | |
442 | return variableUsageParameterItemProvider; |
443 | } |
444 | |
445 | /** |
446 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.UsageBranchParameter} instances. |
447 | * <!-- begin-user-doc --> |
448 | * <!-- end-user-doc --> |
449 | * @generated |
450 | */ |
451 | protected UsageBranchParameterItemProvider usageBranchParameterItemProvider; |
452 | |
453 | /** |
454 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.UsageBranchParameter}. |
455 | * <!-- begin-user-doc --> |
456 | * <!-- end-user-doc --> |
457 | * @generated |
458 | */ |
459 | @Override |
460 | public Adapter createUsageBranchParameterAdapter() { |
461 | if (usageBranchParameterItemProvider == null) { |
462 | usageBranchParameterItemProvider = new UsageBranchParameterItemProvider(this); |
463 | } |
464 | |
465 | return usageBranchParameterItemProvider; |
466 | } |
467 | |
468 | /** |
469 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.DoubleOffsetSequence} instances. |
470 | * <!-- begin-user-doc --> |
471 | * <!-- end-user-doc --> |
472 | * @generated |
473 | */ |
474 | protected DoubleOffsetSequenceItemProvider doubleOffsetSequenceItemProvider; |
475 | |
476 | /** |
477 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.DoubleOffsetSequence}. |
478 | * <!-- begin-user-doc --> |
479 | * <!-- end-user-doc --> |
480 | * @generated |
481 | */ |
482 | @Override |
483 | public Adapter createDoubleOffsetSequenceAdapter() { |
484 | if (doubleOffsetSequenceItemProvider == null) { |
485 | doubleOffsetSequenceItemProvider = new DoubleOffsetSequenceItemProvider(this); |
486 | } |
487 | |
488 | return doubleOffsetSequenceItemProvider; |
489 | } |
490 | |
491 | /** |
492 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.SoftwareFailureTypesParameter} instances. |
493 | * <!-- begin-user-doc --> |
494 | * <!-- end-user-doc --> |
495 | * @generated |
496 | */ |
497 | protected SoftwareFailureTypesParameterItemProvider softwareFailureTypesParameterItemProvider; |
498 | |
499 | /** |
500 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.SoftwareFailureTypesParameter}. |
501 | * <!-- begin-user-doc --> |
502 | * <!-- end-user-doc --> |
503 | * @generated |
504 | */ |
505 | @Override |
506 | public Adapter createSoftwareFailureTypesParameterAdapter() { |
507 | if (softwareFailureTypesParameterItemProvider == null) { |
508 | softwareFailureTypesParameterItemProvider = new SoftwareFailureTypesParameterItemProvider(this); |
509 | } |
510 | |
511 | return softwareFailureTypesParameterItemProvider; |
512 | } |
513 | |
514 | /** |
515 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.FailureTypeResultSpecification} instances. |
516 | * <!-- begin-user-doc --> |
517 | * <!-- end-user-doc --> |
518 | * @generated |
519 | */ |
520 | protected FailureTypeResultSpecificationItemProvider failureTypeResultSpecificationItemProvider; |
521 | |
522 | /** |
523 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.FailureTypeResultSpecification}. |
524 | * <!-- begin-user-doc --> |
525 | * <!-- end-user-doc --> |
526 | * @generated |
527 | */ |
528 | @Override |
529 | public Adapter createFailureTypeResultSpecificationAdapter() { |
530 | if (failureTypeResultSpecificationItemProvider == null) { |
531 | failureTypeResultSpecificationItemProvider = new FailureTypeResultSpecificationItemProvider(this); |
532 | } |
533 | |
534 | return failureTypeResultSpecificationItemProvider; |
535 | } |
536 | |
537 | /** |
538 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.sensitivity.FailureDimensionResultSpecification} instances. |
539 | * <!-- begin-user-doc --> |
540 | * <!-- end-user-doc --> |
541 | * @generated |
542 | */ |
543 | protected FailureDimensionResultSpecificationItemProvider failureDimensionResultSpecificationItemProvider; |
544 | |
545 | /** |
546 | * This creates an adapter for a {@link de.uka.ipd.sdq.sensitivity.FailureDimensionResultSpecification}. |
547 | * <!-- begin-user-doc --> |
548 | * <!-- end-user-doc --> |
549 | * @generated |
550 | */ |
551 | @Override |
552 | public Adapter createFailureDimensionResultSpecificationAdapter() { |
553 | if (failureDimensionResultSpecificationItemProvider == null) { |
554 | failureDimensionResultSpecificationItemProvider = new FailureDimensionResultSpecificationItemProvider(this); |
555 | } |
556 | |
557 | return failureDimensionResultSpecificationItemProvider; |
558 | } |
559 | |
560 | /** |
561 | * This returns the root adapter factory that contains this factory. |
562 | * <!-- begin-user-doc --> |
563 | * <!-- end-user-doc --> |
564 | * @generated |
565 | */ |
566 | public ComposeableAdapterFactory getRootAdapterFactory() { |
567 | return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); |
568 | } |
569 | |
570 | /** |
571 | * This sets the composed adapter factory that contains this factory. |
572 | * <!-- begin-user-doc --> |
573 | * <!-- end-user-doc --> |
574 | * @generated |
575 | */ |
576 | public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { |
577 | this.parentAdapterFactory = parentAdapterFactory; |
578 | } |
579 | |
580 | /** |
581 | * <!-- begin-user-doc --> |
582 | * <!-- end-user-doc --> |
583 | * @generated |
584 | */ |
585 | @Override |
586 | public boolean isFactoryForType(Object type) { |
587 | return supportedTypes.contains(type) || super.isFactoryForType(type); |
588 | } |
589 | |
590 | /** |
591 | * This implementation substitutes the factory itself as the key for the adapter. |
592 | * <!-- begin-user-doc --> |
593 | * <!-- end-user-doc --> |
594 | * @generated |
595 | */ |
596 | @Override |
597 | public Adapter adapt(Notifier notifier, Object type) { |
598 | return super.adapt(notifier, this); |
599 | } |
600 | |
601 | /** |
602 | * <!-- begin-user-doc --> |
603 | * <!-- end-user-doc --> |
604 | * @generated |
605 | */ |
606 | @Override |
607 | public Object adapt(Object object, Object type) { |
608 | if (isFactoryForType(type)) { |
609 | Object adapter = super.adapt(object, type); |
610 | if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { |
611 | return adapter; |
612 | } |
613 | } |
614 | |
615 | return null; |
616 | } |
617 | |
618 | /** |
619 | * This adds a listener. |
620 | * <!-- begin-user-doc --> |
621 | * <!-- end-user-doc --> |
622 | * @generated |
623 | */ |
624 | public void addListener(INotifyChangedListener notifyChangedListener) { |
625 | changeNotifier.addListener(notifyChangedListener); |
626 | } |
627 | |
628 | /** |
629 | * This removes a listener. |
630 | * <!-- begin-user-doc --> |
631 | * <!-- end-user-doc --> |
632 | * @generated |
633 | */ |
634 | public void removeListener(INotifyChangedListener notifyChangedListener) { |
635 | changeNotifier.removeListener(notifyChangedListener); |
636 | } |
637 | |
638 | /** |
639 | * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. |
640 | * <!-- begin-user-doc --> |
641 | * <!-- end-user-doc --> |
642 | * @generated |
643 | */ |
644 | public void fireNotifyChanged(Notification notification) { |
645 | changeNotifier.fireNotifyChanged(notification); |
646 | |
647 | if (parentAdapterFactory != null) { |
648 | parentAdapterFactory.fireNotifyChanged(notification); |
649 | } |
650 | } |
651 | |
652 | /** |
653 | * This disposes all of the item providers created by this factory. |
654 | * <!-- begin-user-doc --> |
655 | * <!-- end-user-doc --> |
656 | * @generated |
657 | */ |
658 | public void dispose() { |
659 | if (sensitivityConfigurationItemProvider != null) sensitivityConfigurationItemProvider.dispose(); |
660 | if (combinedSensitivityParameterItemProvider != null) combinedSensitivityParameterItemProvider.dispose(); |
661 | if (componentReliabilityParameterItemProvider != null) componentReliabilityParameterItemProvider.dispose(); |
662 | if (stringParameterSequenceItemProvider != null) stringParameterSequenceItemProvider.dispose(); |
663 | if (doubleParameterRangeItemProvider != null) doubleParameterRangeItemProvider.dispose(); |
664 | if (doubleParameterSequenceItemProvider != null) doubleParameterSequenceItemProvider.dispose(); |
665 | if (internalActionReliabilityParameterItemProvider != null) internalActionReliabilityParameterItemProvider.dispose(); |
666 | if (probabilisticBranchParameterItemProvider != null) probabilisticBranchParameterItemProvider.dispose(); |
667 | if (hardwareMTTFParameterItemProvider != null) hardwareMTTFParameterItemProvider.dispose(); |
668 | if (hardwareMTTRParameterItemProvider != null) hardwareMTTRParameterItemProvider.dispose(); |
669 | if (resourceMTTFParameterItemProvider != null) resourceMTTFParameterItemProvider.dispose(); |
670 | if (resourceMTTRParameterItemProvider != null) resourceMTTRParameterItemProvider.dispose(); |
671 | if (networkReliabilityParameterItemProvider != null) networkReliabilityParameterItemProvider.dispose(); |
672 | if (communicationLinkReliabilityParameterItemProvider != null) communicationLinkReliabilityParameterItemProvider.dispose(); |
673 | if (softwareReliabilityParameterItemProvider != null) softwareReliabilityParameterItemProvider.dispose(); |
674 | if (variableUsageParameterItemProvider != null) variableUsageParameterItemProvider.dispose(); |
675 | if (usageBranchParameterItemProvider != null) usageBranchParameterItemProvider.dispose(); |
676 | if (doubleOffsetSequenceItemProvider != null) doubleOffsetSequenceItemProvider.dispose(); |
677 | if (softwareFailureTypesParameterItemProvider != null) softwareFailureTypesParameterItemProvider.dispose(); |
678 | if (failureTypeResultSpecificationItemProvider != null) failureTypeResultSpecificationItemProvider.dispose(); |
679 | if (failureDimensionResultSpecificationItemProvider != null) failureDimensionResultSpecificationItemProvider.dispose(); |
680 | } |
681 | |
682 | } |