Skip to main content
summaryrefslogtreecommitdiffstats
blob: b22cd339d60fccc5d860e4b923aae9730c522eb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
//Generated with EGF 1.6.1.201902111324
package org.eclipse.egf.emf.pattern.editor.call.Editor;

import org.eclipse.egf.emf.pattern.base.*;
import org.eclipse.emf.codegen.ecore.genmodel.util.GenModelUtil;
import org.eclipse.emf.codegen.ecore.genmodel.*;
import org.eclipse.emf.codegen.ecore.genmodel.impl.*;
import org.eclipse.emf.codegen.ecore.genmodel.generator.*;
import org.eclipse.emf.codegen.util.*;
import org.eclipse.emf.ecore.util.*;
import org.eclipse.emf.common.util.*;
import org.eclipse.egf.common.helper.*;
import java.util.*;
import org.eclipse.emf.ecore.*;
import org.eclipse.egf.model.pattern.*;
import org.eclipse.egf.pattern.execution.*;
import org.eclipse.egf.pattern.query.*;

public class EditoraddItemProviderFactoriesoverride {
	protected static String nl;

	public static synchronized EditoraddItemProviderFactoriesoverride create(String lineSeparator) {
		nl = lineSeparator;
		EditoraddItemProviderFactoriesoverride result = new EditoraddItemProviderFactoriesoverride();
		nl = null;
		return result;
	}

	public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
	protected final String TEXT_1 = "";
	protected final String TEXT_2 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
	protected final String TEXT_3 = "());";
	protected final String TEXT_4 = NL;
	protected final String TEXT_5 = NL;

	public EditoraddItemProviderFactoriesoverride() {
		//Here is the constructor
		StringBuffer stringBuffer = new StringBuffer();

		// add initialisation of the pattern variables (declaration has been already done).

	}

	public String generate(Object argument) throws Exception {
		final StringBuffer stringBuffer = new StringBuffer();

		InternalPatternContext ctx = (InternalPatternContext) argument;
		Map<String, String> queryCtx = null;
		IQuery.ParameterDescription paramDesc = null;
		Node.Container currentNode = ctx.getNode();

		List<Object> genPackageList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> genModelList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> isJDK50List = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> forceDefaultCaseList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> importedOperationClassNameList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> operationMethodNameList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ArrayListOfObjectList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ArrayListOfSelectionChangedListenerList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _CollectionOfSelectionChangedListenerList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ListOfResourceList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ArrayListOfResourceList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _CollectionOfResourceList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _MapOfResourceToDiagnosticList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _HashMapOfResourceToBooleanList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _MapOfObjectToObjectList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _HashMapOfObjectToObjectList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _LinkedHashMapOfResourceToDiagnosticList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _CollectionOfAnythingList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ListOfAnythingList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> useExtendedLabelProviderList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> useStyledLabelProviderList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _AdapterFactoryLabelProviderList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _DelegatingAdapterFactoryLabelProviderList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _DecoratingColumLabelProviderList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _DiagnosticDecoratorList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ArrayListOfStringList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ListOfStringList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ListOfPropertySheetPageList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)
		List<Object> _ArrayListOfPropertySheetPageList = null;
		//this pattern can only be called by another (i.e. it's not an entry point in execution)

