1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.probespec.provider; |
8 | |
9 | import de.uka.ipd.sdq.probespec.util.probespecAdapterFactory; |
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 probespecItemProviderAdapterFactory extends probespecAdapterFactory 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 probespecItemProviderAdapterFactory() { |
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.uka.ipd.sdq.probespec.PassiveResourceCalculator} instances. |
80 | * <!-- begin-user-doc --> |
81 | * <!-- end-user-doc --> |
82 | * @generated |
83 | */ |
84 | protected PassiveResourceCalculatorItemProvider passiveResourceCalculatorItemProvider; |
85 | |
86 | /** |
87 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.PassiveResourceCalculator}. |
88 | * <!-- begin-user-doc --> |
89 | * <!-- end-user-doc --> |
90 | * @generated |
91 | */ |
92 | @Override |
93 | public Adapter createPassiveResourceCalculatorAdapter() { |
94 | if (passiveResourceCalculatorItemProvider == null) { |
95 | passiveResourceCalculatorItemProvider = new PassiveResourceCalculatorItemProvider(this); |
96 | } |
97 | |
98 | return passiveResourceCalculatorItemProvider; |
99 | } |
100 | |
101 | /** |
102 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.ProbeSet} instances. |
103 | * <!-- begin-user-doc --> |
104 | * <!-- end-user-doc --> |
105 | * @generated |
106 | */ |
107 | protected ProbeSetItemProvider probeSetItemProvider; |
108 | |
109 | /** |
110 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.ProbeSet}. |
111 | * <!-- begin-user-doc --> |
112 | * <!-- end-user-doc --> |
113 | * @generated |
114 | */ |
115 | @Override |
116 | public Adapter createProbeSetAdapter() { |
117 | if (probeSetItemProvider == null) { |
118 | probeSetItemProvider = new ProbeSetItemProvider(this); |
119 | } |
120 | |
121 | return probeSetItemProvider; |
122 | } |
123 | |
124 | /** |
125 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.PassiveResourceStateProbe} instances. |
126 | * <!-- begin-user-doc --> |
127 | * <!-- end-user-doc --> |
128 | * @generated |
129 | */ |
130 | protected PassiveResourceStateProbeItemProvider passiveResourceStateProbeItemProvider; |
131 | |
132 | /** |
133 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.PassiveResourceStateProbe}. |
134 | * <!-- begin-user-doc --> |
135 | * <!-- end-user-doc --> |
136 | * @generated |
137 | */ |
138 | @Override |
139 | public Adapter createPassiveResourceStateProbeAdapter() { |
140 | if (passiveResourceStateProbeItemProvider == null) { |
141 | passiveResourceStateProbeItemProvider = new PassiveResourceStateProbeItemProvider(this); |
142 | } |
143 | |
144 | return passiveResourceStateProbeItemProvider; |
145 | } |
146 | |
147 | /** |
148 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.StoExProbe} instances. |
149 | * <!-- begin-user-doc --> |
150 | * <!-- end-user-doc --> |
151 | * @generated |
152 | */ |
153 | protected StoExProbeItemProvider stoExProbeItemProvider; |
154 | |
155 | /** |
156 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.StoExProbe}. |
157 | * <!-- begin-user-doc --> |
158 | * <!-- end-user-doc --> |
159 | * @generated |
160 | */ |
161 | @Override |
162 | public Adapter createStoExProbeAdapter() { |
163 | if (stoExProbeItemProvider == null) { |
164 | stoExProbeItemProvider = new StoExProbeItemProvider(this); |
165 | } |
166 | |
167 | return stoExProbeItemProvider; |
168 | } |
169 | |
170 | /** |
171 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.SEFFParameterProbe} instances. |
172 | * <!-- begin-user-doc --> |
173 | * <!-- end-user-doc --> |
174 | * @generated |
175 | */ |
176 | protected SEFFParameterProbeItemProvider seffParameterProbeItemProvider; |
177 | |
178 | /** |
179 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.SEFFParameterProbe}. |
180 | * <!-- begin-user-doc --> |
181 | * <!-- end-user-doc --> |
182 | * @generated |
183 | */ |
184 | @Override |
185 | public Adapter createSEFFParameterProbeAdapter() { |
186 | if (seffParameterProbeItemProvider == null) { |
187 | seffParameterProbeItemProvider = new SEFFParameterProbeItemProvider(this); |
188 | } |
189 | |
190 | return seffParameterProbeItemProvider; |
191 | } |
192 | |
193 | /** |
194 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.CurrentTimeProbe} instances. |
195 | * <!-- begin-user-doc --> |
196 | * <!-- end-user-doc --> |
197 | * @generated |
198 | */ |
199 | protected CurrentTimeProbeItemProvider currentTimeProbeItemProvider; |
200 | |
201 | /** |
202 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.CurrentTimeProbe}. |
203 | * <!-- begin-user-doc --> |
204 | * <!-- end-user-doc --> |
205 | * @generated |
206 | */ |
207 | @Override |
208 | public Adapter createCurrentTimeProbeAdapter() { |
209 | if (currentTimeProbeItemProvider == null) { |
210 | currentTimeProbeItemProvider = new CurrentTimeProbeItemProvider(this); |
211 | } |
212 | |
213 | return currentTimeProbeItemProvider; |
214 | } |
215 | |
216 | /** |
217 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.StoExCalculator} instances. |
218 | * <!-- begin-user-doc --> |
219 | * <!-- end-user-doc --> |
220 | * @generated |
221 | */ |
222 | protected StoExCalculatorItemProvider stoExCalculatorItemProvider; |
223 | |
224 | /** |
225 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.StoExCalculator}. |
226 | * <!-- begin-user-doc --> |
227 | * <!-- end-user-doc --> |
228 | * @generated |
229 | */ |
230 | @Override |
231 | public Adapter createStoExCalculatorAdapter() { |
232 | if (stoExCalculatorItemProvider == null) { |
233 | stoExCalculatorItemProvider = new StoExCalculatorItemProvider(this); |
234 | } |
235 | |
236 | return stoExCalculatorItemProvider; |
237 | } |
238 | |
239 | /** |
240 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.SEFFParameterCalculator} instances. |
241 | * <!-- begin-user-doc --> |
242 | * <!-- end-user-doc --> |
243 | * @generated |
244 | */ |
245 | protected SEFFParameterCalculatorItemProvider seffParameterCalculatorItemProvider; |
246 | |
247 | /** |
248 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.SEFFParameterCalculator}. |
249 | * <!-- begin-user-doc --> |
250 | * <!-- end-user-doc --> |
251 | * @generated |
252 | */ |
253 | @Override |
254 | public Adapter createSEFFParameterCalculatorAdapter() { |
255 | if (seffParameterCalculatorItemProvider == null) { |
256 | seffParameterCalculatorItemProvider = new SEFFParameterCalculatorItemProvider(this); |
257 | } |
258 | |
259 | return seffParameterCalculatorItemProvider; |
260 | } |
261 | |
262 | /** |
263 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.ResponseTimeCalculator} instances. |
264 | * <!-- begin-user-doc --> |
265 | * <!-- end-user-doc --> |
266 | * @generated |
267 | */ |
268 | protected ResponseTimeCalculatorItemProvider responseTimeCalculatorItemProvider; |
269 | |
270 | /** |
271 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.ResponseTimeCalculator}. |
272 | * <!-- begin-user-doc --> |
273 | * <!-- end-user-doc --> |
274 | * @generated |
275 | */ |
276 | @Override |
277 | public Adapter createResponseTimeCalculatorAdapter() { |
278 | if (responseTimeCalculatorItemProvider == null) { |
279 | responseTimeCalculatorItemProvider = new ResponseTimeCalculatorItemProvider(this); |
280 | } |
281 | |
282 | return responseTimeCalculatorItemProvider; |
283 | } |
284 | |
285 | /** |
286 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.WaitingTimeCalculator} instances. |
287 | * <!-- begin-user-doc --> |
288 | * <!-- end-user-doc --> |
289 | * @generated |
290 | */ |
291 | protected WaitingTimeCalculatorItemProvider waitingTimeCalculatorItemProvider; |
292 | |
293 | /** |
294 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.WaitingTimeCalculator}. |
295 | * <!-- begin-user-doc --> |
296 | * <!-- end-user-doc --> |
297 | * @generated |
298 | */ |
299 | @Override |
300 | public Adapter createWaitingTimeCalculatorAdapter() { |
301 | if (waitingTimeCalculatorItemProvider == null) { |
302 | waitingTimeCalculatorItemProvider = new WaitingTimeCalculatorItemProvider(this); |
303 | } |
304 | |
305 | return waitingTimeCalculatorItemProvider; |
306 | } |
307 | |
308 | /** |
309 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.ProbeSpecRepository} instances. |
310 | * <!-- begin-user-doc --> |
311 | * <!-- end-user-doc --> |
312 | * @generated |
313 | */ |
314 | protected ProbeSpecRepositoryItemProvider probeSpecRepositoryItemProvider; |
315 | |
316 | /** |
317 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.ProbeSpecRepository}. |
318 | * <!-- begin-user-doc --> |
319 | * <!-- end-user-doc --> |
320 | * @generated |
321 | */ |
322 | @Override |
323 | public Adapter createProbeSpecRepositoryAdapter() { |
324 | if (probeSpecRepositoryItemProvider == null) { |
325 | probeSpecRepositoryItemProvider = new ProbeSpecRepositoryItemProvider(this); |
326 | } |
327 | |
328 | return probeSpecRepositoryItemProvider; |
329 | } |
330 | |
331 | /** |
332 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.CPUStateProbe} instances. |
333 | * <!-- begin-user-doc --> |
334 | * <!-- end-user-doc --> |
335 | * @generated |
336 | */ |
337 | protected CPUStateProbeItemProvider cpuStateProbeItemProvider; |
338 | |
339 | /** |
340 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.CPUStateProbe}. |
341 | * <!-- begin-user-doc --> |
342 | * <!-- end-user-doc --> |
343 | * @generated |
344 | */ |
345 | @Override |
346 | public Adapter createCPUStateProbeAdapter() { |
347 | if (cpuStateProbeItemProvider == null) { |
348 | cpuStateProbeItemProvider = new CPUStateProbeItemProvider(this); |
349 | } |
350 | |
351 | return cpuStateProbeItemProvider; |
352 | } |
353 | |
354 | /** |
355 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.HDDStateProbe} instances. |
356 | * <!-- begin-user-doc --> |
357 | * <!-- end-user-doc --> |
358 | * @generated |
359 | */ |
360 | protected HDDStateProbeItemProvider hddStateProbeItemProvider; |
361 | |
362 | /** |
363 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.HDDStateProbe}. |
364 | * <!-- begin-user-doc --> |
365 | * <!-- end-user-doc --> |
366 | * @generated |
367 | */ |
368 | @Override |
369 | public Adapter createHDDStateProbeAdapter() { |
370 | if (hddStateProbeItemProvider == null) { |
371 | hddStateProbeItemProvider = new HDDStateProbeItemProvider(this); |
372 | } |
373 | |
374 | return hddStateProbeItemProvider; |
375 | } |
376 | |
377 | /** |
378 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.CPUDemandProbe} instances. |
379 | * <!-- begin-user-doc --> |
380 | * <!-- end-user-doc --> |
381 | * @generated |
382 | */ |
383 | protected CPUDemandProbeItemProvider cpuDemandProbeItemProvider; |
384 | |
385 | /** |
386 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.CPUDemandProbe}. |
387 | * <!-- begin-user-doc --> |
388 | * <!-- end-user-doc --> |
389 | * @generated |
390 | */ |
391 | @Override |
392 | public Adapter createCPUDemandProbeAdapter() { |
393 | if (cpuDemandProbeItemProvider == null) { |
394 | cpuDemandProbeItemProvider = new CPUDemandProbeItemProvider(this); |
395 | } |
396 | |
397 | return cpuDemandProbeItemProvider; |
398 | } |
399 | |
400 | /** |
401 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.HDDDemandProbe} instances. |
402 | * <!-- begin-user-doc --> |
403 | * <!-- end-user-doc --> |
404 | * @generated |
405 | */ |
406 | protected HDDDemandProbeItemProvider hddDemandProbeItemProvider; |
407 | |
408 | /** |
409 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.HDDDemandProbe}. |
410 | * <!-- begin-user-doc --> |
411 | * <!-- end-user-doc --> |
412 | * @generated |
413 | */ |
414 | @Override |
415 | public Adapter createHDDDemandProbeAdapter() { |
416 | if (hddDemandProbeItemProvider == null) { |
417 | hddDemandProbeItemProvider = new HDDDemandProbeItemProvider(this); |
418 | } |
419 | |
420 | return hddDemandProbeItemProvider; |
421 | } |
422 | |
423 | /** |
424 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.HDDStateCalculator} instances. |
425 | * <!-- begin-user-doc --> |
426 | * <!-- end-user-doc --> |
427 | * @generated |
428 | */ |
429 | protected HDDStateCalculatorItemProvider hddStateCalculatorItemProvider; |
430 | |
431 | /** |
432 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.HDDStateCalculator}. |
433 | * <!-- begin-user-doc --> |
434 | * <!-- end-user-doc --> |
435 | * @generated |
436 | */ |
437 | @Override |
438 | public Adapter createHDDStateCalculatorAdapter() { |
439 | if (hddStateCalculatorItemProvider == null) { |
440 | hddStateCalculatorItemProvider = new HDDStateCalculatorItemProvider(this); |
441 | } |
442 | |
443 | return hddStateCalculatorItemProvider; |
444 | } |
445 | |
446 | /** |
447 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.CPUStateCalculator} instances. |
448 | * <!-- begin-user-doc --> |
449 | * <!-- end-user-doc --> |
450 | * @generated |
451 | */ |
452 | protected CPUStateCalculatorItemProvider cpuStateCalculatorItemProvider; |
453 | |
454 | /** |
455 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.CPUStateCalculator}. |
456 | * <!-- begin-user-doc --> |
457 | * <!-- end-user-doc --> |
458 | * @generated |
459 | */ |
460 | @Override |
461 | public Adapter createCPUStateCalculatorAdapter() { |
462 | if (cpuStateCalculatorItemProvider == null) { |
463 | cpuStateCalculatorItemProvider = new CPUStateCalculatorItemProvider(this); |
464 | } |
465 | |
466 | return cpuStateCalculatorItemProvider; |
467 | } |
468 | |
469 | /** |
470 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.CPUDemandCalculator} instances. |
471 | * <!-- begin-user-doc --> |
472 | * <!-- end-user-doc --> |
473 | * @generated |
474 | */ |
475 | protected CPUDemandCalculatorItemProvider cpuDemandCalculatorItemProvider; |
476 | |
477 | /** |
478 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.CPUDemandCalculator}. |
479 | * <!-- begin-user-doc --> |
480 | * <!-- end-user-doc --> |
481 | * @generated |
482 | */ |
483 | @Override |
484 | public Adapter createCPUDemandCalculatorAdapter() { |
485 | if (cpuDemandCalculatorItemProvider == null) { |
486 | cpuDemandCalculatorItemProvider = new CPUDemandCalculatorItemProvider(this); |
487 | } |
488 | |
489 | return cpuDemandCalculatorItemProvider; |
490 | } |
491 | |
492 | /** |
493 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.probespec.HDDDemandCalculator} instances. |
494 | * <!-- begin-user-doc --> |
495 | * <!-- end-user-doc --> |
496 | * @generated |
497 | */ |
498 | protected HDDDemandCalculatorItemProvider hddDemandCalculatorItemProvider; |
499 | |
500 | /** |
501 | * This creates an adapter for a {@link de.uka.ipd.sdq.probespec.HDDDemandCalculator}. |
502 | * <!-- begin-user-doc --> |
503 | * <!-- end-user-doc --> |
504 | * @generated |
505 | */ |
506 | @Override |
507 | public Adapter createHDDDemandCalculatorAdapter() { |
508 | if (hddDemandCalculatorItemProvider == null) { |
509 | hddDemandCalculatorItemProvider = new HDDDemandCalculatorItemProvider(this); |
510 | } |
511 | |
512 | return hddDemandCalculatorItemProvider; |
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 (passiveResourceCalculatorItemProvider != null) passiveResourceCalculatorItemProvider.dispose(); |
615 | if (probeSetItemProvider != null) probeSetItemProvider.dispose(); |
616 | if (passiveResourceStateProbeItemProvider != null) passiveResourceStateProbeItemProvider.dispose(); |
617 | if (stoExProbeItemProvider != null) stoExProbeItemProvider.dispose(); |
618 | if (seffParameterProbeItemProvider != null) seffParameterProbeItemProvider.dispose(); |
619 | if (currentTimeProbeItemProvider != null) currentTimeProbeItemProvider.dispose(); |
620 | if (stoExCalculatorItemProvider != null) stoExCalculatorItemProvider.dispose(); |
621 | if (seffParameterCalculatorItemProvider != null) seffParameterCalculatorItemProvider.dispose(); |
622 | if (responseTimeCalculatorItemProvider != null) responseTimeCalculatorItemProvider.dispose(); |
623 | if (waitingTimeCalculatorItemProvider != null) waitingTimeCalculatorItemProvider.dispose(); |
624 | if (probeSpecRepositoryItemProvider != null) probeSpecRepositoryItemProvider.dispose(); |
625 | if (cpuStateProbeItemProvider != null) cpuStateProbeItemProvider.dispose(); |
626 | if (hddStateProbeItemProvider != null) hddStateProbeItemProvider.dispose(); |
627 | if (cpuDemandProbeItemProvider != null) cpuDemandProbeItemProvider.dispose(); |
628 | if (hddDemandProbeItemProvider != null) hddDemandProbeItemProvider.dispose(); |
629 | if (hddStateCalculatorItemProvider != null) hddStateCalculatorItemProvider.dispose(); |
630 | if (cpuStateCalculatorItemProvider != null) cpuStateCalculatorItemProvider.dispose(); |
631 | if (cpuDemandCalculatorItemProvider != null) cpuDemandCalculatorItemProvider.dispose(); |
632 | if (hddDemandCalculatorItemProvider != null) hddDemandCalculatorItemProvider.dispose(); |
633 | } |
634 | |
635 | } |