1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.stoex.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.stoex.util.StoexAdapterFactory; |
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 StoexItemProviderAdapterFactory extends StoexAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { |
39 | /** |
40 | * <!-- begin-user-doc --> |
41 | * <!-- end-user-doc --> |
42 | * @generated |
43 | */ |
44 | public static final String copyright = "Copyright 2007-2009, SDQ, IPD, U Karlsruhe"; |
45 | |
46 | /** |
47 | * This keeps track of the root adapter factory that delegates to this adapter factory. |
48 | * <!-- begin-user-doc --> |
49 | * <!-- end-user-doc --> |
50 | * @generated |
51 | */ |
52 | protected ComposedAdapterFactory parentAdapterFactory; |
53 | |
54 | /** |
55 | * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. |
56 | * <!-- begin-user-doc --> |
57 | * <!-- end-user-doc --> |
58 | * @generated |
59 | */ |
60 | protected IChangeNotifier changeNotifier = new ChangeNotifier(); |
61 | |
62 | /** |
63 | * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. |
64 | * <!-- begin-user-doc --> |
65 | * <!-- end-user-doc --> |
66 | * @generated |
67 | */ |
68 | protected Collection<Object> supportedTypes = new ArrayList<Object>(); |
69 | |
70 | /** |
71 | * This constructs an instance. |
72 | * <!-- begin-user-doc --> |
73 | * <!-- end-user-doc --> |
74 | * @generated |
75 | */ |
76 | public StoexItemProviderAdapterFactory() { |
77 | supportedTypes.add(IEditingDomainItemProvider.class); |
78 | supportedTypes.add(IStructuredItemContentProvider.class); |
79 | supportedTypes.add(ITreeItemContentProvider.class); |
80 | supportedTypes.add(IItemLabelProvider.class); |
81 | supportedTypes.add(IItemPropertySource.class); |
82 | } |
83 | |
84 | /** |
85 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.VariableReference} instances. |
86 | * <!-- begin-user-doc --> |
87 | * <!-- end-user-doc --> |
88 | * @generated |
89 | */ |
90 | protected VariableReferenceItemProvider variableReferenceItemProvider; |
91 | |
92 | /** |
93 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.VariableReference}. |
94 | * <!-- begin-user-doc --> |
95 | * <!-- end-user-doc --> |
96 | * @generated |
97 | */ |
98 | @Override |
99 | public Adapter createVariableReferenceAdapter() { |
100 | if (variableReferenceItemProvider == null) { |
101 | variableReferenceItemProvider = new VariableReferenceItemProvider(this); |
102 | } |
103 | |
104 | return variableReferenceItemProvider; |
105 | } |
106 | |
107 | /** |
108 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.NamespaceReference} instances. |
109 | * <!-- begin-user-doc --> |
110 | * <!-- end-user-doc --> |
111 | * @generated |
112 | */ |
113 | protected NamespaceReferenceItemProvider namespaceReferenceItemProvider; |
114 | |
115 | /** |
116 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.NamespaceReference}. |
117 | * <!-- begin-user-doc --> |
118 | * <!-- end-user-doc --> |
119 | * @generated |
120 | */ |
121 | @Override |
122 | public Adapter createNamespaceReferenceAdapter() { |
123 | if (namespaceReferenceItemProvider == null) { |
124 | namespaceReferenceItemProvider = new NamespaceReferenceItemProvider(this); |
125 | } |
126 | |
127 | return namespaceReferenceItemProvider; |
128 | } |
129 | |
130 | /** |
131 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.Variable} instances. |
132 | * <!-- begin-user-doc --> |
133 | * <!-- end-user-doc --> |
134 | * @generated |
135 | */ |
136 | protected VariableItemProvider variableItemProvider; |
137 | |
138 | /** |
139 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.Variable}. |
140 | * <!-- begin-user-doc --> |
141 | * <!-- end-user-doc --> |
142 | * @generated |
143 | */ |
144 | @Override |
145 | public Adapter createVariableAdapter() { |
146 | if (variableItemProvider == null) { |
147 | variableItemProvider = new VariableItemProvider(this); |
148 | } |
149 | |
150 | return variableItemProvider; |
151 | } |
152 | |
153 | /** |
154 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.TermExpression} instances. |
155 | * <!-- begin-user-doc --> |
156 | * <!-- end-user-doc --> |
157 | * @generated |
158 | */ |
159 | protected TermExpressionItemProvider termExpressionItemProvider; |
160 | |
161 | /** |
162 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.TermExpression}. |
163 | * <!-- begin-user-doc --> |
164 | * <!-- end-user-doc --> |
165 | * @generated |
166 | */ |
167 | @Override |
168 | public Adapter createTermExpressionAdapter() { |
169 | if (termExpressionItemProvider == null) { |
170 | termExpressionItemProvider = new TermExpressionItemProvider(this); |
171 | } |
172 | |
173 | return termExpressionItemProvider; |
174 | } |
175 | |
176 | /** |
177 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.RandomVariable} instances. |
178 | * <!-- begin-user-doc --> |
179 | * <!-- end-user-doc --> |
180 | * @generated |
181 | */ |
182 | protected RandomVariableItemProvider randomVariableItemProvider; |
183 | |
184 | /** |
185 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.RandomVariable}. |
186 | * <!-- begin-user-doc --> |
187 | * <!-- end-user-doc --> |
188 | * @generated |
189 | */ |
190 | @Override |
191 | public Adapter createRandomVariableAdapter() { |
192 | if (randomVariableItemProvider == null) { |
193 | randomVariableItemProvider = new RandomVariableItemProvider(this); |
194 | } |
195 | |
196 | return randomVariableItemProvider; |
197 | } |
198 | |
199 | /** |
200 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.ProductExpression} instances. |
201 | * <!-- begin-user-doc --> |
202 | * <!-- end-user-doc --> |
203 | * @generated |
204 | */ |
205 | protected ProductExpressionItemProvider productExpressionItemProvider; |
206 | |
207 | /** |
208 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.ProductExpression}. |
209 | * <!-- begin-user-doc --> |
210 | * <!-- end-user-doc --> |
211 | * @generated |
212 | */ |
213 | @Override |
214 | public Adapter createProductExpressionAdapter() { |
215 | if (productExpressionItemProvider == null) { |
216 | productExpressionItemProvider = new ProductExpressionItemProvider(this); |
217 | } |
218 | |
219 | return productExpressionItemProvider; |
220 | } |
221 | |
222 | /** |
223 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.ProbabilityFunctionLiteral} instances. |
224 | * <!-- begin-user-doc --> |
225 | * <!-- end-user-doc --> |
226 | * @generated |
227 | */ |
228 | protected ProbabilityFunctionLiteralItemProvider probabilityFunctionLiteralItemProvider; |
229 | |
230 | /** |
231 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.ProbabilityFunctionLiteral}. |
232 | * <!-- begin-user-doc --> |
233 | * <!-- end-user-doc --> |
234 | * @generated |
235 | */ |
236 | @Override |
237 | public Adapter createProbabilityFunctionLiteralAdapter() { |
238 | if (probabilityFunctionLiteralItemProvider == null) { |
239 | probabilityFunctionLiteralItemProvider = new ProbabilityFunctionLiteralItemProvider(this); |
240 | } |
241 | |
242 | return probabilityFunctionLiteralItemProvider; |
243 | } |
244 | |
245 | /** |
246 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.Parenthesis} instances. |
247 | * <!-- begin-user-doc --> |
248 | * <!-- end-user-doc --> |
249 | * @generated |
250 | */ |
251 | protected ParenthesisItemProvider parenthesisItemProvider; |
252 | |
253 | /** |
254 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.Parenthesis}. |
255 | * <!-- begin-user-doc --> |
256 | * <!-- end-user-doc --> |
257 | * @generated |
258 | */ |
259 | @Override |
260 | public Adapter createParenthesisAdapter() { |
261 | if (parenthesisItemProvider == null) { |
262 | parenthesisItemProvider = new ParenthesisItemProvider(this); |
263 | } |
264 | |
265 | return parenthesisItemProvider; |
266 | } |
267 | |
268 | /** |
269 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.IntLiteral} instances. |
270 | * <!-- begin-user-doc --> |
271 | * <!-- end-user-doc --> |
272 | * @generated |
273 | */ |
274 | protected IntLiteralItemProvider intLiteralItemProvider; |
275 | |
276 | /** |
277 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.IntLiteral}. |
278 | * <!-- begin-user-doc --> |
279 | * <!-- end-user-doc --> |
280 | * @generated |
281 | */ |
282 | @Override |
283 | public Adapter createIntLiteralAdapter() { |
284 | if (intLiteralItemProvider == null) { |
285 | intLiteralItemProvider = new IntLiteralItemProvider(this); |
286 | } |
287 | |
288 | return intLiteralItemProvider; |
289 | } |
290 | |
291 | /** |
292 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.DoubleLiteral} instances. |
293 | * <!-- begin-user-doc --> |
294 | * <!-- end-user-doc --> |
295 | * @generated |
296 | */ |
297 | protected DoubleLiteralItemProvider doubleLiteralItemProvider; |
298 | |
299 | /** |
300 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.DoubleLiteral}. |
301 | * <!-- begin-user-doc --> |
302 | * <!-- end-user-doc --> |
303 | * @generated |
304 | */ |
305 | @Override |
306 | public Adapter createDoubleLiteralAdapter() { |
307 | if (doubleLiteralItemProvider == null) { |
308 | doubleLiteralItemProvider = new DoubleLiteralItemProvider(this); |
309 | } |
310 | |
311 | return doubleLiteralItemProvider; |
312 | } |
313 | |
314 | /** |
315 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.CompareExpression} instances. |
316 | * <!-- begin-user-doc --> |
317 | * <!-- end-user-doc --> |
318 | * @generated |
319 | */ |
320 | protected CompareExpressionItemProvider compareExpressionItemProvider; |
321 | |
322 | /** |
323 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.CompareExpression}. |
324 | * <!-- begin-user-doc --> |
325 | * <!-- end-user-doc --> |
326 | * @generated |
327 | */ |
328 | @Override |
329 | public Adapter createCompareExpressionAdapter() { |
330 | if (compareExpressionItemProvider == null) { |
331 | compareExpressionItemProvider = new CompareExpressionItemProvider(this); |
332 | } |
333 | |
334 | return compareExpressionItemProvider; |
335 | } |
336 | |
337 | /** |
338 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.BoolLiteral} instances. |
339 | * <!-- begin-user-doc --> |
340 | * <!-- end-user-doc --> |
341 | * @generated |
342 | */ |
343 | protected BoolLiteralItemProvider boolLiteralItemProvider; |
344 | |
345 | /** |
346 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.BoolLiteral}. |
347 | * <!-- begin-user-doc --> |
348 | * <!-- end-user-doc --> |
349 | * @generated |
350 | */ |
351 | @Override |
352 | public Adapter createBoolLiteralAdapter() { |
353 | if (boolLiteralItemProvider == null) { |
354 | boolLiteralItemProvider = new BoolLiteralItemProvider(this); |
355 | } |
356 | |
357 | return boolLiteralItemProvider; |
358 | } |
359 | |
360 | /** |
361 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.StringLiteral} instances. |
362 | * <!-- begin-user-doc --> |
363 | * <!-- end-user-doc --> |
364 | * @generated |
365 | */ |
366 | protected StringLiteralItemProvider stringLiteralItemProvider; |
367 | |
368 | /** |
369 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.StringLiteral}. |
370 | * <!-- begin-user-doc --> |
371 | * <!-- end-user-doc --> |
372 | * @generated |
373 | */ |
374 | @Override |
375 | public Adapter createStringLiteralAdapter() { |
376 | if (stringLiteralItemProvider == null) { |
377 | stringLiteralItemProvider = new StringLiteralItemProvider(this); |
378 | } |
379 | |
380 | return stringLiteralItemProvider; |
381 | } |
382 | |
383 | /** |
384 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.PowerExpression} instances. |
385 | * <!-- begin-user-doc --> |
386 | * <!-- end-user-doc --> |
387 | * @generated |
388 | */ |
389 | protected PowerExpressionItemProvider powerExpressionItemProvider; |
390 | |
391 | /** |
392 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.PowerExpression}. |
393 | * <!-- begin-user-doc --> |
394 | * <!-- end-user-doc --> |
395 | * @generated |
396 | */ |
397 | @Override |
398 | public Adapter createPowerExpressionAdapter() { |
399 | if (powerExpressionItemProvider == null) { |
400 | powerExpressionItemProvider = new PowerExpressionItemProvider(this); |
401 | } |
402 | |
403 | return powerExpressionItemProvider; |
404 | } |
405 | |
406 | /** |
407 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.BooleanOperatorExpression} instances. |
408 | * <!-- begin-user-doc --> |
409 | * <!-- end-user-doc --> |
410 | * @generated |
411 | */ |
412 | protected BooleanOperatorExpressionItemProvider booleanOperatorExpressionItemProvider; |
413 | |
414 | /** |
415 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.BooleanOperatorExpression}. |
416 | * <!-- begin-user-doc --> |
417 | * <!-- end-user-doc --> |
418 | * @generated |
419 | */ |
420 | @Override |
421 | public Adapter createBooleanOperatorExpressionAdapter() { |
422 | if (booleanOperatorExpressionItemProvider == null) { |
423 | booleanOperatorExpressionItemProvider = new BooleanOperatorExpressionItemProvider(this); |
424 | } |
425 | |
426 | return booleanOperatorExpressionItemProvider; |
427 | } |
428 | |
429 | /** |
430 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.NotExpression} instances. |
431 | * <!-- begin-user-doc --> |
432 | * <!-- end-user-doc --> |
433 | * @generated |
434 | */ |
435 | protected NotExpressionItemProvider notExpressionItemProvider; |
436 | |
437 | /** |
438 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.NotExpression}. |
439 | * <!-- begin-user-doc --> |
440 | * <!-- end-user-doc --> |
441 | * @generated |
442 | */ |
443 | @Override |
444 | public Adapter createNotExpressionAdapter() { |
445 | if (notExpressionItemProvider == null) { |
446 | notExpressionItemProvider = new NotExpressionItemProvider(this); |
447 | } |
448 | |
449 | return notExpressionItemProvider; |
450 | } |
451 | |
452 | /** |
453 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.NegativeExpression} instances. |
454 | * <!-- begin-user-doc --> |
455 | * <!-- end-user-doc --> |
456 | * @generated |
457 | */ |
458 | protected NegativeExpressionItemProvider negativeExpressionItemProvider; |
459 | |
460 | /** |
461 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.NegativeExpression}. |
462 | * <!-- begin-user-doc --> |
463 | * <!-- end-user-doc --> |
464 | * @generated |
465 | */ |
466 | @Override |
467 | public Adapter createNegativeExpressionAdapter() { |
468 | if (negativeExpressionItemProvider == null) { |
469 | negativeExpressionItemProvider = new NegativeExpressionItemProvider(this); |
470 | } |
471 | |
472 | return negativeExpressionItemProvider; |
473 | } |
474 | |
475 | /** |
476 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.FunctionLiteral} instances. |
477 | * <!-- begin-user-doc --> |
478 | * <!-- end-user-doc --> |
479 | * @generated |
480 | */ |
481 | protected FunctionLiteralItemProvider functionLiteralItemProvider; |
482 | |
483 | /** |
484 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.FunctionLiteral}. |
485 | * <!-- begin-user-doc --> |
486 | * <!-- end-user-doc --> |
487 | * @generated |
488 | */ |
489 | @Override |
490 | public Adapter createFunctionLiteralAdapter() { |
491 | if (functionLiteralItemProvider == null) { |
492 | functionLiteralItemProvider = new FunctionLiteralItemProvider(this); |
493 | } |
494 | |
495 | return functionLiteralItemProvider; |
496 | } |
497 | |
498 | /** |
499 | * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.stoex.IfElseExpression} instances. |
500 | * <!-- begin-user-doc --> |
501 | * <!-- end-user-doc --> |
502 | * @generated |
503 | */ |
504 | protected IfElseExpressionItemProvider ifElseExpressionItemProvider; |
505 | |
506 | /** |
507 | * This creates an adapter for a {@link de.uka.ipd.sdq.stoex.IfElseExpression}. |
508 | * <!-- begin-user-doc --> |
509 | * <!-- end-user-doc --> |
510 | * @generated |
511 | */ |
512 | @Override |
513 | public Adapter createIfElseExpressionAdapter() { |
514 | if (ifElseExpressionItemProvider == null) { |
515 | ifElseExpressionItemProvider = new IfElseExpressionItemProvider(this); |
516 | } |
517 | |
518 | return ifElseExpressionItemProvider; |
519 | } |
520 | |
521 | /** |
522 | * This returns the root adapter factory that contains this factory. |
523 | * <!-- begin-user-doc --> |
524 | * <!-- end-user-doc --> |
525 | * @generated |
526 | */ |
527 | public ComposeableAdapterFactory getRootAdapterFactory() { |
528 | return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); |
529 | } |
530 | |
531 | /** |
532 | * This sets the composed adapter factory that contains this factory. |
533 | * <!-- begin-user-doc --> |
534 | * <!-- end-user-doc --> |
535 | * @generated |
536 | */ |
537 | public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { |
538 | this.parentAdapterFactory = parentAdapterFactory; |
539 | } |
540 | |
541 | /** |
542 | * <!-- begin-user-doc --> |
543 | * <!-- end-user-doc --> |
544 | * @generated |
545 | */ |
546 | @Override |
547 | public boolean isFactoryForType(Object type) { |
548 | return supportedTypes.contains(type) || super.isFactoryForType(type); |
549 | } |
550 | |
551 | /** |
552 | * This implementation substitutes the factory itself as the key for the adapter. |
553 | * <!-- begin-user-doc --> |
554 | * <!-- end-user-doc --> |
555 | * @generated |
556 | */ |
557 | @Override |
558 | public Adapter adapt(Notifier notifier, Object type) { |
559 | return super.adapt(notifier, this); |
560 | } |
561 | |
562 | /** |
563 | * <!-- begin-user-doc --> |
564 | * <!-- end-user-doc --> |
565 | * @generated |
566 | */ |
567 | @Override |
568 | public Object adapt(Object object, Object type) { |
569 | if (isFactoryForType(type)) { |
570 | Object adapter = super.adapt(object, type); |
571 | if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) { |
572 | return adapter; |
573 | } |
574 | } |
575 | |
576 | return null; |
577 | } |
578 | |
579 | /** |
580 | * This adds a listener. |
581 | * <!-- begin-user-doc --> |
582 | * <!-- end-user-doc --> |
583 | * @generated |
584 | */ |
585 | public void addListener(INotifyChangedListener notifyChangedListener) { |
586 | changeNotifier.addListener(notifyChangedListener); |
587 | } |
588 | |
589 | /** |
590 | * This removes a listener. |
591 | * <!-- begin-user-doc --> |
592 | * <!-- end-user-doc --> |
593 | * @generated |
594 | */ |
595 | public void removeListener(INotifyChangedListener notifyChangedListener) { |
596 | changeNotifier.removeListener(notifyChangedListener); |
597 | } |
598 | |
599 | /** |
600 | * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. |
601 | * <!-- begin-user-doc --> |
602 | * <!-- end-user-doc --> |
603 | * @generated |
604 | */ |
605 | public void fireNotifyChanged(Notification notification) { |
606 | changeNotifier.fireNotifyChanged(notification); |
607 | |
608 | if (parentAdapterFactory != null) { |
609 | parentAdapterFactory.fireNotifyChanged(notification); |
610 | } |
611 | } |
612 | |
613 | /** |
614 | * This disposes all of the item providers created by this factory. |
615 | * <!-- begin-user-doc --> |
616 | * <!-- end-user-doc --> |
617 | * @generated |
618 | */ |
619 | public void dispose() { |
620 | if (variableReferenceItemProvider != null) variableReferenceItemProvider.dispose(); |
621 | if (namespaceReferenceItemProvider != null) namespaceReferenceItemProvider.dispose(); |
622 | if (variableItemProvider != null) variableItemProvider.dispose(); |
623 | if (termExpressionItemProvider != null) termExpressionItemProvider.dispose(); |
624 | if (productExpressionItemProvider != null) productExpressionItemProvider.dispose(); |
625 | if (probabilityFunctionLiteralItemProvider != null) probabilityFunctionLiteralItemProvider.dispose(); |
626 | if (parenthesisItemProvider != null) parenthesisItemProvider.dispose(); |
627 | if (intLiteralItemProvider != null) intLiteralItemProvider.dispose(); |
628 | if (doubleLiteralItemProvider != null) doubleLiteralItemProvider.dispose(); |
629 | if (compareExpressionItemProvider != null) compareExpressionItemProvider.dispose(); |
630 | if (boolLiteralItemProvider != null) boolLiteralItemProvider.dispose(); |
631 | if (stringLiteralItemProvider != null) stringLiteralItemProvider.dispose(); |
632 | if (powerExpressionItemProvider != null) powerExpressionItemProvider.dispose(); |
633 | if (booleanOperatorExpressionItemProvider != null) booleanOperatorExpressionItemProvider.dispose(); |
634 | if (notExpressionItemProvider != null) notExpressionItemProvider.dispose(); |
635 | if (negativeExpressionItemProvider != null) negativeExpressionItemProvider.dispose(); |
636 | if (functionLiteralItemProvider != null) functionLiteralItemProvider.dispose(); |
637 | if (ifElseExpressionItemProvider != null) ifElseExpressionItemProvider.dispose(); |
638 | if (randomVariableItemProvider != null) randomVariableItemProvider.dispose(); |
639 | } |
640 | |
641 | } |