		for (Object genPackageParameter : genPackageList) {
			for (Object genModelParameter : genModelList) {
				for (Object isJDK50Parameter : isJDK50List) {
					for (Object forceDefaultCaseParameter : forceDefaultCaseList) {
						for (Object importedOperationClassNameParameter : importedOperationClassNameList) {
							for (Object operationMethodNameParameter : operationMethodNameList) {
								for (Object _ArrayListOfObjectParameter : _ArrayListOfObjectList) {
									for (Object _ArrayListOfSelectionChangedListenerParameter : _ArrayListOfSelectionChangedListenerList) {
										for (Object _CollectionOfSelectionChangedListenerParameter : _CollectionOfSelectionChangedListenerList) {
											for (Object _ListOfResourceParameter : _ListOfResourceList) {
												for (Object _ArrayListOfResourceParameter : _ArrayListOfResourceList) {
													for (Object _CollectionOfResourceParameter : _CollectionOfResourceList) {
														for (Object _MapOfResourceToDiagnosticParameter : _MapOfResourceToDiagnosticList) {
															for (Object _HashMapOfResourceToBooleanParameter : _HashMapOfResourceToBooleanList) {
																for (Object _MapOfObjectToObjectParameter : _MapOfObjectToObjectList) {
																	for (Object _HashMapOfObjectToObjectParameter : _HashMapOfObjectToObjectList) {
																		for (Object _LinkedHashMapOfResourceToDiagnosticParameter : _LinkedHashMapOfResourceToDiagnosticList) {
																			for (Object _CollectionOfAnythingParameter : _CollectionOfAnythingList) {
																				for (Object _ListOfAnythingParameter : _ListOfAnythingList) {
																					for (Object useExtendedLabelProviderParameter : useExtendedLabelProviderList) {
																						for (Object useStyledLabelProviderParameter : useStyledLabelProviderList) {
																							for (Object _AdapterFactoryLabelProviderParameter : _AdapterFactoryLabelProviderList) {
																								for (Object _DelegatingAdapterFactoryLabelProviderParameter : _DelegatingAdapterFactoryLabelProviderList) {
																									for (Object _DecoratingColumLabelProviderParameter : _DecoratingColumLabelProviderList) {
																										for (Object _DiagnosticDecoratorParameter : _DiagnosticDecoratorList) {
																											for (Object _ArrayListOfStringParameter : _ArrayListOfStringList) {
																												for (Object _ListOfStringParameter : _ListOfStringList) {
																													for (Object _ListOfPropertySheetPageParameter : _ListOfPropertySheetPageList) {
																														for (Object _ArrayListOfPropertySheetPageParameter : _ArrayListOfPropertySheetPageList) {

																															this.genPackage = (org.eclipse.emf.codegen.ecore.genmodel.GenPackage) genPackageParameter;
																															this.genModel = (org.eclipse.emf.codegen.ecore.genmodel.GenModel) genModelParameter;
																															this.isJDK50 = (java.lang.Boolean) isJDK50Parameter;
																															this.forceDefaultCase = (java.lang.Boolean) forceDefaultCaseParameter;
																															this.importedOperationClassName = (java.lang.String) importedOperationClassNameParameter;
																															this.operationMethodName = (java.lang.String) operationMethodNameParameter;
																															this._ArrayListOfObject = (java.lang.String) _ArrayListOfObjectParameter;
																															this._ArrayListOfSelectionChangedListener = (java.lang.String) _ArrayListOfSelectionChangedListenerParameter;
																															this._CollectionOfSelectionChangedListener = (java.lang.String) _CollectionOfSelectionChangedListenerParameter;
																															this._ListOfResource = (java.lang.String) _ListOfResourceParameter;
																															this._ArrayListOfResource = (java.lang.String) _ArrayListOfResourceParameter;
																															this._CollectionOfResource = (java.lang.String) _CollectionOfResourceParameter;
																															this._MapOfResourceToDiagnostic = (java.lang.String) _MapOfResourceToDiagnosticParameter;
																															this._HashMapOfResourceToBoolean = (java.lang.String) _HashMapOfResourceToBooleanParameter;
																															this._MapOfObjectToObject = (java.lang.String) _MapOfObjectToObjectParameter;
																															this._HashMapOfObjectToObject = (java.lang.String) _HashMapOfObjectToObjectParameter;
																															this._LinkedHashMapOfResourceToDiagnostic = (java.lang.String) _LinkedHashMapOfResourceToDiagnosticParameter;
																															this._CollectionOfAnything = (java.lang.String) _CollectionOfAnythingParameter;
																															this._ListOfAnything = (java.lang.String) _ListOfAnythingParameter;
																															this.useExtendedLabelProvider = (java.lang.Boolean) useExtendedLabelProviderParameter;
																															this.useStyledLabelProvider = (java.lang.Boolean) useStyledLabelProviderParameter;
																															this._AdapterFactoryLabelProvider = (java.lang.String) _AdapterFactoryLabelProviderParameter;
																															this._DelegatingAdapterFactoryLabelProvider = (java.lang.String) _DelegatingAdapterFactoryLabelProviderParameter;
																															this._DecoratingColumLabelProvider = (java.lang.String) _DecoratingColumLabelProviderParameter;
																															this._DiagnosticDecorator = (java.lang.String) _DiagnosticDecoratorParameter;
																															this._ArrayListOfString = (java.lang.String) _ArrayListOfStringParameter;
																															this._ListOfString = (java.lang.String) _ListOfStringParameter;
																															this._ListOfPropertySheetPage = (java.lang.String) _ListOfPropertySheetPageParameter;
																															this._ArrayListOfPropertySheetPage = (java.lang.String) _ArrayListOfPropertySheetPageParameter;

																															if (preCondition(
																																	ctx)) {
																																ctx.setNode(
																																		new Node.Container(
																																				currentNode,
																																				getClass()));
																																orchestration(
																																		ctx);
																															}

																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
		ctx.setNode(currentNode);
		if (ctx.useReporter()) {
			ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx);
		}

		stringBuffer.append(TEXT_5);
		stringBuffer.append(TEXT_5);
		return stringBuffer.toString();
	}

	public String orchestration(PatternContext ctx) throws Exception {
		InternalPatternContext ictx = (InternalPatternContext) ctx;

		method_doGenerate(new StringBuffer(), ictx);

		if (ictx.useReporter()) {
			Map<String, Object> parameterValues = new HashMap<String, Object>();
			parameterValues.put("genPackage", this.genPackage);
			parameterValues.put("genModel", this.genModel);
			parameterValues.put("isJDK50", this.isJDK50);
			parameterValues.put("forceDefaultCase", this.forceDefaultCase);
			parameterValues.put("importedOperationClassName", this.importedOperationClassName);
			parameterValues.put("operationMethodName", this.operationMethodName);
			parameterValues.put("_ArrayListOfObject", this._ArrayListOfObject);
			parameterValues.put("_ArrayListOfSelectionChangedListener", this._ArrayListOfSelectionChangedListener);
			parameterValues.put("_CollectionOfSelectionChangedListener", this._CollectionOfSelectionChangedListener);
			parameterValues.put("_ListOfResource", this._ListOfResource);
			parameterValues.put("_ArrayListOfResource", this._ArrayListOfResource);
			parameterValues.put("_CollectionOfResource", this._CollectionOfResource);
			parameterValues.put("_MapOfResourceToDiagnostic", this._MapOfResourceToDiagnostic);
			parameterValues.put("_HashMapOfResourceToBoolean", this._HashMapOfResourceToBoolean);
			parameterValues.put("_MapOfObjectToObject", this._MapOfObjectToObject);
			parameterValues.put("_HashMapOfObjectToObject", this._HashMapOfObjectToObject);
			parameterValues.put("_LinkedHashMapOfResourceToDiagnostic", this._LinkedHashMapOfResourceToDiagnostic);
			parameterValues.put("_CollectionOfAnything", this._CollectionOfAnything);
			parameterValues.put("_ListOfAnything", this._ListOfAnything);
			parameterValues.put("useExtendedLabelProvider", this.useExtendedLabelProvider);
			parameterValues.put("useStyledLabelProvider", this.useStyledLabelProvider);
			parameterValues.put("_AdapterFactoryLabelProvider", this._AdapterFactoryLabelProvider);
			parameterValues.put("_DelegatingAdapterFactoryLabelProvider", this._DelegatingAdapterFactoryLabelProvider);
			parameterValues.put("_DecoratingColumLabelProvider", this._DecoratingColumLabelProvider);
			parameterValues.put("_DiagnosticDecorator", this._DiagnosticDecorator);
			parameterValues.put("_ArrayListOfString", this._ArrayListOfString);
			parameterValues.put("_ListOfString", this._ListOfString);
			parameterValues.put("_ListOfPropertySheetPage", this._ListOfPropertySheetPage);
			parameterValues.put("_ArrayListOfPropertySheetPage", this._ArrayListOfPropertySheetPage);
			String outputWithCallBack = OutputManager.computeLoopOutput(ictx);
			String loop = OutputManager.computeLoopOutputWithoutCallback(ictx);
			ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues);
		}
		return null;
	}

	protected org.eclipse.emf.codegen.ecore.genmodel.GenPackage genPackage = null;

	public void set_genPackage(org.eclipse.emf.codegen.ecore.genmodel.GenPackage object) {
		this.genPackage = object;
	}

	protected org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel = null;

	public void set_genModel(org.eclipse.emf.codegen.ecore.genmodel.GenModel object) {
		this.genModel = object;
	}

	protected java.lang.Boolean isJDK50 = null;

	public void set_isJDK50(java.lang.Boolean object) {
		this.isJDK50 = object;
	}

	protected java.lang.Boolean forceDefaultCase = null;

	public void set_forceDefaultCase(java.lang.Boolean object) {
		this.forceDefaultCase = object;
	}

	protected java.lang.String importedOperationClassName = null;

	public void set_importedOperationClassName(java.lang.String object) {
		this.importedOperationClassName = object;
	}

	protected java.lang.String operationMethodName = null;

	public void set_operationMethodName(java.lang.String object) {
		this.operationMethodName = object;
	}

	protected java.lang.String _ArrayListOfObject = null;

	public void set__ArrayListOfObject(java.lang.String object) {
		this._ArrayListOfObject = object;
	}

	protected java.lang.String _ArrayListOfSelectionChangedListener = null;

	public void set__ArrayListOfSelectionChangedListener(java.lang.String object) {
		this._ArrayListOfSelectionChangedListener = object;
	}

	protected java.lang.String _CollectionOfSelectionChangedListener = null;

	public void set__CollectionOfSelectionChangedListener(java.lang.String object) {
		this._CollectionOfSelectionChangedListener = object;
	}

	protected java.lang.String _ListOfResource = null;

	public void set__ListOfResource(java.lang.String object) {
		this._ListOfResource = object;
	}

	protected java.lang.String _ArrayListOfResource = null;

	public void set__ArrayListOfResource(java.lang.String object) {
		this._ArrayListOfResource = object;
	}

	protected java.lang.String _CollectionOfResource = null;

	public void set__CollectionOfResource(java.lang.String object) {
		this._CollectionOfResource = object;
	}

	protected java.lang.String _MapOfResourceToDiagnostic = null;

	public void set__MapOfResourceToDiagnostic(java.lang.String object) {
		this._MapOfResourceToDiagnostic = object;
	}

	protected java.lang.String _HashMapOfResourceToBoolean = null;

	public void set__HashMapOfResourceToBoolean(java.lang.String object) {
		this._HashMapOfResourceToBoolean = object;
	}

	protected java.lang.String _MapOfObjectToObject = null;

	public void set__MapOfObjectToObject(java.lang.String object) {
		this._MapOfObjectToObject = object;
	}

	protected java.lang.String _HashMapOfObjectToObject = null;

	public void set__HashMapOfObjectToObject(java.lang.String object) {
		this._HashMapOfObjectToObject = object;
	}

	protected java.lang.String _LinkedHashMapOfResourceToDiagnostic = null;

	public void set__LinkedHashMapOfResourceToDiagnostic(java.lang.String object) {
		this._LinkedHashMapOfResourceToDiagnostic = object;
	}

	protected java.lang.String _CollectionOfAnything = null;

	public void set__CollectionOfAnything(java.lang.String object) {
		this._CollectionOfAnything = object;
	}

	protected java.lang.String _ListOfAnything = null;

	public void set__ListOfAnything(java.lang.String object) {
		this._ListOfAnything = object;
	}

	protected java.lang.Boolean useExtendedLabelProvider = null;

	public void set_useExtendedLabelProvider(java.lang.Boolean object) {
		this.useExtendedLabelProvider = object;
	}

	protected java.lang.Boolean useStyledLabelProvider = null;

	public void set_useStyledLabelProvider(java.lang.Boolean object) {
		this.useStyledLabelProvider = object;
	}

	protected java.lang.String _AdapterFactoryLabelProvider = null;

	public void set__AdapterFactoryLabelProvider(java.lang.String object) {
		this._AdapterFactoryLabelProvider = object;
	}

	protected java.lang.String _DelegatingAdapterFactoryLabelProvider = null;

	public void set__DelegatingAdapterFactoryLabelProvider(java.lang.String object) {
		this._DelegatingAdapterFactoryLabelProvider = object;
	}

	protected java.lang.String _DecoratingColumLabelProvider = null;

	public void set__DecoratingColumLabelProvider(java.lang.String object) {
		this._DecoratingColumLabelProvider = object;
	}

	protected java.lang.String _DiagnosticDecorator = null;

	public void set__DiagnosticDecorator(java.lang.String object) {
		this._DiagnosticDecorator = object;
	}

	protected java.lang.String _ArrayListOfString = null;

	public void set__ArrayListOfString(java.lang.String object) {
		this._ArrayListOfString = object;
	}

	protected java.lang.String _ListOfString = null;

	public void set__ListOfString(java.lang.String object) {
		this._ListOfString = object;
	}

	protected java.lang.String _ListOfPropertySheetPage = null;

	public void set__ListOfPropertySheetPage(java.lang.String object) {
		this._ListOfPropertySheetPage = object;
	}

	protected java.lang.String _ArrayListOfPropertySheetPage = null;

	public void set__ArrayListOfPropertySheetPage(java.lang.String object) {
		this._ArrayListOfPropertySheetPage = object;
	}

	public Map<String, Object> getParameters() {
		final Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("genPackage", this.genPackage);
		parameters.put("genModel", this.genModel);
		parameters.put("isJDK50", this.isJDK50);
		parameters.put("forceDefaultCase", this.forceDefaultCase);
		parameters.put("importedOperationClassName", this.importedOperationClassName);
		parameters.put("operationMethodName", this.operationMethodName);
		parameters.put("_ArrayListOfObject", this._ArrayListOfObject);
		parameters.put("_ArrayListOfSelectionChangedListener", this._ArrayListOfSelectionChangedListener);
		parameters.put("_CollectionOfSelectionChangedListener", this._CollectionOfSelectionChangedListener);
		parameters.put("_ListOfResource", this._ListOfResource);
		parameters.put("_ArrayListOfResource", this._ArrayListOfResource);
		parameters.put("_CollectionOfResource", this._CollectionOfResource);
		parameters.put("_MapOfResourceToDiagnostic", this._MapOfResourceToDiagnostic);
		parameters.put("_HashMapOfResourceToBoolean", this._HashMapOfResourceToBoolean);
		parameters.put("_MapOfObjectToObject", this._MapOfObjectToObject);
		parameters.put("_HashMapOfObjectToObject", this._HashMapOfObjectToObject);
		parameters.put("_LinkedHashMapOfResourceToDiagnostic", this._LinkedHashMapOfResourceToDiagnostic);
		parameters.put("_CollectionOfAnything", this._CollectionOfAnything);
		parameters.put("_ListOfAnything", this._ListOfAnything);
		parameters.put("useExtendedLabelProvider", this.useExtendedLabelProvider);
		parameters.put("useStyledLabelProvider", this.useStyledLabelProvider);
		parameters.put("_AdapterFactoryLabelProvider", this._AdapterFactoryLabelProvider);
		parameters.put("_DelegatingAdapterFactoryLabelProvider", this._DelegatingAdapterFactoryLabelProvider);
		parameters.put("_DecoratingColumLabelProvider", this._DecoratingColumLabelProvider);
		parameters.put("_DiagnosticDecorator", this._DiagnosticDecorator);
		parameters.put("_ArrayListOfString", this._ArrayListOfString);
		parameters.put("_ListOfString", this._ListOfString);
		parameters.put("_ListOfPropertySheetPage", this._ListOfPropertySheetPage);
		parameters.put("_ArrayListOfPropertySheetPage", this._ArrayListOfPropertySheetPage);
		return parameters;
	}

	protected void method_doGenerate(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception {

		stringBuffer.append(TEXT_1);
		for (GenPackage aGenPackage : genModel.getAllGenPackagesWithClassifiers()) {
			if (!aGenPackage.getGenClasses().isEmpty() && aGenPackage.getGenModel().hasEditSupport()) {
				stringBuffer.append(TEXT_2);
				stringBuffer.append(aGenPackage.getImportedItemProviderAdapterFactoryClassName());
				stringBuffer.append(TEXT_3);
			}
		}
		for (GenPackage aGenPackage : genModel.getAllUsedGenPackagesWithClassifiers()) {
			if (!aGenPackage.getGenClasses().isEmpty() && aGenPackage.getGenModel().hasEditSupport()) {
				stringBuffer.append(TEXT_2);
				stringBuffer.append(aGenPackage.getImportedItemProviderAdapterFactoryClassName());
				stringBuffer.append(TEXT_3);
			}
		}
		stringBuffer.append(TEXT_4);
		{
			//<%@ egf:patternCall patternId="platform:/plugin/org.eclipse.egf.emf.pattern/egf/EMF_Pattern.fcore#LogicalName=org.eclipse.egf.emf.pattern.editor.call.Editor.Editor.addItemProviderFactories.insert" args="genPackage:genPackage,genModel:genModel,isJDK50:isJDK50,forceDefaultCase:forceDefaultCase,importedOperationClassName:importedOperationClassName,operationMethodName:operationMethodName,_ArrayListOfObject:_ArrayListOfObject,_ArrayListOfSelectionChangedListener:_ArrayListOfSelectionChangedListener,_CollectionOfSelectionChangedListener:_CollectionOfSelectionChangedListener,_ListOfResource:_ListOfResource,_ArrayListOfResource:_ArrayListOfResource,_CollectionOfResource:_CollectionOfResource,_MapOfResourceToDiagnostic:_MapOfResourceToDiagnostic,_HashMapOfResourceToBoolean:_HashMapOfResourceToBoolean,_MapOfObjectToObject:_MapOfObjectToObject,_HashMapOfObjectToObject:_HashMapOfObjectToObject,_LinkedHashMapOfResourceToDiagnostic:_LinkedHashMapOfResourceToDiagnostic,_CollectionOfAnything:_CollectionOfAnything,_ListOfAnything:_ListOfAnything,useExtendedLabelProvider:useExtendedLabelProvider,useStyledLabelProvider:useStyledLabelProvider,_AdapterFactoryLabelProvider:_AdapterFactoryLabelProvider,_DelegatingAdapterFactoryLabelProvider:_DelegatingAdapterFactoryLabelProvider,_DecoratingColumLabelProvider:_DecoratingColumLabelProvider,_DiagnosticDecorator:_DiagnosticDecorator,_ArrayListOfString:_ArrayListOfString,_ListOfString:_ListOfString,_ListOfPropertySheetPage:_ListOfPropertySheetPage,_ArrayListOfPropertySheetPage:_ArrayListOfPropertySheetPage"%>

			InternalPatternContext ictx = (InternalPatternContext) ctx;
			new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
			stringBuffer.setLength(0);

			final Map<String, Object> callParameters = new HashMap<String, Object>();
			callParameters.put("genPackage", genPackage);
			callParameters.put("genModel", genModel);
			callParameters.put("isJDK50", isJDK50);
			callParameters.put("forceDefaultCase", forceDefaultCase);
			callParameters.put("importedOperationClassName", importedOperationClassName);
			callParameters.put("operationMethodName", operationMethodName);
			callParameters.put("_ArrayListOfObject", _ArrayListOfObject);
			callParameters.put("_ArrayListOfSelectionChangedListener", _ArrayListOfSelectionChangedListener);
			callParameters.put("_CollectionOfSelectionChangedListener", _CollectionOfSelectionChangedListener);
			callParameters.put("_ListOfResource", _ListOfResource);
			callParameters.put("_ArrayListOfResource", _ArrayListOfResource);
			callParameters.put("_CollectionOfResource", _CollectionOfResource);
			callParameters.put("_MapOfResourceToDiagnostic", _MapOfResourceToDiagnostic);
			callParameters.put("_HashMapOfResourceToBoolean", _HashMapOfResourceToBoolean);
			callParameters.put("_MapOfObjectToObject", _MapOfObjectToObject);
			callParameters.put("_HashMapOfObjectToObject", _HashMapOfObjectToObject);
			callParameters.put("_LinkedHashMapOfResourceToDiagnostic", _LinkedHashMapOfResourceToDiagnostic);
			callParameters.put("_CollectionOfAnything", _CollectionOfAnything);
			callParameters.put("_ListOfAnything", _ListOfAnything);
			callParameters.put("useExtendedLabelProvider", useExtendedLabelProvider);
			callParameters.put("useStyledLabelProvider", useStyledLabelProvider);
			callParameters.put("_AdapterFactoryLabelProvider", _AdapterFactoryLabelProvider);
			callParameters.put("_DelegatingAdapterFactoryLabelProvider", _DelegatingAdapterFactoryLabelProvider);
			callParameters.put("_DecoratingColumLabelProvider", _DecoratingColumLabelProvider);
			callParameters.put("_DiagnosticDecorator", _DiagnosticDecorator);
			callParameters.put("_ArrayListOfString", _ArrayListOfString);
			callParameters.put("_ListOfString", _ListOfString);
			callParameters.put("_ListOfPropertySheetPage", _ListOfPropertySheetPage);
			callParameters.put("_ArrayListOfPropertySheetPage", _ArrayListOfPropertySheetPage);
			CallHelper.executeWithParameterInjection(
					"platform:/plugin/org.eclipse.egf.emf.pattern/egf/EMF_Pattern.fcore#_09RHMGJ-Ed-FqczH3ESmRw",
					new ExecutionContext((InternalPatternContext) ctx), callParameters);
			stringBuffer.setLength(0);
		}

		stringBuffer.append(TEXT_4);
		InternalPatternContext ictx = (InternalPatternContext) ctx;
		new Node.DataLeaf(ictx.getNode(), getClass(), "doGenerate", stringBuffer.toString());
	}

	public boolean preCondition(PatternContext ctx) throws Exception {
		return true;
	}
}

Back to the top