Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 275476
Collapse All | Expand All

(-)templates/model/PackageClass.javajet (-14 / +7 lines)
Lines 236-255 Link Here
236
	private static boolean isInited = false;
236
	private static boolean isInited = false;
237
237
238
	/**
238
	/**
239
	 * Creates, registers, and initializes the <b>Package</b> for this
239
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
240
	 * model, and for any others upon which it depends.  Simple
240
	 * 
241
	 * dependencies are satisfied by calling this method on all
241
	 * <p>This method is used to initialize {@link <%=genPackage.getImportedPackageInterfaceName()%>#eINSTANCE} when that field is accessed.
242
	 * dependent packages before doing anything else.  This method drives
242
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
243
	 * initialization for interdependent packages directly, in parallel
244
	 * with this package, itself.
245
	 * <p>Of this package and its interdependencies, all packages which
246
	 * have not yet been registered by their URI values are first created
247
	 * and registered.  The packages are then initialized in two steps:
248
	 * meta-model objects for all of the packages are created before any
249
	 * are initialized, since one package's meta-model objects may refer to
250
	 * those of another.
251
	 * <p>Invocation of this method will not affect any packages that have
252
	 * already been initialized.
253
	 * <!-- begin-user-doc -->
243
	 * <!-- begin-user-doc -->
254
	 * <!-- end-user-doc -->
244
	 * <!-- end-user-doc -->
255
	 * @see #eNS_URI
245
	 * @see #eNS_URI
Lines 340-345 Link Here
340
		the<%=genPackage.getBasicPackageName()%>.freeze();
330
		the<%=genPackage.getBasicPackageName()%>.freeze();
341
331
342
  <%}%>
332
  <%}%>
333
  
334
		// Update the registry and return the package
335
		<%=genModel.getImportedName("org.eclipse.emf.ecore.EPackage")%>.Registry.INSTANCE.put(<%=genPackage.getImportedPackageInterfaceName()%>.eNS_URI, the<%=genPackage.getBasicPackageName()%>);
343
		return the<%=genPackage.getBasicPackageName()%>;
336
		return the<%=genPackage.getBasicPackageName()%>;
344
	}
337
	}
345
338
(-)src/org/eclipse/emf/codegen/ecore/genmodel/impl/GenModelPackageImpl.java (-14 / +7 lines)
Lines 228-247 Link Here
228
  private static boolean isInited = false;
228
  private static boolean isInited = false;
229
229
230
  /**
230
  /**
231
   * Creates, registers, and initializes the <b>Package</b> for this
231
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
232
   * model, and for any others upon which it depends.  Simple
232
   * 
233
   * dependencies are satisfied by calling this method on all
233
   * <p>This method is used to initialize {@link GenModelPackage#eINSTANCE} when that field is accessed.
234
   * dependent packages before doing anything else.  This method drives
234
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
235
   * initialization for interdependent packages directly, in parallel
236
   * with this package, itself.
237
   * <p>Of this package and its interdependencies, all packages which
238
   * have not yet been registered by their URI values are first created
239
   * and registered.  The packages are then initialized in two steps:
240
   * meta-model objects for all of the packages are created before any
241
   * are initialized, since one package's meta-model objects may refer to
242
   * those of another.
243
   * <p>Invocation of this method will not affect any packages that have
244
   * already been initialized.
245
   * <!-- begin-user-doc -->
235
   * <!-- begin-user-doc -->
246
   * <!-- end-user-doc -->
236
   * <!-- end-user-doc -->
247
   * @see #eNS_URI
237
   * @see #eNS_URI
Lines 281-286 Link Here
281
    // Mark meta-data to indicate it can't be changed
271
    // Mark meta-data to indicate it can't be changed
282
    theGenModelPackage.freeze();
272
    theGenModelPackage.freeze();
283
273
274
  
275
    // Update the registry and return the package
276
    EPackage.Registry.INSTANCE.put(GenModelPackage.eNS_URI, theGenModelPackage);
284
    return theGenModelPackage;
277
    return theGenModelPackage;
285
  }
278
  }
286
279
(-)src/org/eclipse/emf/codegen/ecore/templates/model/PackageClass.java (-989 / +1001 lines)
Lines 103-350 Link Here
103
  protected final String TEXT_83 = NL + "\t/**" + NL + "\t * Creates an instance of the model <b>Package</b>, registered with" + NL + "\t * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package" + NL + "\t * package URI value." + NL + "\t * <p>Note: the correct way to create the package is via the static" + NL + "\t * factory method {@link #init init()}, which also performs" + NL + "\t * initialization of the package, or returns the registered package," + NL + "\t * if one already exists." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @see org.eclipse.emf.ecore.EPackage.Registry" + NL + "\t * @see ";
103
  protected final String TEXT_83 = NL + "\t/**" + NL + "\t * Creates an instance of the model <b>Package</b>, registered with" + NL + "\t * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package" + NL + "\t * package URI value." + NL + "\t * <p>Note: the correct way to create the package is via the static" + NL + "\t * factory method {@link #init init()}, which also performs" + NL + "\t * initialization of the package, or returns the registered package," + NL + "\t * if one already exists." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @see org.eclipse.emf.ecore.EPackage.Registry" + NL + "\t * @see ";
104
  protected final String TEXT_84 = "#eNS_URI" + NL + "\t * @see #init()" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
104
  protected final String TEXT_84 = "#eNS_URI" + NL + "\t * @see #init()" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
105
  protected final String TEXT_85 = "()" + NL + "\t{" + NL + "\t\tsuper(eNS_URI, ";
105
  protected final String TEXT_85 = "()" + NL + "\t{" + NL + "\t\tsuper(eNS_URI, ";
106
  protected final String TEXT_86 = ");" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static boolean isInited = false;" + NL + "" + NL + "\t/**" + NL + "\t * Creates, registers, and initializes the <b>Package</b> for this" + NL + "\t * model, and for any others upon which it depends.  Simple" + NL + "\t * dependencies are satisfied by calling this method on all" + NL + "\t * dependent packages before doing anything else.  This method drives" + NL + "\t * initialization for interdependent packages directly, in parallel" + NL + "\t * with this package, itself." + NL + "\t * <p>Of this package and its interdependencies, all packages which" + NL + "\t * have not yet been registered by their URI values are first created" + NL + "\t * and registered.  The packages are then initialized in two steps:" + NL + "\t * meta-model objects for all of the packages are created before any" + NL + "\t * are initialized, since one package's meta-model objects may refer to" + NL + "\t * those of another." + NL + "\t * <p>Invocation of this method will not affect any packages that have" + NL + "\t * already been initialized." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @see #eNS_URI";
106
  protected final String TEXT_86 = ");" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static boolean isInited = false;" + NL + "" + NL + "\t/**" + NL + "\t * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends." + NL + "\t * " + NL + "\t * <p>This method is used to initialize {@link ";
107
  protected final String TEXT_87 = NL + "\t * @see #createPackageContents()" + NL + "\t * @see #initializePackageContents()";
107
  protected final String TEXT_87 = "#eINSTANCE} when that field is accessed." + NL + "\t * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @see #eNS_URI";
108
  protected final String TEXT_88 = NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static ";
108
  protected final String TEXT_88 = NL + "\t * @see #createPackageContents()" + NL + "\t * @see #initializePackageContents()";
109
  protected final String TEXT_89 = " init()" + NL + "\t{" + NL + "\t\tif (isInited) return (";
109
  protected final String TEXT_89 = NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static ";
110
  protected final String TEXT_90 = ")";
110
  protected final String TEXT_90 = " init()" + NL + "\t{" + NL + "\t\tif (isInited) return (";
111
  protected final String TEXT_91 = ".Registry.INSTANCE.getEPackage(";
111
  protected final String TEXT_91 = ")";
112
  protected final String TEXT_92 = ".eNS_URI);" + NL + "" + NL + "\t\t// Obtain or create and register package" + NL + "\t\t";
112
  protected final String TEXT_92 = ".Registry.INSTANCE.getEPackage(";
113
  protected final String TEXT_93 = " the";
113
  protected final String TEXT_93 = ".eNS_URI);" + NL + "" + NL + "\t\t// Obtain or create and register package" + NL + "\t\t";
114
  protected final String TEXT_94 = " = (";
114
  protected final String TEXT_94 = " the";
115
  protected final String TEXT_95 = ")(";
115
  protected final String TEXT_95 = " = (";
116
  protected final String TEXT_96 = ".Registry.INSTANCE.get(eNS_URI) instanceof ";
116
  protected final String TEXT_96 = ")(";
117
  protected final String TEXT_97 = " ? ";
117
  protected final String TEXT_97 = ".Registry.INSTANCE.get(eNS_URI) instanceof ";
118
  protected final String TEXT_98 = ".Registry.INSTANCE.get(eNS_URI) : new ";
118
  protected final String TEXT_98 = " ? ";
119
  protected final String TEXT_99 = "());" + NL + "" + NL + "\t\tisInited = true;" + NL;
119
  protected final String TEXT_99 = ".Registry.INSTANCE.get(eNS_URI) : new ";
120
  protected final String TEXT_100 = NL + "\t\t// Initialize simple dependencies";
120
  protected final String TEXT_100 = "());" + NL + "" + NL + "\t\tisInited = true;" + NL;
121
  protected final String TEXT_101 = NL + "\t\t";
121
  protected final String TEXT_101 = NL + "\t\t// Initialize simple dependencies";
122
  protected final String TEXT_102 = ".eINSTANCE.eClass();";
122
  protected final String TEXT_102 = NL + "\t\t";
123
  protected final String TEXT_103 = NL;
123
  protected final String TEXT_103 = ".eINSTANCE.eClass();";
124
  protected final String TEXT_104 = NL + "\t\t// Obtain or create and register interdependencies";
124
  protected final String TEXT_104 = NL;
125
  protected final String TEXT_105 = NL + "\t\t";
125
  protected final String TEXT_105 = NL + "\t\t// Obtain or create and register interdependencies";
126
  protected final String TEXT_106 = " ";
126
  protected final String TEXT_106 = NL + "\t\t";
127
  protected final String TEXT_107 = " = (";
127
  protected final String TEXT_107 = " ";
128
  protected final String TEXT_108 = ")(";
128
  protected final String TEXT_108 = " = (";
129
  protected final String TEXT_109 = ".Registry.INSTANCE.getEPackage(";
129
  protected final String TEXT_109 = ")(";
130
  protected final String TEXT_110 = ".eNS_URI) instanceof ";
130
  protected final String TEXT_110 = ".Registry.INSTANCE.getEPackage(";
131
  protected final String TEXT_111 = " ? ";
131
  protected final String TEXT_111 = ".eNS_URI) instanceof ";
132
  protected final String TEXT_112 = ".Registry.INSTANCE.getEPackage(";
132
  protected final String TEXT_112 = " ? ";
133
  protected final String TEXT_113 = ".eNS_URI) : ";
133
  protected final String TEXT_113 = ".Registry.INSTANCE.getEPackage(";
134
  protected final String TEXT_114 = ".eINSTANCE);";
134
  protected final String TEXT_114 = ".eNS_URI) : ";
135
  protected final String TEXT_115 = NL;
135
  protected final String TEXT_115 = ".eINSTANCE);";
136
  protected final String TEXT_116 = NL + "\t\t// Load packages";
136
  protected final String TEXT_116 = NL;
137
  protected final String TEXT_117 = NL + "\t\tthe";
137
  protected final String TEXT_117 = NL + "\t\t// Load packages";
138
  protected final String TEXT_118 = ".loadPackage();";
138
  protected final String TEXT_118 = NL + "\t\tthe";
139
  protected final String TEXT_119 = NL + "\t\t";
139
  protected final String TEXT_119 = ".loadPackage();";
140
  protected final String TEXT_120 = ".loadPackage();";
140
  protected final String TEXT_120 = NL + "\t\t";
141
  protected final String TEXT_121 = NL;
141
  protected final String TEXT_121 = ".loadPackage();";
142
  protected final String TEXT_122 = NL + "\t\t// Create package meta-data objects";
142
  protected final String TEXT_122 = NL;
143
  protected final String TEXT_123 = NL + "\t\tthe";
143
  protected final String TEXT_123 = NL + "\t\t// Create package meta-data objects";
144
  protected final String TEXT_124 = ".createPackageContents();";
144
  protected final String TEXT_124 = NL + "\t\tthe";
145
  protected final String TEXT_125 = NL + "\t\t";
145
  protected final String TEXT_125 = ".createPackageContents();";
146
  protected final String TEXT_126 = ".createPackageContents();";
146
  protected final String TEXT_126 = NL + "\t\t";
147
  protected final String TEXT_127 = NL + NL + "\t\t// Initialize created meta-data";
147
  protected final String TEXT_127 = ".createPackageContents();";
148
  protected final String TEXT_128 = NL + "\t\tthe";
148
  protected final String TEXT_128 = NL + NL + "\t\t// Initialize created meta-data";
149
  protected final String TEXT_129 = ".initializePackageContents();";
149
  protected final String TEXT_129 = NL + "\t\tthe";
150
  protected final String TEXT_130 = NL + "\t\t";
150
  protected final String TEXT_130 = ".initializePackageContents();";
151
  protected final String TEXT_131 = ".initializePackageContents();";
151
  protected final String TEXT_131 = NL + "\t\t";
152
  protected final String TEXT_132 = NL;
152
  protected final String TEXT_132 = ".initializePackageContents();";
153
  protected final String TEXT_133 = NL + "\t\t// Fix loaded packages";
153
  protected final String TEXT_133 = NL;
154
  protected final String TEXT_134 = NL + "\t\tthe";
154
  protected final String TEXT_134 = NL + "\t\t// Fix loaded packages";
155
  protected final String TEXT_135 = ".fixPackageContents();";
155
  protected final String TEXT_135 = NL + "\t\tthe";
156
  protected final String TEXT_136 = NL + "\t\t";
156
  protected final String TEXT_136 = ".fixPackageContents();";
157
  protected final String TEXT_137 = ".fixPackageContents();";
157
  protected final String TEXT_137 = NL + "\t\t";
158
  protected final String TEXT_138 = NL;
158
  protected final String TEXT_138 = ".fixPackageContents();";
159
  protected final String TEXT_139 = NL + "\t\t// Register package validator" + NL + "\t\t";
159
  protected final String TEXT_139 = NL;
160
  protected final String TEXT_140 = ".Registry.INSTANCE.put" + NL + "\t\t\t(the";
160
  protected final String TEXT_140 = NL + "\t\t// Register package validator" + NL + "\t\t";
161
  protected final String TEXT_141 = ", " + NL + "\t\t\t new ";
161
  protected final String TEXT_141 = ".Registry.INSTANCE.put" + NL + "\t\t\t(the";
162
  protected final String TEXT_142 = ".Descriptor()" + NL + "\t\t\t {" + NL + "\t\t\t\t public ";
162
  protected final String TEXT_142 = ", " + NL + "\t\t\t new ";
163
  protected final String TEXT_143 = " getEValidator()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t return ";
163
  protected final String TEXT_143 = ".Descriptor()" + NL + "\t\t\t {" + NL + "\t\t\t\t public ";
164
  protected final String TEXT_144 = ".INSTANCE;" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL;
164
  protected final String TEXT_144 = " getEValidator()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t return ";
165
  protected final String TEXT_145 = NL + "\t\t// Mark meta-data to indicate it can't be changed" + NL + "\t\tthe";
165
  protected final String TEXT_145 = ".INSTANCE;" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL;
166
  protected final String TEXT_146 = ".freeze();" + NL;
166
  protected final String TEXT_146 = NL + "\t\t// Mark meta-data to indicate it can't be changed" + NL + "\t\tthe";
167
  protected final String TEXT_147 = NL + "\t\treturn the";
167
  protected final String TEXT_147 = ".freeze();" + NL;
168
  protected final String TEXT_148 = ";" + NL + "\t}" + NL;
168
  protected final String TEXT_148 = NL + "  " + NL + "\t\t// Update the registry and return the package" + NL + "\t\t";
169
  protected final String TEXT_149 = NL;
169
  protected final String TEXT_149 = ".Registry.INSTANCE.put(";
170
  protected final String TEXT_150 = NL + "\t/**";
170
  protected final String TEXT_150 = ".eNS_URI, the";
171
  protected final String TEXT_151 = NL + "\t * Returns the meta object for class '{@link ";
171
  protected final String TEXT_151 = ");" + NL + "\t\treturn the";
172
  protected final String TEXT_152 = " <em>";
172
  protected final String TEXT_152 = ";" + NL + "\t}" + NL;
173
  protected final String TEXT_153 = "</em>}'." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the meta object for class '<em>";
173
  protected final String TEXT_153 = NL;
174
  protected final String TEXT_154 = "</em>'." + NL + "\t * @see ";
174
  protected final String TEXT_154 = NL + "\t/**";
175
  protected final String TEXT_155 = NL + "\t * @model ";
175
  protected final String TEXT_155 = NL + "\t * Returns the meta object for class '{@link ";
176
  protected final String TEXT_156 = NL + "\t *        ";
176
  protected final String TEXT_156 = " <em>";
177
  protected final String TEXT_157 = NL + "\t * @model";
177
  protected final String TEXT_157 = "</em>}'." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the meta object for class '<em>";
178
  protected final String TEXT_158 = NL + "\t * Returns the meta object for enum '{@link ";
178
  protected final String TEXT_158 = "</em>'." + NL + "\t * @see ";
179
  protected final String TEXT_159 = " <em>";
179
  protected final String TEXT_159 = NL + "\t * @model ";
180
  protected final String TEXT_160 = "</em>}'." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the meta object for enum '<em>";
180
  protected final String TEXT_160 = NL + "\t *        ";
181
  protected final String TEXT_161 = "</em>'." + NL + "\t * @see ";
181
  protected final String TEXT_161 = NL + "\t * @model";
182
  protected final String TEXT_162 = NL + "\t * Returns the meta object for data type '<em>";
182
  protected final String TEXT_162 = NL + "\t * Returns the meta object for enum '{@link ";
183
  protected final String TEXT_163 = "</em>'.";
183
  protected final String TEXT_163 = " <em>";
184
  protected final String TEXT_164 = NL + "\t * Returns the meta object for data type '{@link ";
184
  protected final String TEXT_164 = "</em>}'." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the meta object for enum '<em>";
185
  protected final String TEXT_165 = " <em>";
185
  protected final String TEXT_165 = "</em>'." + NL + "\t * @see ";
186
  protected final String TEXT_166 = "</em>}'.";
186
  protected final String TEXT_166 = NL + "\t * Returns the meta object for data type '<em>";
187
  protected final String TEXT_167 = NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the meta object for data type '<em>";
187
  protected final String TEXT_167 = "</em>'.";
188
  protected final String TEXT_168 = "</em>'.";
188
  protected final String TEXT_168 = NL + "\t * Returns the meta object for data type '{@link ";
189
  protected final String TEXT_169 = NL + "\t * @see ";
189
  protected final String TEXT_169 = " <em>";
190
  protected final String TEXT_170 = NL + "\t * @model ";
190
  protected final String TEXT_170 = "</em>}'.";
191
  protected final String TEXT_171 = NL + "\t *        ";
191
  protected final String TEXT_171 = NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the meta object for data type '<em>";
192
  protected final String TEXT_172 = NL + "\t * @model";
192
  protected final String TEXT_172 = "</em>'.";
193
  protected final String TEXT_173 = NL + "\t * @generated" + NL + "\t */";
193
  protected final String TEXT_173 = NL + "\t * @see ";
194
  protected final String TEXT_174 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
194
  protected final String TEXT_174 = NL + "\t * @model ";
195
  protected final String TEXT_175 = NL + "\tpublic ";
195
  protected final String TEXT_175 = NL + "\t *        ";
196
  protected final String TEXT_176 = " get";
196
  protected final String TEXT_176 = NL + "\t * @model";
197
  protected final String TEXT_177 = "()" + NL + "\t{";
197
  protected final String TEXT_177 = NL + "\t * @generated" + NL + "\t */";
198
  protected final String TEXT_178 = NL + "\t\tif (";
198
  protected final String TEXT_178 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
199
  protected final String TEXT_179 = " == null)" + NL + "\t\t{" + NL + "\t\t\t";
199
  protected final String TEXT_179 = NL + "\tpublic ";
200
  protected final String TEXT_180 = " = (";
200
  protected final String TEXT_180 = " get";
201
  protected final String TEXT_181 = ")";
201
  protected final String TEXT_181 = "()" + NL + "\t{";
202
  protected final String TEXT_182 = ".Registry.INSTANCE.getEPackage(";
202
  protected final String TEXT_182 = NL + "\t\tif (";
203
  protected final String TEXT_183 = ".eNS_URI).getEClassifiers().get(";
203
  protected final String TEXT_183 = " == null)" + NL + "\t\t{" + NL + "\t\t\t";
204
  protected final String TEXT_184 = ");" + NL + "\t\t}";
204
  protected final String TEXT_184 = " = (";
205
  protected final String TEXT_185 = NL + "\t\treturn ";
205
  protected final String TEXT_185 = ")";
206
  protected final String TEXT_186 = ";" + NL + "\t}" + NL;
206
  protected final String TEXT_186 = ".Registry.INSTANCE.getEPackage(";
207
  protected final String TEXT_187 = NL + "\t";
207
  protected final String TEXT_187 = ".eNS_URI).getEClassifiers().get(";
208
  protected final String TEXT_188 = " get";
208
  protected final String TEXT_188 = ");" + NL + "\t\t}";
209
  protected final String TEXT_189 = "();" + NL;
209
  protected final String TEXT_189 = NL + "\t\treturn ";
210
  protected final String TEXT_190 = NL + "\t/**" + NL + "\t * Returns the meta object for the ";
210
  protected final String TEXT_190 = ";" + NL + "\t}" + NL;
211
  protected final String TEXT_191 = " '{@link ";
211
  protected final String TEXT_191 = NL + "\t";
212
  protected final String TEXT_192 = "#";
212
  protected final String TEXT_192 = " get";
213
  protected final String TEXT_193 = " <em>";
213
  protected final String TEXT_193 = "();" + NL;
214
  protected final String TEXT_194 = "</em>}'." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the meta object for the ";
214
  protected final String TEXT_194 = NL + "\t/**" + NL + "\t * Returns the meta object for the ";
215
  protected final String TEXT_195 = " '<em>";
215
  protected final String TEXT_195 = " '{@link ";
216
  protected final String TEXT_196 = "</em>'." + NL + "\t * @see ";
216
  protected final String TEXT_196 = "#";
217
  protected final String TEXT_197 = "#";
217
  protected final String TEXT_197 = " <em>";
218
  protected final String TEXT_198 = "()";
218
  protected final String TEXT_198 = "</em>}'." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the meta object for the ";
219
  protected final String TEXT_199 = NL + "\t * @see #get";
219
  protected final String TEXT_199 = " '<em>";
220
  protected final String TEXT_200 = "()" + NL + "\t * @generated" + NL + "\t */";
220
  protected final String TEXT_200 = "</em>'." + NL + "\t * @see ";
221
  protected final String TEXT_201 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
221
  protected final String TEXT_201 = "#";
222
  protected final String TEXT_202 = NL + "\tpublic ";
222
  protected final String TEXT_202 = "()";
223
  protected final String TEXT_203 = " get";
223
  protected final String TEXT_203 = NL + "\t * @see #get";
224
  protected final String TEXT_204 = "()" + NL + "\t{";
224
  protected final String TEXT_204 = "()" + NL + "\t * @generated" + NL + "\t */";
225
  protected final String TEXT_205 = NL + "\t\treturn (";
225
  protected final String TEXT_205 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
226
  protected final String TEXT_206 = ")";
226
  protected final String TEXT_206 = NL + "\tpublic ";
227
  protected final String TEXT_207 = ".getEStructuralFeatures().get(";
227
  protected final String TEXT_207 = " get";
228
  protected final String TEXT_208 = ");";
228
  protected final String TEXT_208 = "()" + NL + "\t{";
229
  protected final String TEXT_209 = NL + "        return (";
229
  protected final String TEXT_209 = NL + "\t\treturn (";
230
  protected final String TEXT_210 = ")get";
230
  protected final String TEXT_210 = ")";
231
  protected final String TEXT_211 = "().getEStructuralFeatures().get(";
231
  protected final String TEXT_211 = ".getEStructuralFeatures().get(";
232
  protected final String TEXT_212 = ");";
232
  protected final String TEXT_212 = ");";
233
  protected final String TEXT_213 = NL + "\t}";
233
  protected final String TEXT_213 = NL + "        return (";
234
  protected final String TEXT_214 = NL + "\t";
234
  protected final String TEXT_214 = ")get";
235
  protected final String TEXT_215 = " get";
235
  protected final String TEXT_215 = "().getEStructuralFeatures().get(";
236
  protected final String TEXT_216 = "();";
236
  protected final String TEXT_216 = ");";
237
  protected final String TEXT_217 = NL;
237
  protected final String TEXT_217 = NL + "\t}";
238
  protected final String TEXT_218 = NL + "\t/**" + NL + "\t * Returns the factory that creates the instances of the model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the factory that creates the instances of the model." + NL + "\t * @generated" + NL + "\t */";
238
  protected final String TEXT_218 = NL + "\t";
239
  protected final String TEXT_219 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
239
  protected final String TEXT_219 = " get";
240
  protected final String TEXT_220 = NL + "\tpublic ";
240
  protected final String TEXT_220 = "();";
241
  protected final String TEXT_221 = " get";
241
  protected final String TEXT_221 = NL;
242
  protected final String TEXT_222 = "()" + NL + "\t{" + NL + "\t\treturn (";
242
  protected final String TEXT_222 = NL + "\t/**" + NL + "\t * Returns the factory that creates the instances of the model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the factory that creates the instances of the model." + NL + "\t * @generated" + NL + "\t */";
243
  protected final String TEXT_223 = ")getEFactoryInstance();" + NL + "\t}";
243
  protected final String TEXT_223 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
244
  protected final String TEXT_224 = NL + "\t";
244
  protected final String TEXT_224 = NL + "\tpublic ";
245
  protected final String TEXT_225 = " get";
245
  protected final String TEXT_225 = " get";
246
  protected final String TEXT_226 = "();";
246
  protected final String TEXT_226 = "()" + NL + "\t{" + NL + "\t\treturn (";
247
  protected final String TEXT_227 = NL;
247
  protected final String TEXT_227 = ")getEFactoryInstance();" + NL + "\t}";
248
  protected final String TEXT_228 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean isCreated = false;" + NL + "" + NL + "\t/**" + NL + "\t * Creates the meta-model objects for the package.  This method is" + NL + "\t * guarded to have no affect on any invocation but its first." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void createPackageContents()" + NL + "\t{" + NL + "\t\tif (isCreated) return;" + NL + "\t\tisCreated = true;";
248
  protected final String TEXT_228 = NL + "\t";
249
  protected final String TEXT_229 = NL + NL + "\t\t// Create classes and their features";
249
  protected final String TEXT_229 = " get";
250
  protected final String TEXT_230 = NL + "\t\t";
250
  protected final String TEXT_230 = "();";
251
  protected final String TEXT_231 = " = create";
251
  protected final String TEXT_231 = NL;
252
  protected final String TEXT_232 = "(";
252
  protected final String TEXT_232 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean isCreated = false;" + NL + "" + NL + "\t/**" + NL + "\t * Creates the meta-model objects for the package.  This method is" + NL + "\t * guarded to have no affect on any invocation but its first." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void createPackageContents()" + NL + "\t{" + NL + "\t\tif (isCreated) return;" + NL + "\t\tisCreated = true;";
253
  protected final String TEXT_233 = ");";
253
  protected final String TEXT_233 = NL + NL + "\t\t// Create classes and their features";
254
  protected final String TEXT_234 = NL + "\t\tcreate";
254
  protected final String TEXT_234 = NL + "\t\t";
255
  protected final String TEXT_235 = "(";
255
  protected final String TEXT_235 = " = create";
256
  protected final String TEXT_236 = ", ";
256
  protected final String TEXT_236 = "(";
257
  protected final String TEXT_237 = ");";
257
  protected final String TEXT_237 = ");";
258
  protected final String TEXT_238 = NL;
258
  protected final String TEXT_238 = NL + "\t\tcreate";
259
  protected final String TEXT_239 = NL + NL + "\t\t// Create enums";
259
  protected final String TEXT_239 = "(";
260
  protected final String TEXT_240 = NL + "\t\t";
260
  protected final String TEXT_240 = ", ";
261
  protected final String TEXT_241 = " = createEEnum(";
261
  protected final String TEXT_241 = ");";
262
  protected final String TEXT_242 = ");";
262
  protected final String TEXT_242 = NL;
263
  protected final String TEXT_243 = NL + NL + "\t\t// Create data types";
263
  protected final String TEXT_243 = NL + NL + "\t\t// Create enums";
264
  protected final String TEXT_244 = NL + "\t\t";
264
  protected final String TEXT_244 = NL + "\t\t";
265
  protected final String TEXT_245 = " = createEDataType(";
265
  protected final String TEXT_245 = " = createEEnum(";
266
  protected final String TEXT_246 = ");";
266
  protected final String TEXT_246 = ");";
267
  protected final String TEXT_247 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean isInitialized = false;" + NL;
267
  protected final String TEXT_247 = NL + NL + "\t\t// Create data types";
268
  protected final String TEXT_248 = NL + "\t/**" + NL + "\t * Complete the initialization of the package and its meta-model.  This" + NL + "\t * method is guarded to have no affect on any invocation but its first." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void initializePackageContents()" + NL + "\t{" + NL + "\t\tif (isInitialized) return;" + NL + "\t\tisInitialized = true;" + NL + "" + NL + "\t\t// Initialize package" + NL + "\t\tsetName(eNAME);" + NL + "\t\tsetNsPrefix(eNS_PREFIX);" + NL + "\t\tsetNsURI(eNS_URI);";
268
  protected final String TEXT_248 = NL + "\t\t";
269
  protected final String TEXT_249 = NL + NL + "\t\t// Obtain other dependent packages";
269
  protected final String TEXT_249 = " = createEDataType(";
270
  protected final String TEXT_250 = NL + "\t\t";
270
  protected final String TEXT_250 = ");";
271
  protected final String TEXT_251 = " ";
271
  protected final String TEXT_251 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean isInitialized = false;" + NL;
272
  protected final String TEXT_252 = " = (";
272
  protected final String TEXT_252 = NL + "\t/**" + NL + "\t * Complete the initialization of the package and its meta-model.  This" + NL + "\t * method is guarded to have no affect on any invocation but its first." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void initializePackageContents()" + NL + "\t{" + NL + "\t\tif (isInitialized) return;" + NL + "\t\tisInitialized = true;" + NL + "" + NL + "\t\t// Initialize package" + NL + "\t\tsetName(eNAME);" + NL + "\t\tsetNsPrefix(eNS_PREFIX);" + NL + "\t\tsetNsURI(eNS_URI);";
273
  protected final String TEXT_253 = ")";
273
  protected final String TEXT_253 = NL + NL + "\t\t// Obtain other dependent packages";
274
  protected final String TEXT_254 = ".Registry.INSTANCE.getEPackage(";
274
  protected final String TEXT_254 = NL + "\t\t";
275
  protected final String TEXT_255 = ".eNS_URI);";
275
  protected final String TEXT_255 = " ";
276
  protected final String TEXT_256 = NL + NL + "\t\t// Add subpackages";
276
  protected final String TEXT_256 = " = (";
277
  protected final String TEXT_257 = NL + "\t\tgetESubpackages().add(";
277
  protected final String TEXT_257 = ")";
278
  protected final String TEXT_258 = ");";
278
  protected final String TEXT_258 = ".Registry.INSTANCE.getEPackage(";
279
  protected final String TEXT_259 = NL + NL + "\t\t// Create type parameters";
279
  protected final String TEXT_259 = ".eNS_URI);";
280
  protected final String TEXT_260 = NL + "\t\t";
280
  protected final String TEXT_260 = NL + NL + "\t\t// Add subpackages";
281
  protected final String TEXT_261 = " ";
281
  protected final String TEXT_261 = NL + "\t\tgetESubpackages().add(";
282
  protected final String TEXT_262 = "_";
282
  protected final String TEXT_262 = ");";
283
  protected final String TEXT_263 = " = addETypeParameter(";
283
  protected final String TEXT_263 = NL + NL + "\t\t// Create type parameters";
284
  protected final String TEXT_264 = ", \"";
284
  protected final String TEXT_264 = NL + "\t\t";
285
  protected final String TEXT_265 = "\");";
285
  protected final String TEXT_265 = " ";
286
  protected final String TEXT_266 = NL + "\t\taddETypeParameter(";
286
  protected final String TEXT_266 = "_";
287
  protected final String TEXT_267 = ", \"";
287
  protected final String TEXT_267 = " = addETypeParameter(";
288
  protected final String TEXT_268 = "\");";
288
  protected final String TEXT_268 = ", \"";
289
  protected final String TEXT_269 = NL + NL + "\t\t// Set bounds for type parameters";
289
  protected final String TEXT_269 = "\");";
290
  protected final String TEXT_270 = NL + "\t\t";
290
  protected final String TEXT_270 = NL + "\t\taddETypeParameter(";
291
  protected final String TEXT_271 = "g";
291
  protected final String TEXT_271 = ", \"";
292
  protected final String TEXT_272 = " = createEGenericType(";
292
  protected final String TEXT_272 = "\");";
293
  protected final String TEXT_273 = ");";
293
  protected final String TEXT_273 = NL + NL + "\t\t// Set bounds for type parameters";
294
  protected final String TEXT_274 = NL + "\t\tg";
294
  protected final String TEXT_274 = NL + "\t\t";
295
  protected final String TEXT_275 = ".";
295
  protected final String TEXT_275 = "g";
296
  protected final String TEXT_276 = "(g";
296
  protected final String TEXT_276 = " = createEGenericType(";
297
  protected final String TEXT_277 = ");";
297
  protected final String TEXT_277 = ");";
298
  protected final String TEXT_278 = NL + "\t\t";
298
  protected final String TEXT_278 = NL + "\t\tg";
299
  protected final String TEXT_279 = "_";
299
  protected final String TEXT_279 = ".";
300
  protected final String TEXT_280 = ".getEBounds().add(g1);";
300
  protected final String TEXT_280 = "(g";
301
  protected final String TEXT_281 = NL + NL + "\t\t// Add supertypes to classes";
301
  protected final String TEXT_281 = ");";
302
  protected final String TEXT_282 = NL + "\t\t";
302
  protected final String TEXT_282 = NL + "\t\t";
303
  protected final String TEXT_283 = ".getESuperTypes().add(";
303
  protected final String TEXT_283 = "_";
304
  protected final String TEXT_284 = ".get";
304
  protected final String TEXT_284 = ".getEBounds().add(g1);";
305
  protected final String TEXT_285 = "());";
305
  protected final String TEXT_285 = NL + NL + "\t\t// Add supertypes to classes";
306
  protected final String TEXT_286 = NL + "\t\t";
306
  protected final String TEXT_286 = NL + "\t\t";
307
  protected final String TEXT_287 = "g";
307
  protected final String TEXT_287 = ".getESuperTypes().add(";
308
  protected final String TEXT_288 = " = createEGenericType(";
308
  protected final String TEXT_288 = ".get";
309
  protected final String TEXT_289 = ");";
309
  protected final String TEXT_289 = "());";
310
  protected final String TEXT_290 = NL + "\t\tg";
310
  protected final String TEXT_290 = NL + "\t\t";
311
  protected final String TEXT_291 = ".";
311
  protected final String TEXT_291 = "g";
312
  protected final String TEXT_292 = "(g";
312
  protected final String TEXT_292 = " = createEGenericType(";
313
  protected final String TEXT_293 = ");";
313
  protected final String TEXT_293 = ");";
314
  protected final String TEXT_294 = NL + "\t\t";
314
  protected final String TEXT_294 = NL + "\t\tg";
315
  protected final String TEXT_295 = ".getEGenericSuperTypes().add(g1);";
315
  protected final String TEXT_295 = ".";
316
  protected final String TEXT_296 = NL + NL + "\t\t// Initialize classes and features; add operations and parameters";
316
  protected final String TEXT_296 = "(g";
317
  protected final String TEXT_297 = NL + "\t\tinitEClass(";
317
  protected final String TEXT_297 = ");";
318
  protected final String TEXT_298 = ", ";
318
  protected final String TEXT_298 = NL + "\t\t";
319
  protected final String TEXT_299 = "null";
319
  protected final String TEXT_299 = ".getEGenericSuperTypes().add(g1);";
320
  protected final String TEXT_300 = ".class";
320
  protected final String TEXT_300 = NL + NL + "\t\t// Initialize classes and features; add operations and parameters";
321
  protected final String TEXT_301 = ", \"";
321
  protected final String TEXT_301 = NL + "\t\tinitEClass(";
322
  protected final String TEXT_302 = "\", ";
322
  protected final String TEXT_302 = ", ";
323
  protected final String TEXT_303 = ", ";
323
  protected final String TEXT_303 = "null";
324
  protected final String TEXT_304 = ", ";
324
  protected final String TEXT_304 = ".class";
325
  protected final String TEXT_305 = ", \"";
325
  protected final String TEXT_305 = ", \"";
326
  protected final String TEXT_306 = "\"";
326
  protected final String TEXT_306 = "\", ";
327
  protected final String TEXT_307 = ");";
327
  protected final String TEXT_307 = ", ";
328
  protected final String TEXT_308 = NL + "\t\t";
328
  protected final String TEXT_308 = ", ";
329
  protected final String TEXT_309 = "g";
329
  protected final String TEXT_309 = ", \"";
330
  protected final String TEXT_310 = " = createEGenericType(";
330
  protected final String TEXT_310 = "\"";
331
  protected final String TEXT_311 = ");";
331
  protected final String TEXT_311 = ");";
332
  protected final String TEXT_312 = NL + "\t\tg";
332
  protected final String TEXT_312 = NL + "\t\t";
333
  protected final String TEXT_313 = ".";
333
  protected final String TEXT_313 = "g";
334
  protected final String TEXT_314 = "(g";
334
  protected final String TEXT_314 = " = createEGenericType(";
335
  protected final String TEXT_315 = ");";
335
  protected final String TEXT_315 = ");";
336
  protected final String TEXT_316 = NL + "\t\tinitEReference(get";
336
  protected final String TEXT_316 = NL + "\t\tg";
337
  protected final String TEXT_317 = "(), ";
337
  protected final String TEXT_317 = ".";
338
  protected final String TEXT_318 = "g1";
338
  protected final String TEXT_318 = "(g";
339
  protected final String TEXT_319 = ".get";
339
  protected final String TEXT_319 = ");";
340
  protected final String TEXT_320 = "()";
340
  protected final String TEXT_320 = NL + "\t\tinitEReference(get";
341
  protected final String TEXT_321 = ", ";
341
  protected final String TEXT_321 = "(), ";
342
  protected final String TEXT_322 = ", \"";
342
  protected final String TEXT_322 = "g1";
343
  protected final String TEXT_323 = "\", ";
343
  protected final String TEXT_323 = ".get";
344
  protected final String TEXT_324 = ", ";
344
  protected final String TEXT_324 = "()";
345
  protected final String TEXT_325 = ", ";
345
  protected final String TEXT_325 = ", ";
346
  protected final String TEXT_326 = ", ";
346
  protected final String TEXT_326 = ", \"";
347
  protected final String TEXT_327 = ", ";
347
  protected final String TEXT_327 = "\", ";
348
  protected final String TEXT_328 = ", ";
348
  protected final String TEXT_328 = ", ";
349
  protected final String TEXT_329 = ", ";
349
  protected final String TEXT_329 = ", ";
350
  protected final String TEXT_330 = ", ";
350
  protected final String TEXT_330 = ", ";
Lines 353-374 Link Here
353
  protected final String TEXT_333 = ", ";
353
  protected final String TEXT_333 = ", ";
354
  protected final String TEXT_334 = ", ";
354
  protected final String TEXT_334 = ", ";
355
  protected final String TEXT_335 = ", ";
355
  protected final String TEXT_335 = ", ";
356
  protected final String TEXT_336 = ");";
356
  protected final String TEXT_336 = ", ";
357
  protected final String TEXT_337 = NL + "\t\tget";
357
  protected final String TEXT_337 = ", ";
358
  protected final String TEXT_338 = "().getEKeys().add(";
358
  protected final String TEXT_338 = ", ";
359
  protected final String TEXT_339 = ".get";
359
  protected final String TEXT_339 = ", ";
360
  protected final String TEXT_340 = "());";
360
  protected final String TEXT_340 = ");";
361
  protected final String TEXT_341 = NL + "\t\tinitEAttribute(get";
361
  protected final String TEXT_341 = NL + "\t\tget";
362
  protected final String TEXT_342 = "(), ";
362
  protected final String TEXT_342 = "().getEKeys().add(";
363
  protected final String TEXT_343 = "g1";
363
  protected final String TEXT_343 = ".get";
364
  protected final String TEXT_344 = ".get";
364
  protected final String TEXT_344 = "());";
365
  protected final String TEXT_345 = "()";
365
  protected final String TEXT_345 = NL + "\t\tinitEAttribute(get";
366
  protected final String TEXT_346 = ", \"";
366
  protected final String TEXT_346 = "(), ";
367
  protected final String TEXT_347 = "\", ";
367
  protected final String TEXT_347 = "g1";
368
  protected final String TEXT_348 = ", ";
368
  protected final String TEXT_348 = ".get";
369
  protected final String TEXT_349 = ", ";
369
  protected final String TEXT_349 = "()";
370
  protected final String TEXT_350 = ", ";
370
  protected final String TEXT_350 = ", \"";
371
  protected final String TEXT_351 = ", ";
371
  protected final String TEXT_351 = "\", ";
372
  protected final String TEXT_352 = ", ";
372
  protected final String TEXT_352 = ", ";
373
  protected final String TEXT_353 = ", ";
373
  protected final String TEXT_353 = ", ";
374
  protected final String TEXT_354 = ", ";
374
  protected final String TEXT_354 = ", ";
Lines 376-624 Link Here
376
  protected final String TEXT_356 = ", ";
376
  protected final String TEXT_356 = ", ";
377
  protected final String TEXT_357 = ", ";
377
  protected final String TEXT_357 = ", ";
378
  protected final String TEXT_358 = ", ";
378
  protected final String TEXT_358 = ", ";
379
  protected final String TEXT_359 = ");";
379
  protected final String TEXT_359 = ", ";
380
  protected final String TEXT_360 = NL;
380
  protected final String TEXT_360 = ", ";
381
  protected final String TEXT_361 = NL + "\t\t";
381
  protected final String TEXT_361 = ", ";
382
  protected final String TEXT_362 = "addEOperation(";
382
  protected final String TEXT_362 = ", ";
383
  protected final String TEXT_363 = ", ";
383
  protected final String TEXT_363 = ");";
384
  protected final String TEXT_364 = "null";
384
  protected final String TEXT_364 = NL;
385
  protected final String TEXT_365 = ".get";
385
  protected final String TEXT_365 = NL + "\t\t";
386
  protected final String TEXT_366 = "()";
386
  protected final String TEXT_366 = "addEOperation(";
387
  protected final String TEXT_367 = ", \"";
387
  protected final String TEXT_367 = ", ";
388
  protected final String TEXT_368 = "\", ";
388
  protected final String TEXT_368 = "null";
389
  protected final String TEXT_369 = ", ";
389
  protected final String TEXT_369 = ".get";
390
  protected final String TEXT_370 = ", ";
390
  protected final String TEXT_370 = "()";
391
  protected final String TEXT_371 = ", ";
391
  protected final String TEXT_371 = ", \"";
392
  protected final String TEXT_372 = ");";
392
  protected final String TEXT_372 = "\", ";
393
  protected final String TEXT_373 = NL + "\t\t";
393
  protected final String TEXT_373 = ", ";
394
  protected final String TEXT_374 = "addEOperation(";
394
  protected final String TEXT_374 = ", ";
395
  protected final String TEXT_375 = ", ";
395
  protected final String TEXT_375 = ", ";
396
  protected final String TEXT_376 = ".get";
396
  protected final String TEXT_376 = ");";
397
  protected final String TEXT_377 = "(), \"";
397
  protected final String TEXT_377 = NL + "\t\t";
398
  protected final String TEXT_378 = "\", ";
398
  protected final String TEXT_378 = "addEOperation(";
399
  protected final String TEXT_379 = ", ";
399
  protected final String TEXT_379 = ", ";
400
  protected final String TEXT_380 = ", ";
400
  protected final String TEXT_380 = ".get";
401
  protected final String TEXT_381 = ", ";
401
  protected final String TEXT_381 = "(), \"";
402
  protected final String TEXT_382 = ");";
402
  protected final String TEXT_382 = "\", ";
403
  protected final String TEXT_383 = NL + "\t\t";
403
  protected final String TEXT_383 = ", ";
404
  protected final String TEXT_384 = "addEOperation(";
404
  protected final String TEXT_384 = ", ";
405
  protected final String TEXT_385 = ", ";
405
  protected final String TEXT_385 = ", ";
406
  protected final String TEXT_386 = ".get";
406
  protected final String TEXT_386 = ");";
407
  protected final String TEXT_387 = "(), \"";
407
  protected final String TEXT_387 = NL + "\t\t";
408
  protected final String TEXT_388 = "\", ";
408
  protected final String TEXT_388 = "addEOperation(";
409
  protected final String TEXT_389 = ", ";
409
  protected final String TEXT_389 = ", ";
410
  protected final String TEXT_390 = ");";
410
  protected final String TEXT_390 = ".get";
411
  protected final String TEXT_391 = NL + "\t\t";
411
  protected final String TEXT_391 = "(), \"";
412
  protected final String TEXT_392 = "addEOperation(";
412
  protected final String TEXT_392 = "\", ";
413
  protected final String TEXT_393 = ", null, \"";
413
  protected final String TEXT_393 = ", ";
414
  protected final String TEXT_394 = "\");";
414
  protected final String TEXT_394 = ");";
415
  protected final String TEXT_395 = NL + "\t\t";
415
  protected final String TEXT_395 = NL + "\t\t";
416
  protected final String TEXT_396 = "addETypeParameter(op, \"";
416
  protected final String TEXT_396 = "addEOperation(";
417
  protected final String TEXT_397 = "\");";
417
  protected final String TEXT_397 = ", null, \"";
418
  protected final String TEXT_398 = NL + "\t\t";
418
  protected final String TEXT_398 = "\");";
419
  protected final String TEXT_399 = "g";
419
  protected final String TEXT_399 = NL + "\t\t";
420
  protected final String TEXT_400 = " = createEGenericType(";
420
  protected final String TEXT_400 = "addETypeParameter(op, \"";
421
  protected final String TEXT_401 = ");";
421
  protected final String TEXT_401 = "\");";
422
  protected final String TEXT_402 = NL + "\t\tg";
422
  protected final String TEXT_402 = NL + "\t\t";
423
  protected final String TEXT_403 = ".";
423
  protected final String TEXT_403 = "g";
424
  protected final String TEXT_404 = "(g";
424
  protected final String TEXT_404 = " = createEGenericType(";
425
  protected final String TEXT_405 = ");";
425
  protected final String TEXT_405 = ");";
426
  protected final String TEXT_406 = NL + "\t\tt";
426
  protected final String TEXT_406 = NL + "\t\tg";
427
  protected final String TEXT_407 = ".getEBounds().add(g1);";
427
  protected final String TEXT_407 = ".";
428
  protected final String TEXT_408 = NL + "\t\t";
428
  protected final String TEXT_408 = "(g";
429
  protected final String TEXT_409 = "g";
429
  protected final String TEXT_409 = ");";
430
  protected final String TEXT_410 = " = createEGenericType(";
430
  protected final String TEXT_410 = NL + "\t\tt";
431
  protected final String TEXT_411 = ");";
431
  protected final String TEXT_411 = ".getEBounds().add(g1);";
432
  protected final String TEXT_412 = NL + "\t\tg";
432
  protected final String TEXT_412 = NL + "\t\t";
433
  protected final String TEXT_413 = ".";
433
  protected final String TEXT_413 = "g";
434
  protected final String TEXT_414 = "(g";
434
  protected final String TEXT_414 = " = createEGenericType(";
435
  protected final String TEXT_415 = ");";
435
  protected final String TEXT_415 = ");";
436
  protected final String TEXT_416 = NL + "\t\taddEParameter(op, ";
436
  protected final String TEXT_416 = NL + "\t\tg";
437
  protected final String TEXT_417 = "g1";
437
  protected final String TEXT_417 = ".";
438
  protected final String TEXT_418 = ".get";
438
  protected final String TEXT_418 = "(g";
439
  protected final String TEXT_419 = "()";
439
  protected final String TEXT_419 = ");";
440
  protected final String TEXT_420 = ", \"";
440
  protected final String TEXT_420 = NL + "\t\taddEParameter(op, ";
441
  protected final String TEXT_421 = "\", ";
441
  protected final String TEXT_421 = "g1";
442
  protected final String TEXT_422 = ", ";
442
  protected final String TEXT_422 = ".get";
443
  protected final String TEXT_423 = ", ";
443
  protected final String TEXT_423 = "()";
444
  protected final String TEXT_424 = ", ";
444
  protected final String TEXT_424 = ", \"";
445
  protected final String TEXT_425 = ");";
445
  protected final String TEXT_425 = "\", ";
446
  protected final String TEXT_426 = NL + "\t\taddEParameter(op, ";
446
  protected final String TEXT_426 = ", ";
447
  protected final String TEXT_427 = "g1";
447
  protected final String TEXT_427 = ", ";
448
  protected final String TEXT_428 = ".get";
448
  protected final String TEXT_428 = ", ";
449
  protected final String TEXT_429 = "()";
449
  protected final String TEXT_429 = ");";
450
  protected final String TEXT_430 = ", \"";
450
  protected final String TEXT_430 = NL + "\t\taddEParameter(op, ";
451
  protected final String TEXT_431 = "\", ";
451
  protected final String TEXT_431 = "g1";
452
  protected final String TEXT_432 = ", ";
452
  protected final String TEXT_432 = ".get";
453
  protected final String TEXT_433 = ", ";
453
  protected final String TEXT_433 = "()";
454
  protected final String TEXT_434 = ", ";
454
  protected final String TEXT_434 = ", \"";
455
  protected final String TEXT_435 = ");";
455
  protected final String TEXT_435 = "\", ";
456
  protected final String TEXT_436 = NL + "\t\taddEParameter(op, ";
456
  protected final String TEXT_436 = ", ";
457
  protected final String TEXT_437 = "g1";
457
  protected final String TEXT_437 = ", ";
458
  protected final String TEXT_438 = ".get";
458
  protected final String TEXT_438 = ", ";
459
  protected final String TEXT_439 = "()";
459
  protected final String TEXT_439 = ");";
460
  protected final String TEXT_440 = ", \"";
460
  protected final String TEXT_440 = NL + "\t\taddEParameter(op, ";
461
  protected final String TEXT_441 = "\", ";
461
  protected final String TEXT_441 = "g1";
462
  protected final String TEXT_442 = ", ";
462
  protected final String TEXT_442 = ".get";
463
  protected final String TEXT_443 = ");";
463
  protected final String TEXT_443 = "()";
464
  protected final String TEXT_444 = NL + "\t\t";
464
  protected final String TEXT_444 = ", \"";
465
  protected final String TEXT_445 = "g";
465
  protected final String TEXT_445 = "\", ";
466
  protected final String TEXT_446 = " = createEGenericType(";
466
  protected final String TEXT_446 = ", ";
467
  protected final String TEXT_447 = ");";
467
  protected final String TEXT_447 = ");";
468
  protected final String TEXT_448 = NL + "\t\tg";
468
  protected final String TEXT_448 = NL + "\t\t";
469
  protected final String TEXT_449 = ".";
469
  protected final String TEXT_449 = "g";
470
  protected final String TEXT_450 = "(g";
470
  protected final String TEXT_450 = " = createEGenericType(";
471
  protected final String TEXT_451 = ");";
471
  protected final String TEXT_451 = ");";
472
  protected final String TEXT_452 = NL + "\t\taddEException(op, g";
472
  protected final String TEXT_452 = NL + "\t\tg";
473
  protected final String TEXT_453 = ");";
473
  protected final String TEXT_453 = ".";
474
  protected final String TEXT_454 = NL + "\t\taddEException(op, ";
474
  protected final String TEXT_454 = "(g";
475
  protected final String TEXT_455 = ".get";
475
  protected final String TEXT_455 = ");";
476
  protected final String TEXT_456 = "());";
476
  protected final String TEXT_456 = NL + "\t\taddEException(op, g";
477
  protected final String TEXT_457 = NL + "\t\t";
477
  protected final String TEXT_457 = ");";
478
  protected final String TEXT_458 = "g";
478
  protected final String TEXT_458 = NL + "\t\taddEException(op, ";
479
  protected final String TEXT_459 = " = createEGenericType(";
479
  protected final String TEXT_459 = ".get";
480
  protected final String TEXT_460 = ");";
480
  protected final String TEXT_460 = "());";
481
  protected final String TEXT_461 = NL + "\t\tg";
481
  protected final String TEXT_461 = NL + "\t\t";
482
  protected final String TEXT_462 = ".";
482
  protected final String TEXT_462 = "g";
483
  protected final String TEXT_463 = "(g";
483
  protected final String TEXT_463 = " = createEGenericType(";
484
  protected final String TEXT_464 = ");";
484
  protected final String TEXT_464 = ");";
485
  protected final String TEXT_465 = NL + "\t\tinitEOperation(op, g1);";
485
  protected final String TEXT_465 = NL + "\t\tg";
486
  protected final String TEXT_466 = NL;
486
  protected final String TEXT_466 = ".";
487
  protected final String TEXT_467 = NL + NL + "\t\t// Initialize enums and add enum literals";
487
  protected final String TEXT_467 = "(g";
488
  protected final String TEXT_468 = NL + "\t\tinitEEnum(";
488
  protected final String TEXT_468 = ");";
489
  protected final String TEXT_469 = ", ";
489
  protected final String TEXT_469 = NL + "\t\tinitEOperation(op, g1);";
490
  protected final String TEXT_470 = ".class, \"";
490
  protected final String TEXT_470 = NL;
491
  protected final String TEXT_471 = "\");";
491
  protected final String TEXT_471 = NL + NL + "\t\t// Initialize enums and add enum literals";
492
  protected final String TEXT_472 = NL + "\t\taddEEnumLiteral(";
492
  protected final String TEXT_472 = NL + "\t\tinitEEnum(";
493
  protected final String TEXT_473 = ", ";
493
  protected final String TEXT_473 = ", ";
494
  protected final String TEXT_474 = ".";
494
  protected final String TEXT_474 = ".class, \"";
495
  protected final String TEXT_475 = ");";
495
  protected final String TEXT_475 = "\");";
496
  protected final String TEXT_476 = NL;
496
  protected final String TEXT_476 = NL + "\t\taddEEnumLiteral(";
497
  protected final String TEXT_477 = NL + NL + "\t\t// Initialize data types";
497
  protected final String TEXT_477 = ", ";
498
  protected final String TEXT_478 = NL + "\t\tinitEDataType(";
498
  protected final String TEXT_478 = ".";
499
  protected final String TEXT_479 = ", ";
499
  protected final String TEXT_479 = ");";
500
  protected final String TEXT_480 = ".class, \"";
500
  protected final String TEXT_480 = NL;
501
  protected final String TEXT_481 = "\", ";
501
  protected final String TEXT_481 = NL + NL + "\t\t// Initialize data types";
502
  protected final String TEXT_482 = ", ";
502
  protected final String TEXT_482 = NL + "\t\tinitEDataType(";
503
  protected final String TEXT_483 = ", \"";
503
  protected final String TEXT_483 = ", ";
504
  protected final String TEXT_484 = "\"";
504
  protected final String TEXT_484 = ".class, \"";
505
  protected final String TEXT_485 = ");";
505
  protected final String TEXT_485 = "\", ";
506
  protected final String TEXT_486 = NL + NL + "\t\t// Create resource" + NL + "\t\tcreateResource(eNS_URI);";
506
  protected final String TEXT_486 = ", ";
507
  protected final String TEXT_487 = NL + NL + "\t\t// Create annotations";
507
  protected final String TEXT_487 = ", \"";
508
  protected final String TEXT_488 = NL + "\t\t// ";
508
  protected final String TEXT_488 = "\"";
509
  protected final String TEXT_489 = NL + "\t\tcreate";
509
  protected final String TEXT_489 = ");";
510
  protected final String TEXT_490 = "Annotations();";
510
  protected final String TEXT_490 = NL + NL + "\t\t// Create resource" + NL + "\t\tcreateResource(eNS_URI);";
511
  protected final String TEXT_491 = NL + "\t}" + NL;
511
  protected final String TEXT_491 = NL + NL + "\t\t// Create annotations";
512
  protected final String TEXT_492 = NL + "\t/**" + NL + "\t * Initializes the annotations for <b>";
512
  protected final String TEXT_492 = NL + "\t\t// ";
513
  protected final String TEXT_493 = "</b>." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void create";
513
  protected final String TEXT_493 = NL + "\t\tcreate";
514
  protected final String TEXT_494 = "Annotations()" + NL + "\t{" + NL + "\t\tString source = ";
514
  protected final String TEXT_494 = "Annotations();";
515
  protected final String TEXT_495 = "null;";
515
  protected final String TEXT_495 = NL + "\t}" + NL;
516
  protected final String TEXT_496 = "\"";
516
  protected final String TEXT_496 = NL + "\t/**" + NL + "\t * Initializes the annotations for <b>";
517
  protected final String TEXT_497 = "\";";
517
  protected final String TEXT_497 = "</b>." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void create";
518
  protected final String TEXT_498 = "\t";
518
  protected final String TEXT_498 = "Annotations()" + NL + "\t{" + NL + "\t\tString source = ";
519
  protected final String TEXT_499 = "\t" + NL + "\t\taddAnnotation" + NL + "\t\t  (";
519
  protected final String TEXT_499 = "null;";
520
  protected final String TEXT_500 = ", " + NL + "\t\t   source, " + NL + "\t\t   new String[] " + NL + "\t\t   {";
520
  protected final String TEXT_500 = "\"";
521
  protected final String TEXT_501 = NL + "\t\t\t ";
521
  protected final String TEXT_501 = "\";";
522
  protected final String TEXT_502 = ", ";
522
  protected final String TEXT_502 = "\t";
523
  protected final String TEXT_503 = NL + "\t\t   }";
523
  protected final String TEXT_503 = "\t" + NL + "\t\taddAnnotation" + NL + "\t\t  (";
524
  protected final String TEXT_504 = ");";
524
  protected final String TEXT_504 = ", " + NL + "\t\t   source, " + NL + "\t\t   new String[] " + NL + "\t\t   {";
525
  protected final String TEXT_505 = ",";
525
  protected final String TEXT_505 = NL + "\t\t\t ";
526
  protected final String TEXT_506 = NL + "\t\t   new ";
526
  protected final String TEXT_506 = ", ";
527
  protected final String TEXT_507 = "[] " + NL + "\t\t   {";
527
  protected final String TEXT_507 = NL + "\t\t   }";
528
  protected final String TEXT_508 = NL + "\t\t\t ";
528
  protected final String TEXT_508 = ");";
529
  protected final String TEXT_509 = ".createURI(";
529
  protected final String TEXT_509 = ",";
530
  protected final String TEXT_510 = ".";
530
  protected final String TEXT_510 = NL + "\t\t   new ";
531
  protected final String TEXT_511 = "eNS_URI).appendFragment(\"";
531
  protected final String TEXT_511 = "[] " + NL + "\t\t   {";
532
  protected final String TEXT_512 = "\")";
532
  protected final String TEXT_512 = NL + "\t\t\t ";
533
  protected final String TEXT_513 = ",";
533
  protected final String TEXT_513 = ".createURI(";
534
  protected final String TEXT_514 = NL + "\t\t   });";
534
  protected final String TEXT_514 = ".";
535
  protected final String TEXT_515 = NL + "\t\taddAnnotation" + NL + "\t\t  (";
535
  protected final String TEXT_515 = "eNS_URI).appendFragment(\"";
536
  protected final String TEXT_516 = ", " + NL + "\t\t   ";
536
  protected final String TEXT_516 = "\")";
537
  protected final String TEXT_517 = "," + NL + "\t\t   ";
537
  protected final String TEXT_517 = ",";
538
  protected final String TEXT_518 = "null,";
538
  protected final String TEXT_518 = NL + "\t\t   });";
539
  protected final String TEXT_519 = "\"";
539
  protected final String TEXT_519 = NL + "\t\taddAnnotation" + NL + "\t\t  (";
540
  protected final String TEXT_520 = "\",";
540
  protected final String TEXT_520 = ", " + NL + "\t\t   ";
541
  protected final String TEXT_521 = NL + "\t\t   new String[] " + NL + "\t\t   {";
541
  protected final String TEXT_521 = "," + NL + "\t\t   ";
542
  protected final String TEXT_522 = NL + "\t\t\t ";
542
  protected final String TEXT_522 = "null,";
543
  protected final String TEXT_523 = ", ";
543
  protected final String TEXT_523 = "\"";
544
  protected final String TEXT_524 = NL + "\t\t   }";
544
  protected final String TEXT_524 = "\",";
545
  protected final String TEXT_525 = ");";
545
  protected final String TEXT_525 = NL + "\t\t   new String[] " + NL + "\t\t   {";
546
  protected final String TEXT_526 = ",";
546
  protected final String TEXT_526 = NL + "\t\t\t ";
547
  protected final String TEXT_527 = NL + "\t\t   new ";
547
  protected final String TEXT_527 = ", ";
548
  protected final String TEXT_528 = "[] " + NL + "\t\t   {";
548
  protected final String TEXT_528 = NL + "\t\t   }";
549
  protected final String TEXT_529 = NL + "\t\t\t ";
549
  protected final String TEXT_529 = ");";
550
  protected final String TEXT_530 = ".createURI(";
550
  protected final String TEXT_530 = ",";
551
  protected final String TEXT_531 = ".";
551
  protected final String TEXT_531 = NL + "\t\t   new ";
552
  protected final String TEXT_532 = "eNS_URI).appendFragment(\"";
552
  protected final String TEXT_532 = "[] " + NL + "\t\t   {";
553
  protected final String TEXT_533 = "\")";
553
  protected final String TEXT_533 = NL + "\t\t\t ";
554
  protected final String TEXT_534 = ",";
554
  protected final String TEXT_534 = ".createURI(";
555
  protected final String TEXT_535 = NL + "\t\t   });";
555
  protected final String TEXT_535 = ".";
556
  protected final String TEXT_536 = NL + "\t}" + NL;
556
  protected final String TEXT_536 = "eNS_URI).appendFragment(\"";
557
  protected final String TEXT_537 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean isLoaded = false;" + NL + "" + NL + "\t/**" + NL + "\t * Laods the package and any sub-packages from their serialized form." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void loadPackage()" + NL + "\t{" + NL + "\t\tif (isLoaded) return;" + NL + "\t\tisLoaded = true;" + NL + "" + NL + "\t\t";
557
  protected final String TEXT_537 = "\")";
558
  protected final String TEXT_538 = " url = getClass().getResource(packageFilename);" + NL + "\t\tif (url == null)" + NL + "\t\t{" + NL + "\t\t\tthrow new RuntimeException(\"Missing serialized package: \" + packageFilename);";
558
  protected final String TEXT_538 = ",";
559
  protected final String TEXT_539 = NL + "\t\t}" + NL + "\t\t";
559
  protected final String TEXT_539 = NL + "\t\t   });";
560
  protected final String TEXT_540 = " uri = ";
560
  protected final String TEXT_540 = NL + "\t}" + NL;
561
  protected final String TEXT_541 = ".createURI(url.toString());" + NL + "\t\t";
561
  protected final String TEXT_541 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean isLoaded = false;" + NL + "" + NL + "\t/**" + NL + "\t * Laods the package and any sub-packages from their serialized form." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void loadPackage()" + NL + "\t{" + NL + "\t\tif (isLoaded) return;" + NL + "\t\tisLoaded = true;" + NL + "" + NL + "\t\t";
562
  protected final String TEXT_542 = " resource = new ";
562
  protected final String TEXT_542 = " url = getClass().getResource(packageFilename);" + NL + "\t\tif (url == null)" + NL + "\t\t{" + NL + "\t\t\tthrow new RuntimeException(\"Missing serialized package: \" + packageFilename);";
563
  protected final String TEXT_543 = "().createResource(uri);" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tresource.load(null);" + NL + "\t\t}" + NL + "\t\tcatch (";
563
  protected final String TEXT_543 = NL + "\t\t}" + NL + "\t\t";
564
  protected final String TEXT_544 = " exception)" + NL + "\t\t{" + NL + "\t\t\tthrow new ";
564
  protected final String TEXT_544 = " uri = ";
565
  protected final String TEXT_545 = "(exception);" + NL + "\t\t}" + NL + "\t\tinitializeFromLoadedEPackage(this, (";
565
  protected final String TEXT_545 = ".createURI(url.toString());" + NL + "\t\t";
566
  protected final String TEXT_546 = ")resource.getContents().get(0));" + NL + "\t\tcreateResource(eNS_URI);" + NL + "\t}" + NL;
566
  protected final String TEXT_546 = " resource = new ";
567
  protected final String TEXT_547 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean isFixed = false;" + NL + "" + NL + "\t/**" + NL + "\t * Fixes up the loaded package, to make it appear as if it had been programmatically built." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void fixPackageContents()" + NL + "\t{" + NL + "\t\tif (isFixed) return;" + NL + "\t\tisFixed = true;" + NL + "\t\tfixEClassifiers();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Sets the instance class on the given classifier." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
567
  protected final String TEXT_547 = "().createResource(uri);" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tresource.load(null);" + NL + "\t\t}" + NL + "\t\tcatch (";
568
  protected final String TEXT_548 = NL + "\t@Override";
568
  protected final String TEXT_548 = " exception)" + NL + "\t\t{" + NL + "\t\t\tthrow new ";
569
  protected final String TEXT_549 = NL + "\tprotected void fixInstanceClass(";
569
  protected final String TEXT_549 = "(exception);" + NL + "\t\t}" + NL + "\t\tinitializeFromLoadedEPackage(this, (";
570
  protected final String TEXT_550 = " eClassifier)" + NL + "\t{" + NL + "\t\tif (eClassifier.getInstanceClassName() == null)" + NL + "\t\t{";
570
  protected final String TEXT_550 = ")resource.getContents().get(0));" + NL + "\t\tcreateResource(eNS_URI);" + NL + "\t}" + NL;
571
  protected final String TEXT_551 = NL + "\t\t\teClassifier.setInstanceClassName(\"";
571
  protected final String TEXT_551 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean isFixed = false;" + NL + "" + NL + "\t/**" + NL + "\t * Fixes up the loaded package, to make it appear as if it had been programmatically built." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void fixPackageContents()" + NL + "\t{" + NL + "\t\tif (isFixed) return;" + NL + "\t\tisFixed = true;" + NL + "\t\tfixEClassifiers();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Sets the instance class on the given classifier." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
572
  protected final String TEXT_552 = ".\" + eClassifier.getName());";
572
  protected final String TEXT_552 = NL + "\t@Override";
573
  protected final String TEXT_553 = NL + "\t\t\tsetGeneratedClassName(eClassifier);";
573
  protected final String TEXT_553 = NL + "\tprotected void fixInstanceClass(";
574
  protected final String TEXT_554 = NL + "\t\t\tswitch (eClassifier.getClassifierID())" + NL + "\t\t\t{";
574
  protected final String TEXT_554 = " eClassifier)" + NL + "\t{" + NL + "\t\tif (eClassifier.getInstanceClassName() == null)" + NL + "\t\t{";
575
  protected final String TEXT_555 = NL + "\t\t\t\tcase ";
575
  protected final String TEXT_555 = NL + "\t\t\teClassifier.setInstanceClassName(\"";
576
  protected final String TEXT_556 = ":";
576
  protected final String TEXT_556 = ".\" + eClassifier.getName());";
577
  protected final String TEXT_557 = NL + "\t\t\t\t{" + NL + "\t\t\t\t\tbreak;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tdefault:" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\teClassifier.setInstanceClassName(\"";
577
  protected final String TEXT_557 = NL + "\t\t\tsetGeneratedClassName(eClassifier);";
578
  protected final String TEXT_558 = ".\" + eClassifier.getName());";
578
  protected final String TEXT_558 = NL + "\t\t\tswitch (eClassifier.getClassifierID())" + NL + "\t\t\t{";
579
  protected final String TEXT_559 = NL + "\t\t\t\t\tsetGeneratedClassName(eClassifier);" + NL + "\t\t\t\t\tbreak;" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
579
  protected final String TEXT_559 = NL + "\t\t\t\tcase ";
580
  protected final String TEXT_560 = NL + "\t\t}" + NL + "\t}" + NL;
580
  protected final String TEXT_560 = ":";
581
  protected final String TEXT_561 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
581
  protected final String TEXT_561 = NL + "\t\t\t\t{" + NL + "\t\t\t\t\tbreak;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tdefault:" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\teClassifier.setInstanceClassName(\"";
582
  protected final String TEXT_562 = " addEOperation(";
582
  protected final String TEXT_562 = ".\" + eClassifier.getName());";
583
  protected final String TEXT_563 = " owner, ";
583
  protected final String TEXT_563 = NL + "\t\t\t\t\tsetGeneratedClassName(eClassifier);" + NL + "\t\t\t\t\tbreak;" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
584
  protected final String TEXT_564 = " type, String name, int lowerBound, int upperBound, boolean isUnique, boolean isOrdered)" + NL + "\t{" + NL + "\t\t";
584
  protected final String TEXT_564 = NL + "\t\t}" + NL + "\t}" + NL;
585
  protected final String TEXT_565 = " o = addEOperation(owner, type, name, lowerBound, upperBound);" + NL + "\t\to.setUnique(isUnique);" + NL + "\t\to.setOrdered(isOrdered);" + NL + "\t\treturn o;" + NL + "\t}" + NL + "\t";
585
  protected final String TEXT_565 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
586
  protected final String TEXT_566 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
586
  protected final String TEXT_566 = " addEOperation(";
587
  protected final String TEXT_567 = " addEParameter(";
587
  protected final String TEXT_567 = " owner, ";
588
  protected final String TEXT_568 = " owner, ";
588
  protected final String TEXT_568 = " type, String name, int lowerBound, int upperBound, boolean isUnique, boolean isOrdered)" + NL + "\t{" + NL + "\t\t";
589
  protected final String TEXT_569 = " type, String name, int lowerBound, int upperBound, boolean isUnique, boolean isOrdered)" + NL + "\t{" + NL + "\t\t";
589
  protected final String TEXT_569 = " o = addEOperation(owner, type, name, lowerBound, upperBound);" + NL + "\t\to.setUnique(isUnique);" + NL + "\t\to.setOrdered(isOrdered);" + NL + "\t\treturn o;" + NL + "\t}" + NL + "\t";
590
  protected final String TEXT_570 = " p = ecoreFactory.createEParameter();" + NL + "\t\tp.setEType(type);" + NL + "\t\tp.setName(name);" + NL + "\t\tp.setLowerBound(lowerBound);" + NL + "\t\tp.setUpperBound(upperBound);" + NL + "\t\tp.setUnique(isUnique);" + NL + "\t\tp.setOrdered(isOrdered);" + NL + "\t\towner.getEParameters().add(p);" + NL + "\t\treturn p;" + NL + "\t}" + NL + "\t";
590
  protected final String TEXT_570 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
591
  protected final String TEXT_571 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * Defines literals for the meta objects that represent" + NL + "\t * <ul>" + NL + "\t *   <li>each class,</li>" + NL + "\t *   <li>each feature of each class,</li>" + NL + "\t *   <li>each enum,</li>" + NL + "\t *   <li>and each data type</li>" + NL + "\t * </ul>" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t";
591
  protected final String TEXT_571 = " addEParameter(";
592
  protected final String TEXT_572 = "public ";
592
  protected final String TEXT_572 = " owner, ";
593
  protected final String TEXT_573 = "interface Literals" + NL + "\t{";
593
  protected final String TEXT_573 = " type, String name, int lowerBound, int upperBound, boolean isUnique, boolean isOrdered)" + NL + "\t{" + NL + "\t\t";
594
  protected final String TEXT_574 = NL + "\t\t/**";
594
  protected final String TEXT_574 = " p = ecoreFactory.createEParameter();" + NL + "\t\tp.setEType(type);" + NL + "\t\tp.setName(name);" + NL + "\t\tp.setLowerBound(lowerBound);" + NL + "\t\tp.setUpperBound(upperBound);" + NL + "\t\tp.setUnique(isUnique);" + NL + "\t\tp.setOrdered(isOrdered);" + NL + "\t\towner.getEParameters().add(p);" + NL + "\t\treturn p;" + NL + "\t}" + NL + "\t";
595
  protected final String TEXT_575 = NL + "\t\t * The meta object literal for the '{@link ";
595
  protected final String TEXT_575 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * Defines literals for the meta objects that represent" + NL + "\t * <ul>" + NL + "\t *   <li>each class,</li>" + NL + "\t *   <li>each feature of each class,</li>" + NL + "\t *   <li>each enum,</li>" + NL + "\t *   <li>and each data type</li>" + NL + "\t * </ul>" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t";
596
  protected final String TEXT_576 = " <em>";
596
  protected final String TEXT_576 = "public ";
597
  protected final String TEXT_577 = "</em>}' class." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @see ";
597
  protected final String TEXT_577 = "interface Literals" + NL + "\t{";
598
  protected final String TEXT_578 = NL + "\t\t * The meta object literal for the '{@link ";
598
  protected final String TEXT_578 = NL + "\t\t/**";
599
  protected final String TEXT_579 = " <em>";
599
  protected final String TEXT_579 = NL + "\t\t * The meta object literal for the '{@link ";
600
  protected final String TEXT_580 = "</em>}' class." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @see ";
600
  protected final String TEXT_580 = " <em>";
601
  protected final String TEXT_581 = NL + "\t\t * The meta object literal for the '{@link ";
601
  protected final String TEXT_581 = "</em>}' class." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @see ";
602
  protected final String TEXT_582 = " <em>";
602
  protected final String TEXT_582 = NL + "\t\t * The meta object literal for the '{@link ";
603
  protected final String TEXT_583 = "</em>}' enum." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @see ";
603
  protected final String TEXT_583 = " <em>";
604
  protected final String TEXT_584 = NL + "\t\t * The meta object literal for the '<em>";
604
  protected final String TEXT_584 = "</em>}' class." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @see ";
605
  protected final String TEXT_585 = "</em>' data type." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->";
605
  protected final String TEXT_585 = NL + "\t\t * The meta object literal for the '{@link ";
606
  protected final String TEXT_586 = NL + "\t\t * @see ";
606
  protected final String TEXT_586 = " <em>";
607
  protected final String TEXT_587 = NL + "\t\t * @see ";
607
  protected final String TEXT_587 = "</em>}' enum." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @see ";
608
  protected final String TEXT_588 = "#get";
608
  protected final String TEXT_588 = NL + "\t\t * The meta object literal for the '<em>";
609
  protected final String TEXT_589 = "()" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\t";
609
  protected final String TEXT_589 = "</em>' data type." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->";
610
  protected final String TEXT_590 = " ";
610
  protected final String TEXT_590 = NL + "\t\t * @see ";
611
  protected final String TEXT_591 = " = eINSTANCE.get";
611
  protected final String TEXT_591 = NL + "\t\t * @see ";
612
  protected final String TEXT_592 = "();" + NL;
612
  protected final String TEXT_592 = "#get";
613
  protected final String TEXT_593 = NL + "\t\t/**" + NL + "\t\t * The meta object literal for the '<em><b>";
613
  protected final String TEXT_593 = "()" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\t";
614
  protected final String TEXT_594 = "</b></em>' ";
614
  protected final String TEXT_594 = " ";
615
  protected final String TEXT_595 = " feature." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\t";
615
  protected final String TEXT_595 = " = eINSTANCE.get";
616
  protected final String TEXT_596 = " ";
616
  protected final String TEXT_596 = "();" + NL;
617
  protected final String TEXT_597 = " = eINSTANCE.get";
617
  protected final String TEXT_597 = NL + "\t\t/**" + NL + "\t\t * The meta object literal for the '<em><b>";
618
  protected final String TEXT_598 = "();" + NL;
618
  protected final String TEXT_598 = "</b></em>' ";
619
  protected final String TEXT_599 = NL + "\t}" + NL;
619
  protected final String TEXT_599 = " feature." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\t";
620
  protected final String TEXT_600 = NL + "} //";
620
  protected final String TEXT_600 = " ";
621
  protected final String TEXT_601 = NL;
621
  protected final String TEXT_601 = " = eINSTANCE.get";
622
  protected final String TEXT_602 = "();" + NL;
623
  protected final String TEXT_603 = NL + "\t}" + NL;
624
  protected final String TEXT_604 = NL + "} //";
625
  protected final String TEXT_605 = NL;
622
626
623
  public String generate(Object argument)
627
  public String generate(Object argument)
624
  {
628
  {
Lines 857-1230 Link Here
857
    stringBuffer.append(TEXT_85);
861
    stringBuffer.append(TEXT_85);
858
    stringBuffer.append(genPackage.getQualifiedEFactoryInstanceAccessor());
862
    stringBuffer.append(genPackage.getQualifiedEFactoryInstanceAccessor());
859
    stringBuffer.append(TEXT_86);
863
    stringBuffer.append(TEXT_86);
860
    if (!genPackage.isLoadedInitialization()) {
864
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
861
    stringBuffer.append(TEXT_87);
865
    stringBuffer.append(TEXT_87);
862
    }
866
    if (!genPackage.isLoadedInitialization()) {
863
    stringBuffer.append(TEXT_88);
867
    stringBuffer.append(TEXT_88);
864
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
868
    }
865
    stringBuffer.append(TEXT_89);
869
    stringBuffer.append(TEXT_89);
866
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
870
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
867
    stringBuffer.append(TEXT_90);
871
    stringBuffer.append(TEXT_90);
868
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
869
    stringBuffer.append(TEXT_91);
870
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
872
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
873
    stringBuffer.append(TEXT_91);
874
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
871
    stringBuffer.append(TEXT_92);
875
    stringBuffer.append(TEXT_92);
872
    stringBuffer.append(genPackage.getPackageClassName());
876
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
873
    stringBuffer.append(TEXT_93);
877
    stringBuffer.append(TEXT_93);
874
    stringBuffer.append(genPackage.getBasicPackageName());
875
    stringBuffer.append(TEXT_94);
876
    stringBuffer.append(genPackage.getPackageClassName());
878
    stringBuffer.append(genPackage.getPackageClassName());
879
    stringBuffer.append(TEXT_94);
880
    stringBuffer.append(genPackage.getBasicPackageName());
877
    stringBuffer.append(TEXT_95);
881
    stringBuffer.append(TEXT_95);
878
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
879
    stringBuffer.append(TEXT_96);
880
    stringBuffer.append(genPackage.getPackageClassName());
882
    stringBuffer.append(genPackage.getPackageClassName());
881
    stringBuffer.append(TEXT_97);
883
    stringBuffer.append(TEXT_96);
882
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
884
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
883
    stringBuffer.append(TEXT_98);
885
    stringBuffer.append(TEXT_97);
884
    stringBuffer.append(genPackage.getPackageClassName());
886
    stringBuffer.append(genPackage.getPackageClassName());
887
    stringBuffer.append(TEXT_98);
888
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
885
    stringBuffer.append(TEXT_99);
889
    stringBuffer.append(TEXT_99);
886
    if (!genPackage.getPackageSimpleDependencies().isEmpty()) {
890
    stringBuffer.append(genPackage.getPackageClassName());
887
    stringBuffer.append(TEXT_100);
891
    stringBuffer.append(TEXT_100);
888
    for (GenPackage dep : genPackage.getPackageSimpleDependencies()) {
892
    if (!genPackage.getPackageSimpleDependencies().isEmpty()) {
889
    stringBuffer.append(TEXT_101);
893
    stringBuffer.append(TEXT_101);
890
    stringBuffer.append(dep.getImportedPackageInterfaceName());
894
    for (GenPackage dep : genPackage.getPackageSimpleDependencies()) {
891
    stringBuffer.append(TEXT_102);
895
    stringBuffer.append(TEXT_102);
892
    }
896
    stringBuffer.append(dep.getImportedPackageInterfaceName());
893
    stringBuffer.append(TEXT_103);
897
    stringBuffer.append(TEXT_103);
894
    }
898
    }
895
    if (!genPackage.getPackageInterDependencies().isEmpty()) {
896
    stringBuffer.append(TEXT_104);
899
    stringBuffer.append(TEXT_104);
897
    for (GenPackage interdep : genPackage.getPackageInterDependencies()) {
900
    }
901
    if (!genPackage.getPackageInterDependencies().isEmpty()) {
898
    stringBuffer.append(TEXT_105);
902
    stringBuffer.append(TEXT_105);
899
    stringBuffer.append(interdep.getImportedPackageClassName());
903
    for (GenPackage interdep : genPackage.getPackageInterDependencies()) {
900
    stringBuffer.append(TEXT_106);
904
    stringBuffer.append(TEXT_106);
901
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
902
    stringBuffer.append(TEXT_107);
903
    stringBuffer.append(interdep.getImportedPackageClassName());
905
    stringBuffer.append(interdep.getImportedPackageClassName());
906
    stringBuffer.append(TEXT_107);
907
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
904
    stringBuffer.append(TEXT_108);
908
    stringBuffer.append(TEXT_108);
905
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
909
    stringBuffer.append(interdep.getImportedPackageClassName());
906
    stringBuffer.append(TEXT_109);
910
    stringBuffer.append(TEXT_109);
907
    stringBuffer.append(interdep.getImportedPackageInterfaceName());
911
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
908
    stringBuffer.append(TEXT_110);
912
    stringBuffer.append(TEXT_110);
909
    stringBuffer.append(interdep.getImportedPackageClassName());
913
    stringBuffer.append(interdep.getImportedPackageInterfaceName());
910
    stringBuffer.append(TEXT_111);
914
    stringBuffer.append(TEXT_111);
911
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
915
    stringBuffer.append(interdep.getImportedPackageClassName());
912
    stringBuffer.append(TEXT_112);
916
    stringBuffer.append(TEXT_112);
913
    stringBuffer.append(interdep.getImportedPackageInterfaceName());
917
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
914
    stringBuffer.append(TEXT_113);
918
    stringBuffer.append(TEXT_113);
915
    stringBuffer.append(interdep.getImportedPackageInterfaceName());
919
    stringBuffer.append(interdep.getImportedPackageInterfaceName());
916
    stringBuffer.append(TEXT_114);
920
    stringBuffer.append(TEXT_114);
917
    }
921
    stringBuffer.append(interdep.getImportedPackageInterfaceName());
918
    stringBuffer.append(TEXT_115);
922
    stringBuffer.append(TEXT_115);
919
    }
923
    }
920
    if (genPackage.isLoadedInitialization() || !genPackage.getPackageLoadInterDependencies().isEmpty()) {
921
    stringBuffer.append(TEXT_116);
924
    stringBuffer.append(TEXT_116);
922
    if (genPackage.isLoadingInitialization()) {
925
    }
926
    if (genPackage.isLoadedInitialization() || !genPackage.getPackageLoadInterDependencies().isEmpty()) {
923
    stringBuffer.append(TEXT_117);
927
    stringBuffer.append(TEXT_117);
924
    stringBuffer.append(genPackage.getBasicPackageName());
928
    if (genPackage.isLoadingInitialization()) {
925
    stringBuffer.append(TEXT_118);
929
    stringBuffer.append(TEXT_118);
930
    stringBuffer.append(genPackage.getBasicPackageName());
931
    stringBuffer.append(TEXT_119);
926
    }
932
    }
927
    for (GenPackage interdep : genPackage.getPackageLoadInterDependencies()) {
933
    for (GenPackage interdep : genPackage.getPackageLoadInterDependencies()) {
928
    if (interdep.isLoadingInitialization()) {
934
    if (interdep.isLoadingInitialization()) {
929
    stringBuffer.append(TEXT_119);
930
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
931
    stringBuffer.append(TEXT_120);
935
    stringBuffer.append(TEXT_120);
936
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
937
    stringBuffer.append(TEXT_121);
932
    }
938
    }
933
    }
939
    }
934
    stringBuffer.append(TEXT_121);
940
    stringBuffer.append(TEXT_122);
935
    }
941
    }
936
    if (!genPackage.isLoadedInitialization() || !genPackage.getPackageBuildInterDependencies().isEmpty()) {
942
    if (!genPackage.isLoadedInitialization() || !genPackage.getPackageBuildInterDependencies().isEmpty()) {
937
    stringBuffer.append(TEXT_122);
938
    if (!genPackage.isLoadedInitialization()) {
939
    stringBuffer.append(TEXT_123);
943
    stringBuffer.append(TEXT_123);
940
    stringBuffer.append(genPackage.getBasicPackageName());
944
    if (!genPackage.isLoadedInitialization()) {
941
    stringBuffer.append(TEXT_124);
945
    stringBuffer.append(TEXT_124);
946
    stringBuffer.append(genPackage.getBasicPackageName());
947
    stringBuffer.append(TEXT_125);
942
    }
948
    }
943
    for (GenPackage interdep : genPackage.getPackageBuildInterDependencies()) {
949
    for (GenPackage interdep : genPackage.getPackageBuildInterDependencies()) {
944
    stringBuffer.append(TEXT_125);
945
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
946
    stringBuffer.append(TEXT_126);
950
    stringBuffer.append(TEXT_126);
947
    }
951
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
948
    stringBuffer.append(TEXT_127);
952
    stringBuffer.append(TEXT_127);
949
    if (!genPackage.isLoadedInitialization()) {
953
    }
950
    stringBuffer.append(TEXT_128);
954
    stringBuffer.append(TEXT_128);
951
    stringBuffer.append(genPackage.getBasicPackageName());
955
    if (!genPackage.isLoadedInitialization()) {
952
    stringBuffer.append(TEXT_129);
956
    stringBuffer.append(TEXT_129);
957
    stringBuffer.append(genPackage.getBasicPackageName());
958
    stringBuffer.append(TEXT_130);
953
    }
959
    }
954
    for (GenPackage interdep : genPackage.getPackageBuildInterDependencies()) {
960
    for (GenPackage interdep : genPackage.getPackageBuildInterDependencies()) {
955
    stringBuffer.append(TEXT_130);
956
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
957
    stringBuffer.append(TEXT_131);
961
    stringBuffer.append(TEXT_131);
958
    }
962
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
959
    stringBuffer.append(TEXT_132);
963
    stringBuffer.append(TEXT_132);
960
    }
964
    }
961
    if (genPackage.isLoadedInitialization() || !genPackage.getPackageLoadInterDependencies().isEmpty()) {
962
    stringBuffer.append(TEXT_133);
965
    stringBuffer.append(TEXT_133);
963
    if (genPackage.isLoadedInitialization()) {
966
    }
967
    if (genPackage.isLoadedInitialization() || !genPackage.getPackageLoadInterDependencies().isEmpty()) {
964
    stringBuffer.append(TEXT_134);
968
    stringBuffer.append(TEXT_134);
965
    stringBuffer.append(genPackage.getBasicPackageName());
969
    if (genPackage.isLoadedInitialization()) {
966
    stringBuffer.append(TEXT_135);
970
    stringBuffer.append(TEXT_135);
971
    stringBuffer.append(genPackage.getBasicPackageName());
972
    stringBuffer.append(TEXT_136);
967
    }
973
    }
968
    for (GenPackage interdep : genPackage.getPackageLoadInterDependencies()) {
974
    for (GenPackage interdep : genPackage.getPackageLoadInterDependencies()) {
969
    stringBuffer.append(TEXT_136);
970
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
971
    stringBuffer.append(TEXT_137);
975
    stringBuffer.append(TEXT_137);
972
    }
976
    stringBuffer.append(genPackage.getPackageInstanceVariable(interdep));
973
    stringBuffer.append(TEXT_138);
977
    stringBuffer.append(TEXT_138);
974
    }
978
    }
975
    if (genPackage.hasConstraints()) {
976
    stringBuffer.append(TEXT_139);
979
    stringBuffer.append(TEXT_139);
977
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EValidator"));
980
    }
981
    if (genPackage.hasConstraints()) {
978
    stringBuffer.append(TEXT_140);
982
    stringBuffer.append(TEXT_140);
979
    stringBuffer.append(genPackage.getBasicPackageName());
980
    stringBuffer.append(TEXT_141);
981
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EValidator"));
983
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EValidator"));
984
    stringBuffer.append(TEXT_141);
985
    stringBuffer.append(genPackage.getBasicPackageName());
982
    stringBuffer.append(TEXT_142);
986
    stringBuffer.append(TEXT_142);
983
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EValidator"));
987
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EValidator"));
984
    stringBuffer.append(TEXT_143);
988
    stringBuffer.append(TEXT_143);
985
    stringBuffer.append(genPackage.getImportedValidatorClassName());
989
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EValidator"));
986
    stringBuffer.append(TEXT_144);
990
    stringBuffer.append(TEXT_144);
991
    stringBuffer.append(genPackage.getImportedValidatorClassName());
992
    stringBuffer.append(TEXT_145);
987
    }
993
    }
988
    if (!genPackage.isEcorePackage()) {
994
    if (!genPackage.isEcorePackage()) {
989
    stringBuffer.append(TEXT_145);
990
    stringBuffer.append(genPackage.getBasicPackageName());
991
    stringBuffer.append(TEXT_146);
995
    stringBuffer.append(TEXT_146);
992
    }
993
    stringBuffer.append(TEXT_147);
994
    stringBuffer.append(genPackage.getBasicPackageName());
996
    stringBuffer.append(genPackage.getBasicPackageName());
997
    stringBuffer.append(TEXT_147);
998
    }
995
    stringBuffer.append(TEXT_148);
999
    stringBuffer.append(TEXT_148);
1000
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
1001
    stringBuffer.append(TEXT_149);
1002
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
1003
    stringBuffer.append(TEXT_150);
1004
    stringBuffer.append(genPackage.getBasicPackageName());
1005
    stringBuffer.append(TEXT_151);
1006
    stringBuffer.append(genPackage.getBasicPackageName());
1007
    stringBuffer.append(TEXT_152);
996
    }
1008
    }
997
    if (isInterface) { // TODO REMOVE THIS BOGUS EMPTY LINE
1009
    if (isInterface) { // TODO REMOVE THIS BOGUS EMPTY LINE
998
    stringBuffer.append(TEXT_149);
1010
    stringBuffer.append(TEXT_153);
999
    }
1011
    }
1000
    for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
1012
    for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
1001
    if (isInterface) {
1013
    if (isInterface) {
1002
    stringBuffer.append(TEXT_150);
1014
    stringBuffer.append(TEXT_154);
1003
    if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
1015
    if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
1004
    stringBuffer.append(TEXT_151);
1016
    stringBuffer.append(TEXT_155);
1005
    stringBuffer.append(genClass.getQualifiedInterfaceName());
1017
    stringBuffer.append(genClass.getQualifiedInterfaceName());
1006
    stringBuffer.append(TEXT_152);
1018
    stringBuffer.append(TEXT_156);
1007
    stringBuffer.append(genClass.getFormattedName());
1019
    stringBuffer.append(genClass.getFormattedName());
1008
    stringBuffer.append(TEXT_153);
1020
    stringBuffer.append(TEXT_157);
1009
    stringBuffer.append(genClass.getFormattedName());
1021
    stringBuffer.append(genClass.getFormattedName());
1010
    stringBuffer.append(TEXT_154);
1022
    stringBuffer.append(TEXT_158);
1011
    stringBuffer.append(genClass.getQualifiedInterfaceName());
1023
    stringBuffer.append(genClass.getQualifiedInterfaceName());
1012
    if (!genModel.isSuppressEMFModelTags() && (genClass.isExternalInterface() || genClass.isDynamic())) { boolean first = true; for (StringTokenizer stringTokenizer = new StringTokenizer(genClass.getModelInfo(), "\n\r"); stringTokenizer.hasMoreTokens(); ) { String modelInfo = stringTokenizer.nextToken(); if (first) { first = false;
1024
    if (!genModel.isSuppressEMFModelTags() && (genClass.isExternalInterface() || genClass.isDynamic())) { boolean first = true; for (StringTokenizer stringTokenizer = new StringTokenizer(genClass.getModelInfo(), "\n\r"); stringTokenizer.hasMoreTokens(); ) { String modelInfo = stringTokenizer.nextToken(); if (first) { first = false;
1013
    stringBuffer.append(TEXT_155);
1025
    stringBuffer.append(TEXT_159);
1014
    stringBuffer.append(modelInfo);
1026
    stringBuffer.append(modelInfo);
1015
    } else {
1027
    } else {
1016
    stringBuffer.append(TEXT_156);
1028
    stringBuffer.append(TEXT_160);
1017
    stringBuffer.append(modelInfo);
1029
    stringBuffer.append(modelInfo);
1018
    }} if (first) {
1030
    }} if (first) {
1019
    stringBuffer.append(TEXT_157);
1031
    stringBuffer.append(TEXT_161);
1020
    }}
1032
    }}
1021
    } else if (genClassifier instanceof GenEnum) { GenEnum genEnum = (GenEnum)genClassifier;
1033
    } else if (genClassifier instanceof GenEnum) { GenEnum genEnum = (GenEnum)genClassifier;
1022
    stringBuffer.append(TEXT_158);
1034
    stringBuffer.append(TEXT_162);
1023
    stringBuffer.append(genEnum.getQualifiedName());
1035
    stringBuffer.append(genEnum.getQualifiedName());
1024
    stringBuffer.append(TEXT_159);
1036
    stringBuffer.append(TEXT_163);
1025
    stringBuffer.append(genEnum.getFormattedName());
1037
    stringBuffer.append(genEnum.getFormattedName());
1026
    stringBuffer.append(TEXT_160);
1038
    stringBuffer.append(TEXT_164);
1027
    stringBuffer.append(genEnum.getFormattedName());
1039
    stringBuffer.append(genEnum.getFormattedName());
1028
    stringBuffer.append(TEXT_161);
1040
    stringBuffer.append(TEXT_165);
1029
    stringBuffer.append(genEnum.getQualifiedName());
1041
    stringBuffer.append(genEnum.getQualifiedName());
1030
    } else if (genClassifier instanceof GenDataType) { GenDataType genDataType = (GenDataType)genClassifier;
1042
    } else if (genClassifier instanceof GenDataType) { GenDataType genDataType = (GenDataType)genClassifier;
1031
    if (genDataType.isPrimitiveType() || genDataType.isArrayType()) {
1043
    if (genDataType.isPrimitiveType() || genDataType.isArrayType()) {
1032
    stringBuffer.append(TEXT_162);
1044
    stringBuffer.append(TEXT_166);
1033
    stringBuffer.append(genDataType.getFormattedName());
1045
    stringBuffer.append(genDataType.getFormattedName());
1034
    stringBuffer.append(TEXT_163);
1046
    stringBuffer.append(TEXT_167);
1035
    } else {
1047
    } else {
1036
    stringBuffer.append(TEXT_164);
1048
    stringBuffer.append(TEXT_168);
1037
    stringBuffer.append(genDataType.getRawInstanceClassName());
1049
    stringBuffer.append(genDataType.getRawInstanceClassName());
1038
    stringBuffer.append(TEXT_165);
1050
    stringBuffer.append(TEXT_169);
1039
    stringBuffer.append(genDataType.getFormattedName());
1051
    stringBuffer.append(genDataType.getFormattedName());
1040
    stringBuffer.append(TEXT_166);
1052
    stringBuffer.append(TEXT_170);
1041
    }
1053
    }
1042
    stringBuffer.append(TEXT_167);
1054
    stringBuffer.append(TEXT_171);
1043
    stringBuffer.append(genDataType.getFormattedName());
1055
    stringBuffer.append(genDataType.getFormattedName());
1044
    stringBuffer.append(TEXT_168);
1056
    stringBuffer.append(TEXT_172);
1045
    if (!genDataType.isPrimitiveType() && !genDataType.isArrayType()) {
1057
    if (!genDataType.isPrimitiveType() && !genDataType.isArrayType()) {
1046
    stringBuffer.append(TEXT_169);
1058
    stringBuffer.append(TEXT_173);
1047
    stringBuffer.append(genDataType.getRawInstanceClassName());
1059
    stringBuffer.append(genDataType.getRawInstanceClassName());
1048
    }
1060
    }
1049
    if (!genModel.isSuppressEMFModelTags()) {boolean first = true; for (StringTokenizer stringTokenizer = new StringTokenizer(genDataType.getModelInfo(), "\n\r"); stringTokenizer.hasMoreTokens(); ) { String modelInfo = stringTokenizer.nextToken(); if (first) { first = false;
1061
    if (!genModel.isSuppressEMFModelTags()) {boolean first = true; for (StringTokenizer stringTokenizer = new StringTokenizer(genDataType.getModelInfo(), "\n\r"); stringTokenizer.hasMoreTokens(); ) { String modelInfo = stringTokenizer.nextToken(); if (first) { first = false;
1050
    stringBuffer.append(TEXT_170);
1062
    stringBuffer.append(TEXT_174);
1051
    stringBuffer.append(modelInfo);
1063
    stringBuffer.append(modelInfo);
1052
    } else {
1064
    } else {
1053
    stringBuffer.append(TEXT_171);
1065
    stringBuffer.append(TEXT_175);
1054
    stringBuffer.append(modelInfo);
1066
    stringBuffer.append(modelInfo);
1055
    }} if (first) {
1067
    }} if (first) {
1056
    stringBuffer.append(TEXT_172);
1068
    stringBuffer.append(TEXT_176);
1057
    }}
1069
    }}
1058
    }
1070
    }
1059
    stringBuffer.append(TEXT_173);
1071
    stringBuffer.append(TEXT_177);
1060
    } else {
1072
    } else {
1061
    stringBuffer.append(TEXT_174);
1073
    stringBuffer.append(TEXT_178);
1062
    }
1074
    }
1063
    if (isImplementation) {
1075
    if (isImplementation) {
1064
    stringBuffer.append(TEXT_175);
1076
    stringBuffer.append(TEXT_179);
1065
    stringBuffer.append(genClassifier.getImportedMetaType());
1077
    stringBuffer.append(genClassifier.getImportedMetaType());
1066
    stringBuffer.append(TEXT_176);
1078
    stringBuffer.append(TEXT_180);
1067
    stringBuffer.append(genClassifier.getClassifierAccessorName());
1079
    stringBuffer.append(genClassifier.getClassifierAccessorName());
1068
    stringBuffer.append(TEXT_177);
1080
    stringBuffer.append(TEXT_181);
1069
    if (genPackage.isLoadedInitialization()) {
1081
    if (genPackage.isLoadedInitialization()) {
1070
    stringBuffer.append(TEXT_178);
1082
    stringBuffer.append(TEXT_182);
1071
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1083
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1072
    stringBuffer.append(TEXT_179);
1084
    stringBuffer.append(TEXT_183);
1073
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1085
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1074
    stringBuffer.append(TEXT_180);
1086
    stringBuffer.append(TEXT_184);
1075
    stringBuffer.append(genClassifier.getImportedMetaType());
1087
    stringBuffer.append(genClassifier.getImportedMetaType());
1076
    stringBuffer.append(TEXT_181);
1088
    stringBuffer.append(TEXT_185);
1077
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
1089
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
1078
    stringBuffer.append(TEXT_182);
1090
    stringBuffer.append(TEXT_186);
1079
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
1091
    stringBuffer.append(genPackage.getImportedPackageInterfaceName());
1080
    stringBuffer.append(TEXT_183);
1092
    stringBuffer.append(TEXT_187);
1081
    stringBuffer.append(genPackage.getLocalClassifierIndex(genClassifier));
1093
    stringBuffer.append(genPackage.getLocalClassifierIndex(genClassifier));
1082
    stringBuffer.append(TEXT_184);
1094
    stringBuffer.append(TEXT_188);
1083
    }
1095
    }
1084
    stringBuffer.append(TEXT_185);
1096
    stringBuffer.append(TEXT_189);
1085
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1097
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1086
    stringBuffer.append(TEXT_186);
1098
    stringBuffer.append(TEXT_190);
1087
    } else {
1099
    } else {
1088
    stringBuffer.append(TEXT_187);
1100
    stringBuffer.append(TEXT_191);
1089
    stringBuffer.append(genClassifier.getImportedMetaType());
1101
    stringBuffer.append(genClassifier.getImportedMetaType());
1090
    stringBuffer.append(TEXT_188);
1102
    stringBuffer.append(TEXT_192);
1091
    stringBuffer.append(genClassifier.getClassifierAccessorName());
1103
    stringBuffer.append(genClassifier.getClassifierAccessorName());
1092
    stringBuffer.append(TEXT_189);
1104
    stringBuffer.append(TEXT_193);
1093
    }
1105
    }
1094
    if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
1106
    if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
1095
    for (GenFeature genFeature : genClass.getGenFeatures()) {
1107
    for (GenFeature genFeature : genClass.getGenFeatures()) {
1096
    if (isInterface) {
1108
    if (isInterface) {
1097
    stringBuffer.append(TEXT_190);
1109
    stringBuffer.append(TEXT_194);
1098
    stringBuffer.append(genFeature.getFeatureKind());
1110
    stringBuffer.append(genFeature.getFeatureKind());
1099
    stringBuffer.append(TEXT_191);
1111
    stringBuffer.append(TEXT_195);
1100
    stringBuffer.append(genClass.getQualifiedInterfaceName());
1112
    stringBuffer.append(genClass.getQualifiedInterfaceName());
1101
    if (!genClass.isMapEntry() && !genFeature.isSuppressedGetVisibility()) {
1113
    if (!genClass.isMapEntry() && !genFeature.isSuppressedGetVisibility()) {
1102
    stringBuffer.append(TEXT_192);
1114
    stringBuffer.append(TEXT_196);
1103
    stringBuffer.append(genFeature.getGetAccessor());
1115
    stringBuffer.append(genFeature.getGetAccessor());
1104
    }
1116
    }
1105
    stringBuffer.append(TEXT_193);
1117
    stringBuffer.append(TEXT_197);
1106
    stringBuffer.append(genFeature.getFormattedName());
1118
    stringBuffer.append(genFeature.getFormattedName());
1107
    stringBuffer.append(TEXT_194);
1119
    stringBuffer.append(TEXT_198);
1108
    stringBuffer.append(genFeature.getFeatureKind());
1120
    stringBuffer.append(genFeature.getFeatureKind());
1109
    stringBuffer.append(TEXT_195);
1121
    stringBuffer.append(TEXT_199);
1110
    stringBuffer.append(genFeature.getFormattedName());
1122
    stringBuffer.append(genFeature.getFormattedName());
1111
    stringBuffer.append(TEXT_196);
1123
    stringBuffer.append(TEXT_200);
1112
    stringBuffer.append(genClass.getQualifiedInterfaceName());
1124
    stringBuffer.append(genClass.getQualifiedInterfaceName());
1113
    if (!genClass.isMapEntry() && !genFeature.isSuppressedGetVisibility()) {
1125
    if (!genClass.isMapEntry() && !genFeature.isSuppressedGetVisibility()) {
1114
    stringBuffer.append(TEXT_197);
1126
    stringBuffer.append(TEXT_201);
1115
    stringBuffer.append(genFeature.getGetAccessor());
1127
    stringBuffer.append(genFeature.getGetAccessor());
1116
    stringBuffer.append(TEXT_198);
1128
    stringBuffer.append(TEXT_202);
1117
    }
1129
    }
1118
    stringBuffer.append(TEXT_199);
1130
    stringBuffer.append(TEXT_203);
1119
    stringBuffer.append(genClass.getClassifierAccessorName());
1131
    stringBuffer.append(genClass.getClassifierAccessorName());
1120
    stringBuffer.append(TEXT_200);
1132
    stringBuffer.append(TEXT_204);
1121
    } else {
1133
    } else {
1122
    stringBuffer.append(TEXT_201);
1134
    stringBuffer.append(TEXT_205);
1123
    }
1135
    }
1124
    if (isImplementation) {
1136
    if (isImplementation) {
1125
    stringBuffer.append(TEXT_202);
1137
    stringBuffer.append(TEXT_206);
1126
    stringBuffer.append(genFeature.getImportedMetaType());
1138
    stringBuffer.append(genFeature.getImportedMetaType());
1127
    stringBuffer.append(TEXT_203);
1139
    stringBuffer.append(TEXT_207);
1128
    stringBuffer.append(genFeature.getFeatureAccessorName());
1140
    stringBuffer.append(genFeature.getFeatureAccessorName());
1129
    stringBuffer.append(TEXT_204);
1141
    stringBuffer.append(TEXT_208);
1130
    if (!genPackage.isLoadedInitialization()) {
1142
    if (!genPackage.isLoadedInitialization()) {
1131
    stringBuffer.append(TEXT_205);
1143
    stringBuffer.append(TEXT_209);
1132
    stringBuffer.append(genFeature.getImportedMetaType());
1144
    stringBuffer.append(genFeature.getImportedMetaType());
1133
    stringBuffer.append(TEXT_206);
1145
    stringBuffer.append(TEXT_210);
1134
    stringBuffer.append(genClass.getClassifierInstanceName());
1146
    stringBuffer.append(genClass.getClassifierInstanceName());
1135
    stringBuffer.append(TEXT_207);
1147
    stringBuffer.append(TEXT_211);
1136
    stringBuffer.append(genClass.getLocalFeatureIndex(genFeature));
1148
    stringBuffer.append(genClass.getLocalFeatureIndex(genFeature));
1137
    stringBuffer.append(TEXT_208);
1149
    stringBuffer.append(TEXT_212);
1138
    } else {
1150
    } else {
1139
    stringBuffer.append(TEXT_209);
1151
    stringBuffer.append(TEXT_213);
1140
    stringBuffer.append(genFeature.getImportedMetaType());
1152
    stringBuffer.append(genFeature.getImportedMetaType());
1141
    stringBuffer.append(TEXT_210);
1153
    stringBuffer.append(TEXT_214);
1142
    stringBuffer.append(genClassifier.getClassifierAccessorName());
1154
    stringBuffer.append(genClassifier.getClassifierAccessorName());
1143
    stringBuffer.append(TEXT_211);
1155
    stringBuffer.append(TEXT_215);
1144
    stringBuffer.append(genClass.getLocalFeatureIndex(genFeature));
1156
    stringBuffer.append(genClass.getLocalFeatureIndex(genFeature));
1145
    stringBuffer.append(TEXT_212);
1157
    stringBuffer.append(TEXT_216);
1146
    }
1158
    }
1147
    stringBuffer.append(TEXT_213);
1159
    stringBuffer.append(TEXT_217);
1148
    } else {
1160
    } else {
1149
    stringBuffer.append(TEXT_214);
1161
    stringBuffer.append(TEXT_218);
1150
    stringBuffer.append(genFeature.getImportedMetaType());
1162
    stringBuffer.append(genFeature.getImportedMetaType());
1151
    stringBuffer.append(TEXT_215);
1163
    stringBuffer.append(TEXT_219);
1152
    stringBuffer.append(genFeature.getFeatureAccessorName());
1164
    stringBuffer.append(genFeature.getFeatureAccessorName());
1153
    stringBuffer.append(TEXT_216);
1165
    stringBuffer.append(TEXT_220);
1154
    }
1166
    }
1155
    stringBuffer.append(TEXT_217);
1167
    stringBuffer.append(TEXT_221);
1156
    }
1168
    }
1157
    }
1169
    }
1158
    }
1170
    }
1159
    if (isInterface) {
1171
    if (isInterface) {
1160
    stringBuffer.append(TEXT_218);
1172
    stringBuffer.append(TEXT_222);
1161
    } else {
1173
    } else {
1162
    stringBuffer.append(TEXT_219);
1174
    stringBuffer.append(TEXT_223);
1163
    }
1175
    }
1164
    if (isImplementation) {
1176
    if (isImplementation) {
1165
    stringBuffer.append(TEXT_220);
1177
    stringBuffer.append(TEXT_224);
1166
    stringBuffer.append(genPackage.getImportedFactoryInterfaceName());
1178
    stringBuffer.append(genPackage.getImportedFactoryInterfaceName());
1167
    stringBuffer.append(TEXT_221);
1179
    stringBuffer.append(TEXT_225);
1168
    stringBuffer.append(genPackage.getFactoryName());
1180
    stringBuffer.append(genPackage.getFactoryName());
1169
    stringBuffer.append(TEXT_222);
1181
    stringBuffer.append(TEXT_226);
1170
    stringBuffer.append(genPackage.getImportedFactoryInterfaceName());
1182
    stringBuffer.append(genPackage.getImportedFactoryInterfaceName());
1171
    stringBuffer.append(TEXT_223);
1183
    stringBuffer.append(TEXT_227);
1172
    } else {
1184
    } else {
1173
    stringBuffer.append(TEXT_224);
1185
    stringBuffer.append(TEXT_228);
1174
    stringBuffer.append(genPackage.getFactoryInterfaceName());
1186
    stringBuffer.append(genPackage.getFactoryInterfaceName());
1175
    stringBuffer.append(TEXT_225);
1187
    stringBuffer.append(TEXT_229);
1176
    stringBuffer.append(genPackage.getFactoryName());
1188
    stringBuffer.append(genPackage.getFactoryName());
1177
    stringBuffer.append(TEXT_226);
1189
    stringBuffer.append(TEXT_230);
1178
    }
1190
    }
1179
    stringBuffer.append(TEXT_227);
1191
    stringBuffer.append(TEXT_231);
1180
    if (isImplementation) {
1192
    if (isImplementation) {
1181
    if (!genPackage.isLoadedInitialization()) {
1193
    if (!genPackage.isLoadedInitialization()) {
1182
    stringBuffer.append(TEXT_228);
1194
    stringBuffer.append(TEXT_232);
1183
    if (!genPackage.getGenClasses().isEmpty()) {
1195
    if (!genPackage.getGenClasses().isEmpty()) {
1184
    stringBuffer.append(TEXT_229);
1196
    stringBuffer.append(TEXT_233);
1185
    for (Iterator<GenClass> c=genPackage.getGenClasses().iterator(); c.hasNext();) { GenClass genClass = c.next();
1197
    for (Iterator<GenClass> c=genPackage.getGenClasses().iterator(); c.hasNext();) { GenClass genClass = c.next();
1186
    stringBuffer.append(TEXT_230);
1198
    stringBuffer.append(TEXT_234);
1187
    stringBuffer.append(genClass.getClassifierInstanceName());
1199
    stringBuffer.append(genClass.getClassifierInstanceName());
1188
    stringBuffer.append(TEXT_231);
1200
    stringBuffer.append(TEXT_235);
1189
    stringBuffer.append(genClass.getMetaType());
1201
    stringBuffer.append(genClass.getMetaType());
1190
    stringBuffer.append(TEXT_232);
1202
    stringBuffer.append(TEXT_236);
1191
    stringBuffer.append(genClass.getClassifierID());
1203
    stringBuffer.append(genClass.getClassifierID());
1192
    stringBuffer.append(TEXT_233);
1204
    stringBuffer.append(TEXT_237);
1193
    for (GenFeature genFeature : genClass.getGenFeatures()) {
1205
    for (GenFeature genFeature : genClass.getGenFeatures()) {
1194
    stringBuffer.append(TEXT_234);
1206
    stringBuffer.append(TEXT_238);
1195
    stringBuffer.append(genFeature.getMetaType());
1207
    stringBuffer.append(genFeature.getMetaType());
1196
    stringBuffer.append(TEXT_235);
1208
    stringBuffer.append(TEXT_239);
1197
    stringBuffer.append(genClass.getClassifierInstanceName());
1209
    stringBuffer.append(genClass.getClassifierInstanceName());
1198
    stringBuffer.append(TEXT_236);
1210
    stringBuffer.append(TEXT_240);
1199
    stringBuffer.append(genClass.getFeatureID(genFeature));
1211
    stringBuffer.append(genClass.getFeatureID(genFeature));
1200
    stringBuffer.append(TEXT_237);
1212
    stringBuffer.append(TEXT_241);
1201
    }
1213
    }
1202
    if (c.hasNext()) {
1214
    if (c.hasNext()) {
1203
    stringBuffer.append(TEXT_238);
1215
    stringBuffer.append(TEXT_242);
1204
    }
1216
    }
1205
    }
1217
    }
1206
    }
1218
    }
1207
    if (!genPackage.getGenEnums().isEmpty()) {
1219
    if (!genPackage.getGenEnums().isEmpty()) {
1208
    stringBuffer.append(TEXT_239);
1220
    stringBuffer.append(TEXT_243);
1209
    for (GenEnum genEnum : genPackage.getGenEnums()) {
1221
    for (GenEnum genEnum : genPackage.getGenEnums()) {
1210
    stringBuffer.append(TEXT_240);
1222
    stringBuffer.append(TEXT_244);
1211
    stringBuffer.append(genEnum.getClassifierInstanceName());
1223
    stringBuffer.append(genEnum.getClassifierInstanceName());
1212
    stringBuffer.append(TEXT_241);
1224
    stringBuffer.append(TEXT_245);
1213
    stringBuffer.append(genEnum.getClassifierID());
1225
    stringBuffer.append(genEnum.getClassifierID());
1214
    stringBuffer.append(TEXT_242);
1226
    stringBuffer.append(TEXT_246);
1215
    }
1227
    }
1216
    }
1228
    }
1217
    if (!genPackage.getGenDataTypes().isEmpty()) {
1229
    if (!genPackage.getGenDataTypes().isEmpty()) {
1218
    stringBuffer.append(TEXT_243);
1230
    stringBuffer.append(TEXT_247);
1219
    for (GenDataType genDataType : genPackage.getGenDataTypes()) {
1231
    for (GenDataType genDataType : genPackage.getGenDataTypes()) {
1220
    stringBuffer.append(TEXT_244);
1232
    stringBuffer.append(TEXT_248);
1221
    stringBuffer.append(genDataType.getClassifierInstanceName());
1233
    stringBuffer.append(genDataType.getClassifierInstanceName());
1222
    stringBuffer.append(TEXT_245);
1234
    stringBuffer.append(TEXT_249);
1223
    stringBuffer.append(genDataType.getClassifierID());
1235
    stringBuffer.append(genDataType.getClassifierID());
1224
    stringBuffer.append(TEXT_246);
1236
    stringBuffer.append(TEXT_250);
1225
    }
1237
    }
1226
    }
1238
    }
1227
    stringBuffer.append(TEXT_247);
1239
    stringBuffer.append(TEXT_251);
1228
    
1240
    
1229
///////////////////////
1241
///////////////////////
1230
class Information
1242
class Information
Lines 1295-1449 Link Here
1295
///////////////////////
1307
///////////////////////
1296
int maxGenericTypeAssignment = 0;
1308
int maxGenericTypeAssignment = 0;
1297
1309
1298
    stringBuffer.append(TEXT_248);
1310
    stringBuffer.append(TEXT_252);
1299
    if (!genPackage.getPackageInitializationDependencies().isEmpty()) {
1311
    if (!genPackage.getPackageInitializationDependencies().isEmpty()) {
1300
    stringBuffer.append(TEXT_249);
1312
    stringBuffer.append(TEXT_253);
1301
    for (GenPackage dep : genPackage.getPackageInitializationDependencies()) {
1313
    for (GenPackage dep : genPackage.getPackageInitializationDependencies()) {
1302
    stringBuffer.append(TEXT_250);
1314
    stringBuffer.append(TEXT_254);
1303
    stringBuffer.append(dep.getImportedPackageInterfaceName());
1315
    stringBuffer.append(dep.getImportedPackageInterfaceName());
1304
    stringBuffer.append(TEXT_251);
1316
    stringBuffer.append(TEXT_255);
1305
    stringBuffer.append(genPackage.getPackageInstanceVariable(dep));
1317
    stringBuffer.append(genPackage.getPackageInstanceVariable(dep));
1306
    stringBuffer.append(TEXT_252);
1318
    stringBuffer.append(TEXT_256);
1307
    stringBuffer.append(dep.getImportedPackageInterfaceName());
1319
    stringBuffer.append(dep.getImportedPackageInterfaceName());
1308
    stringBuffer.append(TEXT_253);
1320
    stringBuffer.append(TEXT_257);
1309
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
1321
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
1310
    stringBuffer.append(TEXT_254);
1322
    stringBuffer.append(TEXT_258);
1311
    stringBuffer.append(dep.getImportedPackageInterfaceName());
1323
    stringBuffer.append(dep.getImportedPackageInterfaceName());
1312
    stringBuffer.append(TEXT_255);
1324
    stringBuffer.append(TEXT_259);
1313
    }
1325
    }
1314
    }
1326
    }
1315
    if (!genPackage.getSubGenPackages().isEmpty()) {
1327
    if (!genPackage.getSubGenPackages().isEmpty()) {
1316
    stringBuffer.append(TEXT_256);
1328
    stringBuffer.append(TEXT_260);
1317
    for (GenPackage sub : genPackage.getSubGenPackages()) {
1329
    for (GenPackage sub : genPackage.getSubGenPackages()) {
1318
    stringBuffer.append(TEXT_257);
1330
    stringBuffer.append(TEXT_261);
1319
    stringBuffer.append(genPackage.getPackageInstanceVariable(sub));
1331
    stringBuffer.append(genPackage.getPackageInstanceVariable(sub));
1320
    stringBuffer.append(TEXT_258);
1332
    stringBuffer.append(TEXT_262);
1321
    }
1333
    }
1322
    }
1334
    }
1323
    if (!genPackage.getGenClasses().isEmpty()) { boolean firstOperationAssignment = true; int maxTypeParameterAssignment = 0;
1335
    if (!genPackage.getGenClasses().isEmpty()) { boolean firstOperationAssignment = true; int maxTypeParameterAssignment = 0;
1324
    if (genModel.useGenerics()) {
1336
    if (genModel.useGenerics()) {
1325
    stringBuffer.append(TEXT_259);
1337
    stringBuffer.append(TEXT_263);
1326
    for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
1338
    for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
1327
    for (GenTypeParameter genTypeParameter : genClassifier.getGenTypeParameters()) {
1339
    for (GenTypeParameter genTypeParameter : genClassifier.getGenTypeParameters()) {
1328
    if (!genTypeParameter.getEcoreTypeParameter().getEBounds().isEmpty() || genTypeParameter.isUsed()) {
1340
    if (!genTypeParameter.getEcoreTypeParameter().getEBounds().isEmpty() || genTypeParameter.isUsed()) {
1329
    stringBuffer.append(TEXT_260);
1341
    stringBuffer.append(TEXT_264);
1330
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.ETypeParameter"));
1342
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.ETypeParameter"));
1331
    stringBuffer.append(TEXT_261);
1343
    stringBuffer.append(TEXT_265);
1332
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1344
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1333
    stringBuffer.append(TEXT_262);
1345
    stringBuffer.append(TEXT_266);
1334
    stringBuffer.append(genTypeParameter.getName());
1346
    stringBuffer.append(genTypeParameter.getName());
1335
    stringBuffer.append(TEXT_263);
1347
    stringBuffer.append(TEXT_267);
1336
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1348
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1337
    stringBuffer.append(TEXT_264);
1349
    stringBuffer.append(TEXT_268);
1338
    stringBuffer.append(genTypeParameter.getName());
1350
    stringBuffer.append(genTypeParameter.getName());
1339
    stringBuffer.append(TEXT_265);
1351
    stringBuffer.append(TEXT_269);
1340
    stringBuffer.append(genModel.getNonNLS());
1352
    stringBuffer.append(genModel.getNonNLS());
1341
    } else {
1353
    } else {
1342
    stringBuffer.append(TEXT_266);
1354
    stringBuffer.append(TEXT_270);
1343
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1355
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1344
    stringBuffer.append(TEXT_267);
1356
    stringBuffer.append(TEXT_271);
1345
    stringBuffer.append(genTypeParameter.getName());
1357
    stringBuffer.append(genTypeParameter.getName());
1346
    stringBuffer.append(TEXT_268);
1358
    stringBuffer.append(TEXT_272);
1347
    stringBuffer.append(genModel.getNonNLS());
1359
    stringBuffer.append(genModel.getNonNLS());
1348
    }
1360
    }
1349
    }
1361
    }
1350
    }
1362
    }
1351
    }
1363
    }
1352
    if (genModel.useGenerics()) {
1364
    if (genModel.useGenerics()) {
1353
    stringBuffer.append(TEXT_269);
1365
    stringBuffer.append(TEXT_273);
1354
    for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
1366
    for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
1355
    for (GenTypeParameter genTypeParameter : genClassifier.getGenTypeParameters()) {
1367
    for (GenTypeParameter genTypeParameter : genClassifier.getGenTypeParameters()) {
1356
    for (EGenericType bound : genTypeParameter.getEcoreTypeParameter().getEBounds()) {
1368
    for (EGenericType bound : genTypeParameter.getEcoreTypeParameter().getEBounds()) {
1357
    for (InformationIterator i=new InformationIterator(bound); i.hasNext(); ) { Information info = i.next(); String prefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; prefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1369
    for (InformationIterator i=new InformationIterator(bound); i.hasNext(); ) { Information info = i.next(); String prefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; prefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1358
    stringBuffer.append(TEXT_270);
1370
    stringBuffer.append(TEXT_274);
1359
    stringBuffer.append(prefix);
1371
    stringBuffer.append(prefix);
1360
    stringBuffer.append(TEXT_271);
1372
    stringBuffer.append(TEXT_275);
1361
    stringBuffer.append(info.depth + 1);
1373
    stringBuffer.append(info.depth + 1);
1362
    stringBuffer.append(TEXT_272);
1374
    stringBuffer.append(TEXT_276);
1363
    stringBuffer.append(info.type);
1375
    stringBuffer.append(info.type);
1364
    stringBuffer.append(TEXT_273);
1376
    stringBuffer.append(TEXT_277);
1365
    if (info.depth > 0) {
1377
    if (info.depth > 0) {
1366
    stringBuffer.append(TEXT_274);
1378
    stringBuffer.append(TEXT_278);
1367
    stringBuffer.append(info.depth);
1379
    stringBuffer.append(info.depth);
1368
    stringBuffer.append(TEXT_275);
1380
    stringBuffer.append(TEXT_279);
1369
    stringBuffer.append(info.accessor);
1381
    stringBuffer.append(info.accessor);
1370
    stringBuffer.append(TEXT_276);
1382
    stringBuffer.append(TEXT_280);
1371
    stringBuffer.append(info.depth + 1);
1383
    stringBuffer.append(info.depth + 1);
1372
    stringBuffer.append(TEXT_277);
1384
    stringBuffer.append(TEXT_281);
1373
    }
1385
    }
1374
    }
1386
    }
1375
    stringBuffer.append(TEXT_278);
1387
    stringBuffer.append(TEXT_282);
1376
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1388
    stringBuffer.append(genClassifier.getClassifierInstanceName());
1377
    stringBuffer.append(TEXT_279);
1389
    stringBuffer.append(TEXT_283);
1378
    stringBuffer.append(genTypeParameter.getName());
1390
    stringBuffer.append(genTypeParameter.getName());
1379
    stringBuffer.append(TEXT_280);
1391
    stringBuffer.append(TEXT_284);
1380
    }
1392
    }
1381
    }
1393
    }
1382
    }
1394
    }
1383
    }
1395
    }
1384
    stringBuffer.append(TEXT_281);
1396
    stringBuffer.append(TEXT_285);
1385
    for (GenClass genClass : genPackage.getGenClasses()) {
1397
    for (GenClass genClass : genPackage.getGenClasses()) {
1386
    if (!genClass.hasGenericSuperTypes()) {
1398
    if (!genClass.hasGenericSuperTypes()) {
1387
    for (GenClass baseGenClass : genClass.getBaseGenClasses()) {
1399
    for (GenClass baseGenClass : genClass.getBaseGenClasses()) {
1388
    stringBuffer.append(TEXT_282);
1400
    stringBuffer.append(TEXT_286);
1389
    stringBuffer.append(genClass.getClassifierInstanceName());
1401
    stringBuffer.append(genClass.getClassifierInstanceName());
1390
    stringBuffer.append(TEXT_283);
1402
    stringBuffer.append(TEXT_287);
1391
    stringBuffer.append(genPackage.getPackageInstanceVariable(baseGenClass.getGenPackage()));
1403
    stringBuffer.append(genPackage.getPackageInstanceVariable(baseGenClass.getGenPackage()));
1392
    stringBuffer.append(TEXT_284);
1404
    stringBuffer.append(TEXT_288);
1393
    stringBuffer.append(baseGenClass.getClassifierAccessorName());
1405
    stringBuffer.append(baseGenClass.getClassifierAccessorName());
1394
    stringBuffer.append(TEXT_285);
1406
    stringBuffer.append(TEXT_289);
1395
    }
1407
    }
1396
    } else {
1408
    } else {
1397
    for (EGenericType superType : genClass.getEcoreClass().getEGenericSuperTypes()) {
1409
    for (EGenericType superType : genClass.getEcoreClass().getEGenericSuperTypes()) {
1398
    for (InformationIterator i=new InformationIterator(superType); i.hasNext(); ) { Information info = i.next(); String prefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; prefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1410
    for (InformationIterator i=new InformationIterator(superType); i.hasNext(); ) { Information info = i.next(); String prefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; prefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1399
    stringBuffer.append(TEXT_286);
1411
    stringBuffer.append(TEXT_290);
1400
    stringBuffer.append(prefix);
1412
    stringBuffer.append(prefix);
1401
    stringBuffer.append(TEXT_287);
1413
    stringBuffer.append(TEXT_291);
1402
    stringBuffer.append(info.depth + 1);
1414
    stringBuffer.append(info.depth + 1);
1403
    stringBuffer.append(TEXT_288);
1415
    stringBuffer.append(TEXT_292);
1404
    stringBuffer.append(info.type);
1416
    stringBuffer.append(info.type);
1405
    stringBuffer.append(TEXT_289);
1417
    stringBuffer.append(TEXT_293);
1406
    if (info.depth > 0) {
1418
    if (info.depth > 0) {
1407
    stringBuffer.append(TEXT_290);
1419
    stringBuffer.append(TEXT_294);
1408
    stringBuffer.append(info.depth);
1420
    stringBuffer.append(info.depth);
1409
    stringBuffer.append(TEXT_291);
1421
    stringBuffer.append(TEXT_295);
1410
    stringBuffer.append(info.accessor);
1422
    stringBuffer.append(info.accessor);
1411
    stringBuffer.append(TEXT_292);
1423
    stringBuffer.append(TEXT_296);
1412
    stringBuffer.append(info.depth + 1);
1424
    stringBuffer.append(info.depth + 1);
1413
    stringBuffer.append(TEXT_293);
1425
    stringBuffer.append(TEXT_297);
1414
    }
1426
    }
1415
    }
1427
    }
1416
    stringBuffer.append(TEXT_294);
1428
    stringBuffer.append(TEXT_298);
1417
    stringBuffer.append(genClass.getClassifierInstanceName());
1429
    stringBuffer.append(genClass.getClassifierInstanceName());
1418
    stringBuffer.append(TEXT_295);
1430
    stringBuffer.append(TEXT_299);
1419
    }
1431
    }
1420
    }
1432
    }
1421
    }
1433
    }
1422
    stringBuffer.append(TEXT_296);
1434
    stringBuffer.append(TEXT_300);
1423
    for (Iterator<GenClass> c=genPackage.getGenClasses().iterator(); c.hasNext();) { GenClass genClass = c.next(); boolean hasInstanceTypeName = genModel.useGenerics() && genClass.getEcoreClass().getInstanceTypeName() != null && genClass.getEcoreClass().getInstanceTypeName().contains("<");
1435
    for (Iterator<GenClass> c=genPackage.getGenClasses().iterator(); c.hasNext();) { GenClass genClass = c.next(); boolean hasInstanceTypeName = genModel.useGenerics() && genClass.getEcoreClass().getInstanceTypeName() != null && genClass.getEcoreClass().getInstanceTypeName().contains("<");
1424
    stringBuffer.append(TEXT_297);
1436
    stringBuffer.append(TEXT_301);
1425
    stringBuffer.append(genClass.getClassifierInstanceName());
1437
    stringBuffer.append(genClass.getClassifierInstanceName());
1426
    stringBuffer.append(TEXT_298);
1438
    stringBuffer.append(TEXT_302);
1427
    if (genClass.isDynamic()) {
1439
    if (genClass.isDynamic()) {
1428
    stringBuffer.append(TEXT_299);
1440
    stringBuffer.append(TEXT_303);
1429
    } else {
1441
    } else {
1430
    stringBuffer.append(genClass.getRawImportedInterfaceName());
1442
    stringBuffer.append(genClass.getRawImportedInterfaceName());
1431
    stringBuffer.append(TEXT_300);
1443
    stringBuffer.append(TEXT_304);
1432
    }
1444
    }
1433
    stringBuffer.append(TEXT_301);
1445
    stringBuffer.append(TEXT_305);
1434
    stringBuffer.append(genClass.getName());
1446
    stringBuffer.append(genClass.getName());
1435
    stringBuffer.append(TEXT_302);
1447
    stringBuffer.append(TEXT_306);
1436
    stringBuffer.append(genClass.getAbstractFlag());
1448
    stringBuffer.append(genClass.getAbstractFlag());
1437
    stringBuffer.append(TEXT_303);
1449
    stringBuffer.append(TEXT_307);
1438
    stringBuffer.append(genClass.getInterfaceFlag());
1450
    stringBuffer.append(genClass.getInterfaceFlag());
1439
    stringBuffer.append(TEXT_304);
1451
    stringBuffer.append(TEXT_308);
1440
    stringBuffer.append(genClass.getGeneratedInstanceClassFlag());
1452
    stringBuffer.append(genClass.getGeneratedInstanceClassFlag());
1441
    if (hasInstanceTypeName) {
1453
    if (hasInstanceTypeName) {
1442
    stringBuffer.append(TEXT_305);
1454
    stringBuffer.append(TEXT_309);
1443
    stringBuffer.append(genClass.getEcoreClass().getInstanceTypeName());
1455
    stringBuffer.append(genClass.getEcoreClass().getInstanceTypeName());
1444
    stringBuffer.append(TEXT_306);
1456
    stringBuffer.append(TEXT_310);
1445
    }
1457
    }
1446
    stringBuffer.append(TEXT_307);
1458
    stringBuffer.append(TEXT_311);
1447
    stringBuffer.append(genModel.getNonNLS());
1459
    stringBuffer.append(genModel.getNonNLS());
1448
    if (hasInstanceTypeName) {
1460
    if (hasInstanceTypeName) {
1449
    stringBuffer.append(genModel.getNonNLS(2));
1461
    stringBuffer.append(genModel.getNonNLS(2));
Lines 1451-1872 Link Here
1451
    for (GenFeature genFeature : genClass.getGenFeatures()) {
1463
    for (GenFeature genFeature : genClass.getGenFeatures()) {
1452
    if (genFeature.hasGenericType()) {
1464
    if (genFeature.hasGenericType()) {
1453
    for (InformationIterator i=new InformationIterator(genFeature.getEcoreFeature().getEGenericType()); i.hasNext(); ) { Information info = i.next(); String prefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; prefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1465
    for (InformationIterator i=new InformationIterator(genFeature.getEcoreFeature().getEGenericType()); i.hasNext(); ) { Information info = i.next(); String prefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; prefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1454
    stringBuffer.append(TEXT_308);
1466
    stringBuffer.append(TEXT_312);
1455
    stringBuffer.append(prefix);
1467
    stringBuffer.append(prefix);
1456
    stringBuffer.append(TEXT_309);
1468
    stringBuffer.append(TEXT_313);
1457
    stringBuffer.append(info.depth + 1);
1469
    stringBuffer.append(info.depth + 1);
1458
    stringBuffer.append(TEXT_310);
1470
    stringBuffer.append(TEXT_314);
1459
    stringBuffer.append(info.type);
1471
    stringBuffer.append(info.type);
1460
    stringBuffer.append(TEXT_311);
1472
    stringBuffer.append(TEXT_315);
1461
    if (info.depth > 0) {
1473
    if (info.depth > 0) {
1462
    stringBuffer.append(TEXT_312);
1474
    stringBuffer.append(TEXT_316);
1463
    stringBuffer.append(info.depth);
1475
    stringBuffer.append(info.depth);
1464
    stringBuffer.append(TEXT_313);
1476
    stringBuffer.append(TEXT_317);
1465
    stringBuffer.append(info.accessor);
1477
    stringBuffer.append(info.accessor);
1466
    stringBuffer.append(TEXT_314);
1478
    stringBuffer.append(TEXT_318);
1467
    stringBuffer.append(info.depth + 1);
1479
    stringBuffer.append(info.depth + 1);
1468
    stringBuffer.append(TEXT_315);
1480
    stringBuffer.append(TEXT_319);
1469
    }
1481
    }
1470
    }
1482
    }
1471
    }
1483
    }
1472
    if (genFeature.isReferenceType()) { GenFeature reverseGenFeature = genFeature.getReverse();
1484
    if (genFeature.isReferenceType()) { GenFeature reverseGenFeature = genFeature.getReverse();
1473
    String reverse = reverseGenFeature == null ? "null" : genPackage.getPackageInstanceVariable(reverseGenFeature.getGenPackage()) + ".get" + reverseGenFeature.getFeatureAccessorName() + "()";
1485
    String reverse = reverseGenFeature == null ? "null" : genPackage.getPackageInstanceVariable(reverseGenFeature.getGenPackage()) + ".get" + reverseGenFeature.getFeatureAccessorName() + "()";
1474
    stringBuffer.append(TEXT_316);
1486
    stringBuffer.append(TEXT_320);
1475
    stringBuffer.append(genFeature.getFeatureAccessorName());
1487
    stringBuffer.append(genFeature.getFeatureAccessorName());
1476
    stringBuffer.append(TEXT_317);
1488
    stringBuffer.append(TEXT_321);
1477
    if (genFeature.hasGenericType()) {
1489
    if (genFeature.hasGenericType()) {
1478
    stringBuffer.append(TEXT_318);
1490
    stringBuffer.append(TEXT_322);
1479
    } else {
1491
    } else {
1480
    stringBuffer.append(genPackage.getPackageInstanceVariable(genFeature.getTypeGenPackage()));
1492
    stringBuffer.append(genPackage.getPackageInstanceVariable(genFeature.getTypeGenPackage()));
1481
    stringBuffer.append(TEXT_319);
1493
    stringBuffer.append(TEXT_323);
1482
    stringBuffer.append(genFeature.getTypeClassifierAccessorName());
1494
    stringBuffer.append(genFeature.getTypeClassifierAccessorName());
1483
    stringBuffer.append(TEXT_320);
1495
    stringBuffer.append(TEXT_324);
1484
    }
1496
    }
1485
    stringBuffer.append(TEXT_321);
1497
    stringBuffer.append(TEXT_325);
1486
    stringBuffer.append(reverse);
1498
    stringBuffer.append(reverse);
1487
    stringBuffer.append(TEXT_322);
1499
    stringBuffer.append(TEXT_326);
1488
    stringBuffer.append(genFeature.getName());
1500
    stringBuffer.append(genFeature.getName());
1489
    stringBuffer.append(TEXT_323);
1501
    stringBuffer.append(TEXT_327);
1490
    stringBuffer.append(genFeature.getDefaultValue());
1502
    stringBuffer.append(genFeature.getDefaultValue());
1491
    stringBuffer.append(TEXT_324);
1503
    stringBuffer.append(TEXT_328);
1492
    stringBuffer.append(genFeature.getLowerBound());
1504
    stringBuffer.append(genFeature.getLowerBound());
1493
    stringBuffer.append(TEXT_325);
1505
    stringBuffer.append(TEXT_329);
1494
    stringBuffer.append(genFeature.getUpperBound());
1506
    stringBuffer.append(genFeature.getUpperBound());
1495
    stringBuffer.append(TEXT_326);
1507
    stringBuffer.append(TEXT_330);
1496
    stringBuffer.append(genFeature.getContainerClass());
1508
    stringBuffer.append(genFeature.getContainerClass());
1497
    stringBuffer.append(TEXT_327);
1509
    stringBuffer.append(TEXT_331);
1498
    stringBuffer.append(genFeature.getTransientFlag());
1510
    stringBuffer.append(genFeature.getTransientFlag());
1499
    stringBuffer.append(TEXT_328);
1511
    stringBuffer.append(TEXT_332);
1500
    stringBuffer.append(genFeature.getVolatileFlag());
1512
    stringBuffer.append(genFeature.getVolatileFlag());
1501
    stringBuffer.append(TEXT_329);
1513
    stringBuffer.append(TEXT_333);
1502
    stringBuffer.append(genFeature.getChangeableFlag());
1514
    stringBuffer.append(genFeature.getChangeableFlag());
1503
    stringBuffer.append(TEXT_330);
1515
    stringBuffer.append(TEXT_334);
1504
    stringBuffer.append(genFeature.getContainmentFlag());
1516
    stringBuffer.append(genFeature.getContainmentFlag());
1505
    stringBuffer.append(TEXT_331);
1517
    stringBuffer.append(TEXT_335);
1506
    stringBuffer.append(genFeature.getResolveProxiesFlag());
1518
    stringBuffer.append(genFeature.getResolveProxiesFlag());
1507
    stringBuffer.append(TEXT_332);
1519
    stringBuffer.append(TEXT_336);
1508
    stringBuffer.append(genFeature.getUnsettableFlag());
1520
    stringBuffer.append(genFeature.getUnsettableFlag());
1509
    stringBuffer.append(TEXT_333);
1521
    stringBuffer.append(TEXT_337);
1510
    stringBuffer.append(genFeature.getUniqueFlag());
1522
    stringBuffer.append(genFeature.getUniqueFlag());
1511
    stringBuffer.append(TEXT_334);
1523
    stringBuffer.append(TEXT_338);
1512
    stringBuffer.append(genFeature.getDerivedFlag());
1524
    stringBuffer.append(genFeature.getDerivedFlag());
1513
    stringBuffer.append(TEXT_335);
1525
    stringBuffer.append(TEXT_339);
1514
    stringBuffer.append(genFeature.getOrderedFlag());
1526
    stringBuffer.append(genFeature.getOrderedFlag());
1515
    stringBuffer.append(TEXT_336);
1527
    stringBuffer.append(TEXT_340);
1516
    stringBuffer.append(genModel.getNonNLS());
1528
    stringBuffer.append(genModel.getNonNLS());
1517
    stringBuffer.append(genModel.getNonNLS(genFeature.getDefaultValue(), 2));
1529
    stringBuffer.append(genModel.getNonNLS(genFeature.getDefaultValue(), 2));
1518
    for (GenFeature keyFeature : genFeature.getKeys()) {
1530
    for (GenFeature keyFeature : genFeature.getKeys()) {
1519
    stringBuffer.append(TEXT_337);
1531
    stringBuffer.append(TEXT_341);
1520
    stringBuffer.append(genFeature.getFeatureAccessorName());
1532
    stringBuffer.append(genFeature.getFeatureAccessorName());
1521
    stringBuffer.append(TEXT_338);
1533
    stringBuffer.append(TEXT_342);
1522
    stringBuffer.append(genPackage.getPackageInstanceVariable(keyFeature.getGenPackage()));
1534
    stringBuffer.append(genPackage.getPackageInstanceVariable(keyFeature.getGenPackage()));
1523
    stringBuffer.append(TEXT_339);
1535
    stringBuffer.append(TEXT_343);
1524
    stringBuffer.append(keyFeature.getFeatureAccessorName());
1536
    stringBuffer.append(keyFeature.getFeatureAccessorName());
1525
    stringBuffer.append(TEXT_340);
1537
    stringBuffer.append(TEXT_344);
1526
    }
1538
    }
1527
    } else {
1539
    } else {
1528
    stringBuffer.append(TEXT_341);
1540
    stringBuffer.append(TEXT_345);
1529
    stringBuffer.append(genFeature.getFeatureAccessorName());
1541
    stringBuffer.append(genFeature.getFeatureAccessorName());
1530
    stringBuffer.append(TEXT_342);
1542
    stringBuffer.append(TEXT_346);
1531
    if (genFeature.hasGenericType()) {
1543
    if (genFeature.hasGenericType()) {
1532
    stringBuffer.append(TEXT_343);
1544
    stringBuffer.append(TEXT_347);
1533
    } else {
1545
    } else {
1534
    stringBuffer.append(genPackage.getPackageInstanceVariable(genFeature.getTypeGenPackage()));
1546
    stringBuffer.append(genPackage.getPackageInstanceVariable(genFeature.getTypeGenPackage()));
1535
    stringBuffer.append(TEXT_344);
1547
    stringBuffer.append(TEXT_348);
1536
    stringBuffer.append(genFeature.getTypeClassifierAccessorName());
1548
    stringBuffer.append(genFeature.getTypeClassifierAccessorName());
1537
    stringBuffer.append(TEXT_345);
1549
    stringBuffer.append(TEXT_349);
1538
    }
1550
    }
1539
    stringBuffer.append(TEXT_346);
1551
    stringBuffer.append(TEXT_350);
1540
    stringBuffer.append(genFeature.getName());
1552
    stringBuffer.append(genFeature.getName());
1541
    stringBuffer.append(TEXT_347);
1553
    stringBuffer.append(TEXT_351);
1542
    stringBuffer.append(genFeature.getDefaultValue());
1554
    stringBuffer.append(genFeature.getDefaultValue());
1543
    stringBuffer.append(TEXT_348);
1555
    stringBuffer.append(TEXT_352);
1544
    stringBuffer.append(genFeature.getLowerBound());
1556
    stringBuffer.append(genFeature.getLowerBound());
1545
    stringBuffer.append(TEXT_349);
1557
    stringBuffer.append(TEXT_353);
1546
    stringBuffer.append(genFeature.getUpperBound());
1558
    stringBuffer.append(genFeature.getUpperBound());
1547
    stringBuffer.append(TEXT_350);
1559
    stringBuffer.append(TEXT_354);
1548
    stringBuffer.append(genFeature.getContainerClass());
1560
    stringBuffer.append(genFeature.getContainerClass());
1549
    stringBuffer.append(TEXT_351);
1561
    stringBuffer.append(TEXT_355);
1550
    stringBuffer.append(genFeature.getTransientFlag());
1562
    stringBuffer.append(genFeature.getTransientFlag());
1551
    stringBuffer.append(TEXT_352);
1563
    stringBuffer.append(TEXT_356);
1552
    stringBuffer.append(genFeature.getVolatileFlag());
1564
    stringBuffer.append(genFeature.getVolatileFlag());
1553
    stringBuffer.append(TEXT_353);
1565
    stringBuffer.append(TEXT_357);
1554
    stringBuffer.append(genFeature.getChangeableFlag());
1566
    stringBuffer.append(genFeature.getChangeableFlag());
1555
    stringBuffer.append(TEXT_354);
1567
    stringBuffer.append(TEXT_358);
1556
    stringBuffer.append(genFeature.getUnsettableFlag());
1568
    stringBuffer.append(genFeature.getUnsettableFlag());
1557
    stringBuffer.append(TEXT_355);
1569
    stringBuffer.append(TEXT_359);
1558
    stringBuffer.append(genFeature.getIDFlag());
1570
    stringBuffer.append(genFeature.getIDFlag());
1559
    stringBuffer.append(TEXT_356);
1571
    stringBuffer.append(TEXT_360);
1560
    stringBuffer.append(genFeature.getUniqueFlag());
1572
    stringBuffer.append(genFeature.getUniqueFlag());
1561
    stringBuffer.append(TEXT_357);
1573
    stringBuffer.append(TEXT_361);
1562
    stringBuffer.append(genFeature.getDerivedFlag());
1574
    stringBuffer.append(genFeature.getDerivedFlag());
1563
    stringBuffer.append(TEXT_358);
1575
    stringBuffer.append(TEXT_362);
1564
    stringBuffer.append(genFeature.getOrderedFlag());
1576
    stringBuffer.append(genFeature.getOrderedFlag());
1565
    stringBuffer.append(TEXT_359);
1577
    stringBuffer.append(TEXT_363);
1566
    stringBuffer.append(genModel.getNonNLS());
1578
    stringBuffer.append(genModel.getNonNLS());
1567
    stringBuffer.append(genModel.getNonNLS(genFeature.getDefaultValue(), 2));
1579
    stringBuffer.append(genModel.getNonNLS(genFeature.getDefaultValue(), 2));
1568
    }
1580
    }
1569
    }
1581
    }
1570
    for (GenOperation genOperation : genClass.getGenOperations()) {String prefix = ""; if (genOperation.hasGenericType() || !genOperation.getGenParameters().isEmpty() || !genOperation.getGenExceptions().isEmpty() || !genOperation.getGenTypeParameters().isEmpty()) { if (firstOperationAssignment) { firstOperationAssignment = false; prefix = genModel.getImportedName("org.eclipse.emf.ecore.EOperation") + " op = "; } else { prefix = "op = "; }} 
1582
    for (GenOperation genOperation : genClass.getGenOperations()) {String prefix = ""; if (genOperation.hasGenericType() || !genOperation.getGenParameters().isEmpty() || !genOperation.getGenExceptions().isEmpty() || !genOperation.getGenTypeParameters().isEmpty()) { if (firstOperationAssignment) { firstOperationAssignment = false; prefix = genModel.getImportedName("org.eclipse.emf.ecore.EOperation") + " op = "; } else { prefix = "op = "; }} 
1571
    stringBuffer.append(TEXT_360);
1583
    stringBuffer.append(TEXT_364);
1572
    if (genModel.useGenerics()) {
1584
    if (genModel.useGenerics()) {
1573
    stringBuffer.append(TEXT_361);
1585
    stringBuffer.append(TEXT_365);
1574
    stringBuffer.append(prefix);
1586
    stringBuffer.append(prefix);
1575
    stringBuffer.append(TEXT_362);
1587
    stringBuffer.append(TEXT_366);
1576
    stringBuffer.append(genClass.getClassifierInstanceName());
1588
    stringBuffer.append(genClass.getClassifierInstanceName());
1577
    stringBuffer.append(TEXT_363);
1589
    stringBuffer.append(TEXT_367);
1578
    if (genOperation.isVoid() || genOperation.hasGenericType()) {
1590
    if (genOperation.isVoid() || genOperation.hasGenericType()) {
1579
    stringBuffer.append(TEXT_364);
1591
    stringBuffer.append(TEXT_368);
1580
    } else {
1592
    } else {
1581
    stringBuffer.append(genPackage.getPackageInstanceVariable(genOperation.getTypeGenPackage()));
1593
    stringBuffer.append(genPackage.getPackageInstanceVariable(genOperation.getTypeGenPackage()));
1582
    stringBuffer.append(TEXT_365);
1594
    stringBuffer.append(TEXT_369);
1583
    stringBuffer.append(genOperation.getTypeClassifierAccessorName());
1595
    stringBuffer.append(genOperation.getTypeClassifierAccessorName());
1584
    stringBuffer.append(TEXT_366);
1596
    stringBuffer.append(TEXT_370);
1585
    }
1597
    }
1586
    stringBuffer.append(TEXT_367);
1598
    stringBuffer.append(TEXT_371);
1587
    stringBuffer.append(genOperation.getName());
1599
    stringBuffer.append(genOperation.getName());
1588
    stringBuffer.append(TEXT_368);
1600
    stringBuffer.append(TEXT_372);
1589
    stringBuffer.append(genOperation.getLowerBound());
1601
    stringBuffer.append(genOperation.getLowerBound());
1590
    stringBuffer.append(TEXT_369);
1602
    stringBuffer.append(TEXT_373);
1591
    stringBuffer.append(genOperation.getUpperBound());
1603
    stringBuffer.append(genOperation.getUpperBound());
1592
    stringBuffer.append(TEXT_370);
1604
    stringBuffer.append(TEXT_374);
1593
    stringBuffer.append(genOperation.getUniqueFlag());
1605
    stringBuffer.append(genOperation.getUniqueFlag());
1594
    stringBuffer.append(TEXT_371);
1606
    stringBuffer.append(TEXT_375);
1595
    stringBuffer.append(genOperation.getOrderedFlag());
1607
    stringBuffer.append(genOperation.getOrderedFlag());
1596
    stringBuffer.append(TEXT_372);
1608
    stringBuffer.append(TEXT_376);
1597
    stringBuffer.append(genModel.getNonNLS());
1609
    stringBuffer.append(genModel.getNonNLS());
1598
    } else if (!genOperation.isVoid()) {
1610
    } else if (!genOperation.isVoid()) {
1599
    if (!genOperation.getEcoreOperation().isOrdered() || !genOperation.getEcoreOperation().isUnique()) { needsAddEOperation = true;
1611
    if (!genOperation.getEcoreOperation().isOrdered() || !genOperation.getEcoreOperation().isUnique()) { needsAddEOperation = true;
1600
    stringBuffer.append(TEXT_373);
1612
    stringBuffer.append(TEXT_377);
1601
    stringBuffer.append(prefix);
1613
    stringBuffer.append(prefix);
1602
    stringBuffer.append(TEXT_374);
1614
    stringBuffer.append(TEXT_378);
1603
    stringBuffer.append(genClass.getClassifierInstanceName());
1615
    stringBuffer.append(genClass.getClassifierInstanceName());
1604
    stringBuffer.append(TEXT_375);
1616
    stringBuffer.append(TEXT_379);
1605
    stringBuffer.append(genPackage.getPackageInstanceVariable(genOperation.getTypeGenPackage()));
1617
    stringBuffer.append(genPackage.getPackageInstanceVariable(genOperation.getTypeGenPackage()));
1606
    stringBuffer.append(TEXT_376);
1618
    stringBuffer.append(TEXT_380);
1607
    stringBuffer.append(genOperation.getTypeClassifierAccessorName());
1619
    stringBuffer.append(genOperation.getTypeClassifierAccessorName());
1608
    stringBuffer.append(TEXT_377);
1620
    stringBuffer.append(TEXT_381);
1609
    stringBuffer.append(genOperation.getName());
1621
    stringBuffer.append(genOperation.getName());
1610
    stringBuffer.append(TEXT_378);
1622
    stringBuffer.append(TEXT_382);
1611
    stringBuffer.append(genOperation.getLowerBound());
1623
    stringBuffer.append(genOperation.getLowerBound());
1612
    stringBuffer.append(TEXT_379);
1624
    stringBuffer.append(TEXT_383);
1613
    stringBuffer.append(genOperation.getUpperBound());
1625
    stringBuffer.append(genOperation.getUpperBound());
1614
    stringBuffer.append(TEXT_380);
1626
    stringBuffer.append(TEXT_384);
1615
    stringBuffer.append(genOperation.getUniqueFlag());
1627
    stringBuffer.append(genOperation.getUniqueFlag());
1616
    stringBuffer.append(TEXT_381);
1628
    stringBuffer.append(TEXT_385);
1617
    stringBuffer.append(genOperation.getOrderedFlag());
1629
    stringBuffer.append(genOperation.getOrderedFlag());
1618
    stringBuffer.append(TEXT_382);
1630
    stringBuffer.append(TEXT_386);
1619
    stringBuffer.append(genModel.getNonNLS());
1631
    stringBuffer.append(genModel.getNonNLS());
1620
    } else {
1632
    } else {
1621
    stringBuffer.append(TEXT_383);
1633
    stringBuffer.append(TEXT_387);
1622
    stringBuffer.append(prefix);
1634
    stringBuffer.append(prefix);
1623
    stringBuffer.append(TEXT_384);
1635
    stringBuffer.append(TEXT_388);
1624
    stringBuffer.append(genClass.getClassifierInstanceName());
1636
    stringBuffer.append(genClass.getClassifierInstanceName());
1625
    stringBuffer.append(TEXT_385);
1637
    stringBuffer.append(TEXT_389);
1626
    stringBuffer.append(genPackage.getPackageInstanceVariable(genOperation.getTypeGenPackage()));
1638
    stringBuffer.append(genPackage.getPackageInstanceVariable(genOperation.getTypeGenPackage()));
1627
    stringBuffer.append(TEXT_386);
1639
    stringBuffer.append(TEXT_390);
1628
    stringBuffer.append(genOperation.getTypeClassifierAccessorName());
1640
    stringBuffer.append(genOperation.getTypeClassifierAccessorName());
1629
    stringBuffer.append(TEXT_387);
1641
    stringBuffer.append(TEXT_391);
1630
    stringBuffer.append(genOperation.getName());
1642
    stringBuffer.append(genOperation.getName());
1631
    stringBuffer.append(TEXT_388);
1643
    stringBuffer.append(TEXT_392);
1632
    stringBuffer.append(genOperation.getLowerBound());
1644
    stringBuffer.append(genOperation.getLowerBound());
1633
    stringBuffer.append(TEXT_389);
1645
    stringBuffer.append(TEXT_393);
1634
    stringBuffer.append(genOperation.getUpperBound());
1646
    stringBuffer.append(genOperation.getUpperBound());
1635
    stringBuffer.append(TEXT_390);
1647
    stringBuffer.append(TEXT_394);
1636
    stringBuffer.append(genModel.getNonNLS());
1648
    stringBuffer.append(genModel.getNonNLS());
1637
    }
1649
    }
1638
    } else {
1650
    } else {
1639
    stringBuffer.append(TEXT_391);
1651
    stringBuffer.append(TEXT_395);
1640
    stringBuffer.append(prefix);
1652
    stringBuffer.append(prefix);
1641
    stringBuffer.append(TEXT_392);
1653
    stringBuffer.append(TEXT_396);
1642
    stringBuffer.append(genClass.getClassifierInstanceName());
1654
    stringBuffer.append(genClass.getClassifierInstanceName());
1643
    stringBuffer.append(TEXT_393);
1655
    stringBuffer.append(TEXT_397);
1644
    stringBuffer.append(genOperation.getName());
1656
    stringBuffer.append(genOperation.getName());
1645
    stringBuffer.append(TEXT_394);
1657
    stringBuffer.append(TEXT_398);
1646
    stringBuffer.append(genModel.getNonNLS());
1658
    stringBuffer.append(genModel.getNonNLS());
1647
    }
1659
    }
1648
    if (genModel.useGenerics()) {
1660
    if (genModel.useGenerics()) {
1649
    for (ListIterator<GenTypeParameter> t=genOperation.getGenTypeParameters().listIterator(); t.hasNext(); ) { GenTypeParameter genTypeParameter = t.next(); String typeParameterVariable = ""; if (!genTypeParameter.getEcoreTypeParameter().getEBounds().isEmpty() || genTypeParameter.isUsed()) { if (maxTypeParameterAssignment <= t.previousIndex()) { ++maxTypeParameterAssignment; typeParameterVariable = genModel.getImportedName("org.eclipse.emf.ecore.ETypeParameter") + " t" + t.nextIndex() + " = "; } else { typeParameterVariable = "t" + t.nextIndex() + " = "; }} 
1661
    for (ListIterator<GenTypeParameter> t=genOperation.getGenTypeParameters().listIterator(); t.hasNext(); ) { GenTypeParameter genTypeParameter = t.next(); String typeParameterVariable = ""; if (!genTypeParameter.getEcoreTypeParameter().getEBounds().isEmpty() || genTypeParameter.isUsed()) { if (maxTypeParameterAssignment <= t.previousIndex()) { ++maxTypeParameterAssignment; typeParameterVariable = genModel.getImportedName("org.eclipse.emf.ecore.ETypeParameter") + " t" + t.nextIndex() + " = "; } else { typeParameterVariable = "t" + t.nextIndex() + " = "; }} 
1650
    stringBuffer.append(TEXT_395);
1662
    stringBuffer.append(TEXT_399);
1651
    stringBuffer.append(typeParameterVariable);
1663
    stringBuffer.append(typeParameterVariable);
1652
    stringBuffer.append(TEXT_396);
1664
    stringBuffer.append(TEXT_400);
1653
    stringBuffer.append(genTypeParameter.getName());
1665
    stringBuffer.append(genTypeParameter.getName());
1654
    stringBuffer.append(TEXT_397);
1666
    stringBuffer.append(TEXT_401);
1655
    stringBuffer.append(genModel.getNonNLS());
1667
    stringBuffer.append(genModel.getNonNLS());
1656
    for (EGenericType typeParameter : genTypeParameter.getEcoreTypeParameter().getEBounds()) {
1668
    for (EGenericType typeParameter : genTypeParameter.getEcoreTypeParameter().getEBounds()) {
1657
    for (InformationIterator i=new InformationIterator(typeParameter); i.hasNext(); ) { Information info = i.next(); String typePrefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; typePrefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1669
    for (InformationIterator i=new InformationIterator(typeParameter); i.hasNext(); ) { Information info = i.next(); String typePrefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; typePrefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1658
    stringBuffer.append(TEXT_398);
1670
    stringBuffer.append(TEXT_402);
1659
    stringBuffer.append(typePrefix);
1671
    stringBuffer.append(typePrefix);
1660
    stringBuffer.append(TEXT_399);
1672
    stringBuffer.append(TEXT_403);
1661
    stringBuffer.append(info.depth + 1);
1673
    stringBuffer.append(info.depth + 1);
1662
    stringBuffer.append(TEXT_400);
1674
    stringBuffer.append(TEXT_404);
1663
    stringBuffer.append(info.type);
1675
    stringBuffer.append(info.type);
1664
    stringBuffer.append(TEXT_401);
1676
    stringBuffer.append(TEXT_405);
1665
    if (info.depth > 0) {
1677
    if (info.depth > 0) {
1666
    stringBuffer.append(TEXT_402);
1678
    stringBuffer.append(TEXT_406);
1667
    stringBuffer.append(info.depth);
1679
    stringBuffer.append(info.depth);
1668
    stringBuffer.append(TEXT_403);
1680
    stringBuffer.append(TEXT_407);
1669
    stringBuffer.append(info.accessor);
1681
    stringBuffer.append(info.accessor);
1670
    stringBuffer.append(TEXT_404);
1682
    stringBuffer.append(TEXT_408);
1671
    stringBuffer.append(info.depth + 1);
1683
    stringBuffer.append(info.depth + 1);
1672
    stringBuffer.append(TEXT_405);
1684
    stringBuffer.append(TEXT_409);
1673
    }
1685
    }
1674
    }
1686
    }
1675
    stringBuffer.append(TEXT_406);
1687
    stringBuffer.append(TEXT_410);
1676
    stringBuffer.append(t.nextIndex());
1688
    stringBuffer.append(t.nextIndex());
1677
    stringBuffer.append(TEXT_407);
1689
    stringBuffer.append(TEXT_411);
1678
    }
1690
    }
1679
    }
1691
    }
1680
    }
1692
    }
1681
    for (GenParameter genParameter : genOperation.getGenParameters()) {
1693
    for (GenParameter genParameter : genOperation.getGenParameters()) {
1682
    if (genParameter.hasGenericType()) {
1694
    if (genParameter.hasGenericType()) {
1683
    for (InformationIterator i=new InformationIterator(genParameter.getEcoreParameter().getEGenericType()); i.hasNext(); ) { Information info = i.next(); String typePrefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; typePrefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1695
    for (InformationIterator i=new InformationIterator(genParameter.getEcoreParameter().getEGenericType()); i.hasNext(); ) { Information info = i.next(); String typePrefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; typePrefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1684
    stringBuffer.append(TEXT_408);
1696
    stringBuffer.append(TEXT_412);
1685
    stringBuffer.append(typePrefix);
1697
    stringBuffer.append(typePrefix);
1686
    stringBuffer.append(TEXT_409);
1698
    stringBuffer.append(TEXT_413);
1687
    stringBuffer.append(info.depth + 1);
1699
    stringBuffer.append(info.depth + 1);
1688
    stringBuffer.append(TEXT_410);
1700
    stringBuffer.append(TEXT_414);
1689
    stringBuffer.append(info.type);
1701
    stringBuffer.append(info.type);
1690
    stringBuffer.append(TEXT_411);
1702
    stringBuffer.append(TEXT_415);
1691
    if (info.depth > 0) {
1703
    if (info.depth > 0) {
1692
    stringBuffer.append(TEXT_412);
1704
    stringBuffer.append(TEXT_416);
1693
    stringBuffer.append(info.depth);
1705
    stringBuffer.append(info.depth);
1694
    stringBuffer.append(TEXT_413);
1706
    stringBuffer.append(TEXT_417);
1695
    stringBuffer.append(info.accessor);
1707
    stringBuffer.append(info.accessor);
1696
    stringBuffer.append(TEXT_414);
1708
    stringBuffer.append(TEXT_418);
1697
    stringBuffer.append(info.depth + 1);
1709
    stringBuffer.append(info.depth + 1);
1698
    stringBuffer.append(TEXT_415);
1710
    stringBuffer.append(TEXT_419);
1699
    }
1711
    }
1700
    }
1712
    }
1701
    }
1713
    }
1702
    if (genModel.useGenerics()) {
1714
    if (genModel.useGenerics()) {
1703
    stringBuffer.append(TEXT_416);
1715
    stringBuffer.append(TEXT_420);
1704
    if (genParameter.hasGenericType()){
1716
    if (genParameter.hasGenericType()){
1705
    stringBuffer.append(TEXT_417);
1717
    stringBuffer.append(TEXT_421);
1706
    } else {
1718
    } else {
1707
    stringBuffer.append(genPackage.getPackageInstanceVariable(genParameter.getTypeGenPackage()));
1719
    stringBuffer.append(genPackage.getPackageInstanceVariable(genParameter.getTypeGenPackage()));
1708
    stringBuffer.append(TEXT_418);
1720
    stringBuffer.append(TEXT_422);
1709
    stringBuffer.append(genParameter.getTypeClassifierAccessorName());
1721
    stringBuffer.append(genParameter.getTypeClassifierAccessorName());
1710
    stringBuffer.append(TEXT_419);
1722
    stringBuffer.append(TEXT_423);
1711
    }
1723
    }
1712
    stringBuffer.append(TEXT_420);
1724
    stringBuffer.append(TEXT_424);
1713
    stringBuffer.append(genParameter.getName());
1725
    stringBuffer.append(genParameter.getName());
1714
    stringBuffer.append(TEXT_421);
1726
    stringBuffer.append(TEXT_425);
1715
    stringBuffer.append(genParameter.getLowerBound());
1727
    stringBuffer.append(genParameter.getLowerBound());
1716
    stringBuffer.append(TEXT_422);
1728
    stringBuffer.append(TEXT_426);
1717
    stringBuffer.append(genParameter.getUpperBound());
1729
    stringBuffer.append(genParameter.getUpperBound());
1718
    stringBuffer.append(TEXT_423);
1730
    stringBuffer.append(TEXT_427);
1719
    stringBuffer.append(genParameter.getUniqueFlag());
1731
    stringBuffer.append(genParameter.getUniqueFlag());
1720
    stringBuffer.append(TEXT_424);
1732
    stringBuffer.append(TEXT_428);
1721
    stringBuffer.append(genParameter.getOrderedFlag());
1733
    stringBuffer.append(genParameter.getOrderedFlag());
1722
    stringBuffer.append(TEXT_425);
1734
    stringBuffer.append(TEXT_429);
1723
    stringBuffer.append(genModel.getNonNLS());
1735
    stringBuffer.append(genModel.getNonNLS());
1724
    } else if (!genParameter.getEcoreParameter().isOrdered() || !genParameter.getEcoreParameter().isUnique()) { needsAddEParameter = true;
1736
    } else if (!genParameter.getEcoreParameter().isOrdered() || !genParameter.getEcoreParameter().isUnique()) { needsAddEParameter = true;
1725
    stringBuffer.append(TEXT_426);
1737
    stringBuffer.append(TEXT_430);
1726
    if (genParameter.hasGenericType()){
1738
    if (genParameter.hasGenericType()){
1727
    stringBuffer.append(TEXT_427);
1739
    stringBuffer.append(TEXT_431);
1728
    } else {
1740
    } else {
1729
    stringBuffer.append(genPackage.getPackageInstanceVariable(genParameter.getTypeGenPackage()));
1741
    stringBuffer.append(genPackage.getPackageInstanceVariable(genParameter.getTypeGenPackage()));
1730
    stringBuffer.append(TEXT_428);
1742
    stringBuffer.append(TEXT_432);
1731
    stringBuffer.append(genParameter.getTypeClassifierAccessorName());
1743
    stringBuffer.append(genParameter.getTypeClassifierAccessorName());
1732
    stringBuffer.append(TEXT_429);
1744
    stringBuffer.append(TEXT_433);
1733
    }
1745
    }
1734
    stringBuffer.append(TEXT_430);
1746
    stringBuffer.append(TEXT_434);
1735
    stringBuffer.append(genParameter.getName());
1747
    stringBuffer.append(genParameter.getName());
1736
    stringBuffer.append(TEXT_431);
1748
    stringBuffer.append(TEXT_435);
1737
    stringBuffer.append(genParameter.getLowerBound());
1749
    stringBuffer.append(genParameter.getLowerBound());
1738
    stringBuffer.append(TEXT_432);
1750
    stringBuffer.append(TEXT_436);
1739
    stringBuffer.append(genParameter.getUpperBound());
1751
    stringBuffer.append(genParameter.getUpperBound());
1740
    stringBuffer.append(TEXT_433);
1752
    stringBuffer.append(TEXT_437);
1741
    stringBuffer.append(genParameter.getUniqueFlag());
1753
    stringBuffer.append(genParameter.getUniqueFlag());
1742
    stringBuffer.append(TEXT_434);
1754
    stringBuffer.append(TEXT_438);
1743
    stringBuffer.append(genParameter.getOrderedFlag());
1755
    stringBuffer.append(genParameter.getOrderedFlag());
1744
    stringBuffer.append(TEXT_435);
1756
    stringBuffer.append(TEXT_439);
1745
    stringBuffer.append(genModel.getNonNLS());
1757
    stringBuffer.append(genModel.getNonNLS());
1746
    } else {
1758
    } else {
1747
    stringBuffer.append(TEXT_436);
1759
    stringBuffer.append(TEXT_440);
1748
    if (genParameter.hasGenericType()){
1760
    if (genParameter.hasGenericType()){
1749
    stringBuffer.append(TEXT_437);
1761
    stringBuffer.append(TEXT_441);
1750
    } else {
1762
    } else {
1751
    stringBuffer.append(genPackage.getPackageInstanceVariable(genParameter.getTypeGenPackage()));
1763
    stringBuffer.append(genPackage.getPackageInstanceVariable(genParameter.getTypeGenPackage()));
1752
    stringBuffer.append(TEXT_438);
1764
    stringBuffer.append(TEXT_442);
1753
    stringBuffer.append(genParameter.getTypeClassifierAccessorName());
1765
    stringBuffer.append(genParameter.getTypeClassifierAccessorName());
1754
    stringBuffer.append(TEXT_439);
1766
    stringBuffer.append(TEXT_443);
1755
    }
1767
    }
1756
    stringBuffer.append(TEXT_440);
1768
    stringBuffer.append(TEXT_444);
1757
    stringBuffer.append(genParameter.getName());
1769
    stringBuffer.append(genParameter.getName());
1758
    stringBuffer.append(TEXT_441);
1770
    stringBuffer.append(TEXT_445);
1759
    stringBuffer.append(genParameter.getLowerBound());
1771
    stringBuffer.append(genParameter.getLowerBound());
1760
    stringBuffer.append(TEXT_442);
1772
    stringBuffer.append(TEXT_446);
1761
    stringBuffer.append(genParameter.getUpperBound());
1773
    stringBuffer.append(genParameter.getUpperBound());
1762
    stringBuffer.append(TEXT_443);
1774
    stringBuffer.append(TEXT_447);
1763
    stringBuffer.append(genModel.getNonNLS());
1775
    stringBuffer.append(genModel.getNonNLS());
1764
    }
1776
    }
1765
    }
1777
    }
1766
    if (genOperation.hasGenericExceptions()) {
1778
    if (genOperation.hasGenericExceptions()) {
1767
    for (EGenericType genericExceptions : genOperation.getEcoreOperation().getEGenericExceptions()) {
1779
    for (EGenericType genericExceptions : genOperation.getEcoreOperation().getEGenericExceptions()) {
1768
    for (InformationIterator i=new InformationIterator(genericExceptions); i.hasNext(); ) { Information info = i.next(); String typePrefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; typePrefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1780
    for (InformationIterator i=new InformationIterator(genericExceptions); i.hasNext(); ) { Information info = i.next(); String typePrefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; typePrefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1769
    stringBuffer.append(TEXT_444);
1781
    stringBuffer.append(TEXT_448);
1770
    stringBuffer.append(typePrefix);
1782
    stringBuffer.append(typePrefix);
1771
    stringBuffer.append(TEXT_445);
1783
    stringBuffer.append(TEXT_449);
1772
    stringBuffer.append(info.depth + 1);
1784
    stringBuffer.append(info.depth + 1);
1773
    stringBuffer.append(TEXT_446);
1785
    stringBuffer.append(TEXT_450);
1774
    stringBuffer.append(info.type);
1786
    stringBuffer.append(info.type);
1775
    stringBuffer.append(TEXT_447);
1787
    stringBuffer.append(TEXT_451);
1776
    if (info.depth > 0) {
1788
    if (info.depth > 0) {
1777
    stringBuffer.append(TEXT_448);
1789
    stringBuffer.append(TEXT_452);
1778
    stringBuffer.append(info.depth);
1790
    stringBuffer.append(info.depth);
1779
    stringBuffer.append(TEXT_449);
1791
    stringBuffer.append(TEXT_453);
1780
    stringBuffer.append(info.accessor);
1792
    stringBuffer.append(info.accessor);
1781
    stringBuffer.append(TEXT_450);
1793
    stringBuffer.append(TEXT_454);
1782
    stringBuffer.append(info.depth + 1);
1794
    stringBuffer.append(info.depth + 1);
1783
    stringBuffer.append(TEXT_451);
1795
    stringBuffer.append(TEXT_455);
1784
    }
1796
    }
1785
    stringBuffer.append(TEXT_452);
1797
    stringBuffer.append(TEXT_456);
1786
    stringBuffer.append(info.depth + 1);
1798
    stringBuffer.append(info.depth + 1);
1787
    stringBuffer.append(TEXT_453);
1799
    stringBuffer.append(TEXT_457);
1788
    }
1800
    }
1789
    }
1801
    }
1790
    } else {
1802
    } else {
1791
    for (GenClassifier genException : genOperation.getGenExceptions()) {
1803
    for (GenClassifier genException : genOperation.getGenExceptions()) {
1792
    stringBuffer.append(TEXT_454);
1804
    stringBuffer.append(TEXT_458);
1793
    stringBuffer.append(genPackage.getPackageInstanceVariable(genException.getGenPackage()));
1805
    stringBuffer.append(genPackage.getPackageInstanceVariable(genException.getGenPackage()));
1794
    stringBuffer.append(TEXT_455);
1806
    stringBuffer.append(TEXT_459);
1795
    stringBuffer.append(genException.getClassifierAccessorName());
1807
    stringBuffer.append(genException.getClassifierAccessorName());
1796
    stringBuffer.append(TEXT_456);
1808
    stringBuffer.append(TEXT_460);
1797
    }
1809
    }
1798
    }
1810
    }
1799
    if (!genOperation.isVoid() && genOperation.hasGenericType()) {
1811
    if (!genOperation.isVoid() && genOperation.hasGenericType()) {
1800
    for (InformationIterator i=new InformationIterator(genOperation.getEcoreOperation().getEGenericType()); i.hasNext(); ) { Information info = i.next(); String typePrefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; typePrefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1812
    for (InformationIterator i=new InformationIterator(genOperation.getEcoreOperation().getEGenericType()); i.hasNext(); ) { Information info = i.next(); String typePrefix = ""; if (maxGenericTypeAssignment <= info.depth) { ++maxGenericTypeAssignment; typePrefix = genModel.getImportedName("org.eclipse.emf.ecore.EGenericType") + " "; }
1801
    stringBuffer.append(TEXT_457);
1813
    stringBuffer.append(TEXT_461);
1802
    stringBuffer.append(typePrefix);
1814
    stringBuffer.append(typePrefix);
1803
    stringBuffer.append(TEXT_458);
1815
    stringBuffer.append(TEXT_462);
1804
    stringBuffer.append(info.depth + 1);
1816
    stringBuffer.append(info.depth + 1);
1805
    stringBuffer.append(TEXT_459);
1817
    stringBuffer.append(TEXT_463);
1806
    stringBuffer.append(info.type);
1818
    stringBuffer.append(info.type);
1807
    stringBuffer.append(TEXT_460);
1819
    stringBuffer.append(TEXT_464);
1808
    if (info.depth > 0) {
1820
    if (info.depth > 0) {
1809
    stringBuffer.append(TEXT_461);
1821
    stringBuffer.append(TEXT_465);
1810
    stringBuffer.append(info.depth);
1822
    stringBuffer.append(info.depth);
1811
    stringBuffer.append(TEXT_462);
1823
    stringBuffer.append(TEXT_466);
1812
    stringBuffer.append(info.accessor);
1824
    stringBuffer.append(info.accessor);
1813
    stringBuffer.append(TEXT_463);
1825
    stringBuffer.append(TEXT_467);
1814
    stringBuffer.append(info.depth + 1);
1826
    stringBuffer.append(info.depth + 1);
1815
    stringBuffer.append(TEXT_464);
1827
    stringBuffer.append(TEXT_468);
1816
    }
1828
    }
1817
    }
1829
    }
1818
    stringBuffer.append(TEXT_465);
1830
    stringBuffer.append(TEXT_469);
1819
    }
1831
    }
1820
    }
1832
    }
1821
    if (c.hasNext()) {
1833
    if (c.hasNext()) {
1822
    stringBuffer.append(TEXT_466);
1834
    stringBuffer.append(TEXT_470);
1823
    }
1835
    }
1824
    }
1836
    }
1825
    }
1837
    }
1826
    if (!genPackage.getGenEnums().isEmpty()) {
1838
    if (!genPackage.getGenEnums().isEmpty()) {
1827
    stringBuffer.append(TEXT_467);
1839
    stringBuffer.append(TEXT_471);
1828
    for (Iterator<GenEnum> e=genPackage.getGenEnums().iterator(); e.hasNext();) { GenEnum genEnum = e.next();
1840
    for (Iterator<GenEnum> e=genPackage.getGenEnums().iterator(); e.hasNext();) { GenEnum genEnum = e.next();
1829
    stringBuffer.append(TEXT_468);
1841
    stringBuffer.append(TEXT_472);
1830
    stringBuffer.append(genEnum.getClassifierInstanceName());
1842
    stringBuffer.append(genEnum.getClassifierInstanceName());
1831
    stringBuffer.append(TEXT_469);
1843
    stringBuffer.append(TEXT_473);
1832
    stringBuffer.append(genEnum.getImportedName());
1844
    stringBuffer.append(genEnum.getImportedName());
1833
    stringBuffer.append(TEXT_470);
1845
    stringBuffer.append(TEXT_474);
1834
    stringBuffer.append(genEnum.getName());
1846
    stringBuffer.append(genEnum.getName());
1835
    stringBuffer.append(TEXT_471);
1847
    stringBuffer.append(TEXT_475);
1836
    stringBuffer.append(genModel.getNonNLS());
1848
    stringBuffer.append(genModel.getNonNLS());
1837
    for (GenEnumLiteral genEnumLiteral : genEnum.getGenEnumLiterals()) {
1849
    for (GenEnumLiteral genEnumLiteral : genEnum.getGenEnumLiterals()) {
1838
    stringBuffer.append(TEXT_472);
1850
    stringBuffer.append(TEXT_476);
1839
    stringBuffer.append(genEnum.getClassifierInstanceName());
1851
    stringBuffer.append(genEnum.getClassifierInstanceName());
1840
    stringBuffer.append(TEXT_473);
1852
    stringBuffer.append(TEXT_477);
1841
    stringBuffer.append(genEnum.getImportedName().equals(genEnum.getClassifierID()) ? genEnum.getQualifiedName() : genEnum.getImportedName());
1853
    stringBuffer.append(genEnum.getImportedName().equals(genEnum.getClassifierID()) ? genEnum.getQualifiedName() : genEnum.getImportedName());
1842
    stringBuffer.append(TEXT_474);
1854
    stringBuffer.append(TEXT_478);
1843
    stringBuffer.append(genEnumLiteral.getEnumLiteralInstanceConstantName());
1855
    stringBuffer.append(genEnumLiteral.getEnumLiteralInstanceConstantName());
1844
    stringBuffer.append(TEXT_475);
1856
    stringBuffer.append(TEXT_479);
1845
    }
1857
    }
1846
    if (e.hasNext()) {
1858
    if (e.hasNext()) {
1847
    stringBuffer.append(TEXT_476);
1859
    stringBuffer.append(TEXT_480);
1848
    }
1860
    }
1849
    }
1861
    }
1850
    }
1862
    }
1851
    if (!genPackage.getGenDataTypes().isEmpty()) {
1863
    if (!genPackage.getGenDataTypes().isEmpty()) {
1852
    stringBuffer.append(TEXT_477);
1864
    stringBuffer.append(TEXT_481);
1853
    for (GenDataType genDataType : genPackage.getGenDataTypes()) {boolean hasInstanceTypeName = genModel.useGenerics() && genDataType.getEcoreDataType().getInstanceTypeName() != null && genDataType.getEcoreDataType().getInstanceTypeName().contains("<");
1865
    for (GenDataType genDataType : genPackage.getGenDataTypes()) {boolean hasInstanceTypeName = genModel.useGenerics() && genDataType.getEcoreDataType().getInstanceTypeName() != null && genDataType.getEcoreDataType().getInstanceTypeName().contains("<");
1854
    stringBuffer.append(TEXT_478);
1866
    stringBuffer.append(TEXT_482);
1855
    stringBuffer.append(genDataType.getClassifierInstanceName());
1867
    stringBuffer.append(genDataType.getClassifierInstanceName());
1856
    stringBuffer.append(TEXT_479);
1868
    stringBuffer.append(TEXT_483);
1857
    stringBuffer.append(genDataType.getRawImportedInstanceClassName());
1869
    stringBuffer.append(genDataType.getRawImportedInstanceClassName());
1858
    stringBuffer.append(TEXT_480);
1870
    stringBuffer.append(TEXT_484);
1859
    stringBuffer.append(genDataType.getName());
1871
    stringBuffer.append(genDataType.getName());
1860
    stringBuffer.append(TEXT_481);
1872
    stringBuffer.append(TEXT_485);
1861
    stringBuffer.append(genDataType.getSerializableFlag());
1873
    stringBuffer.append(genDataType.getSerializableFlag());
1862
    stringBuffer.append(TEXT_482);
1874
    stringBuffer.append(TEXT_486);
1863
    stringBuffer.append(genDataType.getGeneratedInstanceClassFlag());
1875
    stringBuffer.append(genDataType.getGeneratedInstanceClassFlag());
1864
    if (hasInstanceTypeName) {
1876
    if (hasInstanceTypeName) {
1865
    stringBuffer.append(TEXT_483);
1877
    stringBuffer.append(TEXT_487);
1866
    stringBuffer.append(genDataType.getEcoreDataType().getInstanceTypeName());
1878
    stringBuffer.append(genDataType.getEcoreDataType().getInstanceTypeName());
1867
    stringBuffer.append(TEXT_484);
1879
    stringBuffer.append(TEXT_488);
1868
    }
1880
    }
1869
    stringBuffer.append(TEXT_485);
1881
    stringBuffer.append(TEXT_489);
1870
    stringBuffer.append(genModel.getNonNLS());
1882
    stringBuffer.append(genModel.getNonNLS());
1871
    if (hasInstanceTypeName) {
1883
    if (hasInstanceTypeName) {
1872
    stringBuffer.append(genModel.getNonNLS(2));
1884
    stringBuffer.append(genModel.getNonNLS(2));
Lines 1874-1891 Link Here
1874
    }
1886
    }
1875
    }
1887
    }
1876
    if (genPackage.getSuperGenPackage() == null) {
1888
    if (genPackage.getSuperGenPackage() == null) {
1877
    stringBuffer.append(TEXT_486);
1878
    }
1879
    if (!genPackage.isEcorePackage() && !genPackage.getAnnotationSources().isEmpty()) {
1880
    stringBuffer.append(TEXT_487);
1881
    for (String annotationSource : genPackage.getAnnotationSources()) {
1882
    stringBuffer.append(TEXT_488);
1883
    stringBuffer.append(annotationSource);
1884
    stringBuffer.append(TEXT_489);
1885
    stringBuffer.append(genPackage.getAnnotationSourceIdentifier(annotationSource));
1886
    stringBuffer.append(TEXT_490);
1889
    stringBuffer.append(TEXT_490);
1887
    }
1890
    }
1888
    }
1891
    if (!genPackage.isEcorePackage() && !genPackage.getAnnotationSources().isEmpty()) {
1889
    stringBuffer.append(TEXT_491);
1892
    stringBuffer.append(TEXT_491);
1890
    for (String annotationSource : genPackage.getAnnotationSources()) {
1893
    for (String annotationSource : genPackage.getAnnotationSources()) {
1891
    stringBuffer.append(TEXT_492);
1894
    stringBuffer.append(TEXT_492);
Lines 1893-2155 Link Here
1893
    stringBuffer.append(TEXT_493);
1896
    stringBuffer.append(TEXT_493);
1894
    stringBuffer.append(genPackage.getAnnotationSourceIdentifier(annotationSource));
1897
    stringBuffer.append(genPackage.getAnnotationSourceIdentifier(annotationSource));
1895
    stringBuffer.append(TEXT_494);
1898
    stringBuffer.append(TEXT_494);
1896
    if (annotationSource == null) {
1899
    }
1900
    }
1897
    stringBuffer.append(TEXT_495);
1901
    stringBuffer.append(TEXT_495);
1898
    } else {
1902
    for (String annotationSource : genPackage.getAnnotationSources()) {
1899
    stringBuffer.append(TEXT_496);
1903
    stringBuffer.append(TEXT_496);
1900
    stringBuffer.append(annotationSource);
1904
    stringBuffer.append(annotationSource);
1901
    stringBuffer.append(TEXT_497);
1905
    stringBuffer.append(TEXT_497);
1906
    stringBuffer.append(genPackage.getAnnotationSourceIdentifier(annotationSource));
1907
    stringBuffer.append(TEXT_498);
1908
    if (annotationSource == null) {
1909
    stringBuffer.append(TEXT_499);
1910
    } else {
1911
    stringBuffer.append(TEXT_500);
1912
    stringBuffer.append(annotationSource);
1913
    stringBuffer.append(TEXT_501);
1902
    stringBuffer.append(genModel.getNonNLS());
1914
    stringBuffer.append(genModel.getNonNLS());
1903
    }
1915
    }
1904
    for (EAnnotation eAnnotation : genPackage.getAllAnnotations()) { List<GenPackage.AnnotationReferenceData> annotationReferenceDataList = genPackage.getReferenceData(eAnnotation);
1916
    for (EAnnotation eAnnotation : genPackage.getAllAnnotations()) { List<GenPackage.AnnotationReferenceData> annotationReferenceDataList = genPackage.getReferenceData(eAnnotation);
1905
    stringBuffer.append(TEXT_498);
1917
    stringBuffer.append(TEXT_502);
1906
    if (annotationSource == null ? eAnnotation.getSource() == null : annotationSource.equals(eAnnotation.getSource())) {
1918
    if (annotationSource == null ? eAnnotation.getSource() == null : annotationSource.equals(eAnnotation.getSource())) {
1907
    stringBuffer.append(TEXT_499);
1919
    stringBuffer.append(TEXT_503);
1908
    stringBuffer.append(genPackage.getAnnotatedModelElementAccessor(eAnnotation));
1920
    stringBuffer.append(genPackage.getAnnotatedModelElementAccessor(eAnnotation));
1909
    stringBuffer.append(TEXT_500);
1921
    stringBuffer.append(TEXT_504);
1910
    for (Iterator<Map.Entry<String, String>> k = eAnnotation.getDetails().iterator(); k.hasNext();) { Map.Entry<String, String> detail = k.next(); String key = Literals.toStringLiteral(detail.getKey(), genModel); String value = Literals.toStringLiteral(detail.getValue(), genModel);
1922
    for (Iterator<Map.Entry<String, String>> k = eAnnotation.getDetails().iterator(); k.hasNext();) { Map.Entry<String, String> detail = k.next(); String key = Literals.toStringLiteral(detail.getKey(), genModel); String value = Literals.toStringLiteral(detail.getValue(), genModel);
1911
    stringBuffer.append(TEXT_501);
1923
    stringBuffer.append(TEXT_505);
1912
    stringBuffer.append(key);
1924
    stringBuffer.append(key);
1913
    stringBuffer.append(TEXT_502);
1925
    stringBuffer.append(TEXT_506);
1914
    stringBuffer.append(value);
1926
    stringBuffer.append(value);
1915
    stringBuffer.append(k.hasNext() ? "," : "");
1927
    stringBuffer.append(k.hasNext() ? "," : "");
1916
    stringBuffer.append(genModel.getNonNLS(key + value));
1928
    stringBuffer.append(genModel.getNonNLS(key + value));
1917
    }
1929
    }
1918
    stringBuffer.append(TEXT_503);
1930
    stringBuffer.append(TEXT_507);
1919
    if (annotationReferenceDataList.isEmpty()) {
1931
    if (annotationReferenceDataList.isEmpty()) {
1920
    stringBuffer.append(TEXT_504);
1932
    stringBuffer.append(TEXT_508);
1921
    } else {
1933
    } else {
1922
    stringBuffer.append(TEXT_505);
1934
    stringBuffer.append(TEXT_509);
1923
    }
1935
    }
1924
    if (!annotationReferenceDataList.isEmpty()) {
1936
    if (!annotationReferenceDataList.isEmpty()) {
1925
    stringBuffer.append(TEXT_506);
1937
    stringBuffer.append(TEXT_510);
1926
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
1938
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
1927
    stringBuffer.append(TEXT_507);
1939
    stringBuffer.append(TEXT_511);
1928
    for (Iterator<GenPackage.AnnotationReferenceData> k = annotationReferenceDataList.iterator(); k.hasNext();) { GenPackage.AnnotationReferenceData annotationReferenceData = k.next();
1940
    for (Iterator<GenPackage.AnnotationReferenceData> k = annotationReferenceDataList.iterator(); k.hasNext();) { GenPackage.AnnotationReferenceData annotationReferenceData = k.next();
1929
    stringBuffer.append(TEXT_508);
1941
    stringBuffer.append(TEXT_512);
1930
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
1942
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
1931
    stringBuffer.append(TEXT_509);
1943
    stringBuffer.append(TEXT_513);
1932
    if (annotationReferenceData.containingGenPackage != genPackage) {
1944
    if (annotationReferenceData.containingGenPackage != genPackage) {
1933
    stringBuffer.append(annotationReferenceData.containingGenPackage.getImportedPackageInterfaceName());
1945
    stringBuffer.append(annotationReferenceData.containingGenPackage.getImportedPackageInterfaceName());
1934
    stringBuffer.append(TEXT_510);
1946
    stringBuffer.append(TEXT_514);
1935
    }
1947
    }
1936
    stringBuffer.append(TEXT_511);
1948
    stringBuffer.append(TEXT_515);
1937
    stringBuffer.append(annotationReferenceData.uriFragment);
1949
    stringBuffer.append(annotationReferenceData.uriFragment);
1938
    stringBuffer.append(TEXT_512);
1950
    stringBuffer.append(TEXT_516);
1939
    if (k.hasNext()) {
1951
    if (k.hasNext()) {
1940
    stringBuffer.append(TEXT_513);
1952
    stringBuffer.append(TEXT_517);
1941
    }
1953
    }
1942
    stringBuffer.append(genModel.getNonNLS());
1954
    stringBuffer.append(genModel.getNonNLS());
1943
    }
1955
    }
1944
    stringBuffer.append(TEXT_514);
1956
    stringBuffer.append(TEXT_518);
1945
    }
1957
    }
1946
    }
1958
    }
1947
    for (EAnnotation nestedEAnnotation : genPackage.getAllNestedAnnotations(eAnnotation)) {String nestedAnnotationSource = nestedEAnnotation.getSource(); int depth = 1; for (EObject eContainer = nestedEAnnotation.eContainer(); eContainer != eAnnotation; eContainer = eContainer.eContainer()) { ++depth; } List<GenPackage.AnnotationReferenceData> nestedAnnotationReferenceDataList = genPackage.getReferenceData(nestedEAnnotation);
1959
    for (EAnnotation nestedEAnnotation : genPackage.getAllNestedAnnotations(eAnnotation)) {String nestedAnnotationSource = nestedEAnnotation.getSource(); int depth = 1; for (EObject eContainer = nestedEAnnotation.eContainer(); eContainer != eAnnotation; eContainer = eContainer.eContainer()) { ++depth; } List<GenPackage.AnnotationReferenceData> nestedAnnotationReferenceDataList = genPackage.getReferenceData(nestedEAnnotation);
1948
    stringBuffer.append(TEXT_515);
1960
    stringBuffer.append(TEXT_519);
1949
    stringBuffer.append(genPackage.getAnnotatedModelElementAccessor(eAnnotation));
1961
    stringBuffer.append(genPackage.getAnnotatedModelElementAccessor(eAnnotation));
1950
    stringBuffer.append(TEXT_516);
1962
    stringBuffer.append(TEXT_520);
1951
    stringBuffer.append(depth);
1963
    stringBuffer.append(depth);
1952
    stringBuffer.append(TEXT_517);
1964
    stringBuffer.append(TEXT_521);
1953
    if (nestedAnnotationSource == null) {
1965
    if (nestedAnnotationSource == null) {
1954
    stringBuffer.append(TEXT_518);
1966
    stringBuffer.append(TEXT_522);
1955
    } else {
1967
    } else {
1956
    stringBuffer.append(TEXT_519);
1968
    stringBuffer.append(TEXT_523);
1957
    stringBuffer.append(nestedAnnotationSource);
1969
    stringBuffer.append(nestedAnnotationSource);
1958
    stringBuffer.append(TEXT_520);
1970
    stringBuffer.append(TEXT_524);
1959
    stringBuffer.append(genModel.getNonNLS());
1971
    stringBuffer.append(genModel.getNonNLS());
1960
    }
1972
    }
1961
    stringBuffer.append(TEXT_521);
1973
    stringBuffer.append(TEXT_525);
1962
    for (Iterator<Map.Entry<String, String>> l = nestedEAnnotation.getDetails().iterator(); l.hasNext();) { Map.Entry<String, String> detail = l.next(); String key = Literals.toStringLiteral(detail.getKey(), genModel); String value = Literals.toStringLiteral(detail.getValue(), genModel);
1974
    for (Iterator<Map.Entry<String, String>> l = nestedEAnnotation.getDetails().iterator(); l.hasNext();) { Map.Entry<String, String> detail = l.next(); String key = Literals.toStringLiteral(detail.getKey(), genModel); String value = Literals.toStringLiteral(detail.getValue(), genModel);
1963
    stringBuffer.append(TEXT_522);
1975
    stringBuffer.append(TEXT_526);
1964
    stringBuffer.append(key);
1976
    stringBuffer.append(key);
1965
    stringBuffer.append(TEXT_523);
1977
    stringBuffer.append(TEXT_527);
1966
    stringBuffer.append(value);
1978
    stringBuffer.append(value);
1967
    stringBuffer.append(l.hasNext() ? "," : "");
1979
    stringBuffer.append(l.hasNext() ? "," : "");
1968
    stringBuffer.append(genModel.getNonNLS(key + value));
1980
    stringBuffer.append(genModel.getNonNLS(key + value));
1969
    }
1981
    }
1970
    stringBuffer.append(TEXT_524);
1982
    stringBuffer.append(TEXT_528);
1971
    if (nestedAnnotationReferenceDataList.isEmpty()) {
1983
    if (nestedAnnotationReferenceDataList.isEmpty()) {
1972
    stringBuffer.append(TEXT_525);
1984
    stringBuffer.append(TEXT_529);
1973
    } else {
1985
    } else {
1974
    stringBuffer.append(TEXT_526);
1986
    stringBuffer.append(TEXT_530);
1975
    }
1987
    }
1976
    if (!nestedAnnotationReferenceDataList.isEmpty()) {
1988
    if (!nestedAnnotationReferenceDataList.isEmpty()) {
1977
    stringBuffer.append(TEXT_527);
1989
    stringBuffer.append(TEXT_531);
1978
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
1990
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
1979
    stringBuffer.append(TEXT_528);
1991
    stringBuffer.append(TEXT_532);
1980
    for (Iterator<GenPackage.AnnotationReferenceData> l = nestedAnnotationReferenceDataList.iterator(); l.hasNext();) { GenPackage.AnnotationReferenceData annotationReferenceData = l.next();
1992
    for (Iterator<GenPackage.AnnotationReferenceData> l = nestedAnnotationReferenceDataList.iterator(); l.hasNext();) { GenPackage.AnnotationReferenceData annotationReferenceData = l.next();
1981
    stringBuffer.append(TEXT_529);
1993
    stringBuffer.append(TEXT_533);
1982
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
1994
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
1983
    stringBuffer.append(TEXT_530);
1995
    stringBuffer.append(TEXT_534);
1984
    if (annotationReferenceData.containingGenPackage != genPackage) {
1996
    if (annotationReferenceData.containingGenPackage != genPackage) {
1985
    stringBuffer.append(annotationReferenceData.containingGenPackage.getImportedPackageInterfaceName());
1997
    stringBuffer.append(annotationReferenceData.containingGenPackage.getImportedPackageInterfaceName());
1986
    stringBuffer.append(TEXT_531);
1998
    stringBuffer.append(TEXT_535);
1987
    }
1999
    }
1988
    stringBuffer.append(TEXT_532);
2000
    stringBuffer.append(TEXT_536);
1989
    stringBuffer.append(annotationReferenceData.uriFragment);
2001
    stringBuffer.append(annotationReferenceData.uriFragment);
1990
    stringBuffer.append(TEXT_533);
2002
    stringBuffer.append(TEXT_537);
1991
    if (l.hasNext()) {
2003
    if (l.hasNext()) {
1992
    stringBuffer.append(TEXT_534);
2004
    stringBuffer.append(TEXT_538);
1993
    }
2005
    }
1994
    stringBuffer.append(genModel.getNonNLS());
2006
    stringBuffer.append(genModel.getNonNLS());
1995
    }
2007
    }
1996
    stringBuffer.append(TEXT_535);
2008
    stringBuffer.append(TEXT_539);
1997
    }
2009
    }
1998
    }
2010
    }
1999
    }
2011
    }
2000
    stringBuffer.append(TEXT_536);
2012
    stringBuffer.append(TEXT_540);
2001
    }
2013
    }
2002
    } else {
2014
    } else {
2003
    if (genPackage.isLoadingInitialization()) {
2015
    if (genPackage.isLoadingInitialization()) {
2004
    stringBuffer.append(TEXT_537);
2016
    stringBuffer.append(TEXT_541);
2005
    stringBuffer.append(genModel.getImportedName("java.net.URL"));
2017
    stringBuffer.append(genModel.getImportedName("java.net.URL"));
2006
    stringBuffer.append(TEXT_538);
2018
    stringBuffer.append(TEXT_542);
2007
    stringBuffer.append(genModel.getNonNLS());
2019
    stringBuffer.append(genModel.getNonNLS());
2008
    stringBuffer.append(TEXT_539);
2020
    stringBuffer.append(TEXT_543);
2009
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
2021
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
2010
    stringBuffer.append(TEXT_540);
2022
    stringBuffer.append(TEXT_544);
2011
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
2023
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.URI"));
2012
    stringBuffer.append(TEXT_541);
2024
    stringBuffer.append(TEXT_545);
2013
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.resource.Resource"));
2025
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.resource.Resource"));
2014
    stringBuffer.append(TEXT_542);
2026
    stringBuffer.append(TEXT_546);
2015
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl"));
2027
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl"));
2016
    stringBuffer.append(TEXT_543);
2028
    stringBuffer.append(TEXT_547);
2017
    stringBuffer.append(genModel.getImportedName("java.io.IOException"));
2029
    stringBuffer.append(genModel.getImportedName("java.io.IOException"));
2018
    stringBuffer.append(TEXT_544);
2030
    stringBuffer.append(TEXT_548);
2019
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.WrappedException"));
2031
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.WrappedException"));
2020
    stringBuffer.append(TEXT_545);
2032
    stringBuffer.append(TEXT_549);
2021
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
2033
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
2022
    stringBuffer.append(TEXT_546);
2034
    stringBuffer.append(TEXT_550);
2023
    }
2035
    }
2024
    stringBuffer.append(TEXT_547);
2036
    stringBuffer.append(TEXT_551);
2025
    if (genModel.useClassOverrideAnnotation()) {
2037
    if (genModel.useClassOverrideAnnotation()) {
2026
    stringBuffer.append(TEXT_548);
2038
    stringBuffer.append(TEXT_552);
2027
    }
2039
    }
2028
    stringBuffer.append(TEXT_549);
2040
    stringBuffer.append(TEXT_553);
2029
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EClassifier"));
2041
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EClassifier"));
2030
    stringBuffer.append(TEXT_550);
2042
    stringBuffer.append(TEXT_554);
2031
    ArrayList<GenClass> dynamicGenClasses = new ArrayList<GenClass>(); for (GenClass genClass : genPackage.getGenClasses()) { if (genClass.isDynamic()) { dynamicGenClasses.add(genClass); } }
2043
    ArrayList<GenClass> dynamicGenClasses = new ArrayList<GenClass>(); for (GenClass genClass : genPackage.getGenClasses()) { if (genClass.isDynamic()) { dynamicGenClasses.add(genClass); } }
2032
    if (dynamicGenClasses.isEmpty()) {
2044
    if (dynamicGenClasses.isEmpty()) {
2033
    stringBuffer.append(TEXT_551);
2045
    stringBuffer.append(TEXT_555);
2034
    stringBuffer.append(genPackage.getInterfacePackageName());
2046
    stringBuffer.append(genPackage.getInterfacePackageName());
2035
    stringBuffer.append(TEXT_552);
2047
    stringBuffer.append(TEXT_556);
2036
    stringBuffer.append(genModel.getNonNLS());
2048
    stringBuffer.append(genModel.getNonNLS());
2037
    stringBuffer.append(TEXT_553);
2049
    stringBuffer.append(TEXT_557);
2038
    } else {
2050
    } else {
2039
    stringBuffer.append(TEXT_554);
2051
    stringBuffer.append(TEXT_558);
2040
    for (GenClass genClass : dynamicGenClasses) {
2052
    for (GenClass genClass : dynamicGenClasses) {
2041
    if (genClass.isDynamic()) {
2053
    if (genClass.isDynamic()) {
2042
    stringBuffer.append(TEXT_555);
2054
    stringBuffer.append(TEXT_559);
2043
    stringBuffer.append(genPackage.getClassifierID(genClass));
2055
    stringBuffer.append(genPackage.getClassifierID(genClass));
2044
    stringBuffer.append(TEXT_556);
2056
    stringBuffer.append(TEXT_560);
2045
    }
2057
    }
2046
    }
2058
    }
2047
    stringBuffer.append(TEXT_557);
2059
    stringBuffer.append(TEXT_561);
2048
    stringBuffer.append(genPackage.getInterfacePackageName());
2060
    stringBuffer.append(genPackage.getInterfacePackageName());
2049
    stringBuffer.append(TEXT_558);
2061
    stringBuffer.append(TEXT_562);
2050
    stringBuffer.append(genModel.getNonNLS());
2062
    stringBuffer.append(genModel.getNonNLS());
2051
    stringBuffer.append(TEXT_559);
2063
    stringBuffer.append(TEXT_563);
2052
    }
2064
    }
2053
    stringBuffer.append(TEXT_560);
2065
    stringBuffer.append(TEXT_564);
2054
    }
2066
    }
2055
    if (needsAddEOperation) {
2067
    if (needsAddEOperation) {
2056
    stringBuffer.append(TEXT_561);
2068
    stringBuffer.append(TEXT_565);
2057
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EOperation"));
2069
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EOperation"));
2058
    stringBuffer.append(TEXT_562);
2070
    stringBuffer.append(TEXT_566);
2059
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EClass"));
2071
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EClass"));
2060
    stringBuffer.append(TEXT_563);
2072
    stringBuffer.append(TEXT_567);
2061
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EClassifier"));
2073
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EClassifier"));
2062
    stringBuffer.append(TEXT_564);
2074
    stringBuffer.append(TEXT_568);
2063
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EOperation"));
2075
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EOperation"));
2064
    stringBuffer.append(TEXT_565);
2076
    stringBuffer.append(TEXT_569);
2065
    }
2077
    }
2066
    if (needsAddEParameter) {
2078
    if (needsAddEParameter) {
2067
    stringBuffer.append(TEXT_566);
2079
    stringBuffer.append(TEXT_570);
2068
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EParameter"));
2080
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EParameter"));
2069
    stringBuffer.append(TEXT_567);
2081
    stringBuffer.append(TEXT_571);
2070
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EOperation"));
2082
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EOperation"));
2071
    stringBuffer.append(TEXT_568);
2083
    stringBuffer.append(TEXT_572);
2072
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EClassifier"));
2084
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EClassifier"));
2073
    stringBuffer.append(TEXT_569);
2085
    stringBuffer.append(TEXT_573);
2074
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EParameter"));
2086
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EParameter"));
2075
    stringBuffer.append(TEXT_570);
2087
    stringBuffer.append(TEXT_574);
2076
    }
2088
    }
2077
    }
2089
    }
2078
    if (isInterface && genPackage.isLiteralsInterface()) {
2090
    if (isInterface && genPackage.isLiteralsInterface()) {
2079
    stringBuffer.append(TEXT_571);
2091
    stringBuffer.append(TEXT_575);
2080
    if (isImplementation) {
2092
    if (isImplementation) {
2081
    stringBuffer.append(TEXT_572);
2093
    stringBuffer.append(TEXT_576);
2082
    }
2094
    }
2083
    stringBuffer.append(TEXT_573);
2095
    stringBuffer.append(TEXT_577);
2084
    for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
2096
    for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
2085
    stringBuffer.append(TEXT_574);
2097
    stringBuffer.append(TEXT_578);
2086
    if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
2098
    if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
2087
    if (!genClass.isInterface()) {
2099
    if (!genClass.isInterface()) {
2088
    stringBuffer.append(TEXT_575);
2100
    stringBuffer.append(TEXT_579);
2089
    stringBuffer.append(genClass.getQualifiedClassName());
2101
    stringBuffer.append(genClass.getQualifiedClassName());
2090
    stringBuffer.append(TEXT_576);
2102
    stringBuffer.append(TEXT_580);
2091
    stringBuffer.append(genClass.getFormattedName());
2103
    stringBuffer.append(genClass.getFormattedName());
2092
    stringBuffer.append(TEXT_577);
2104
    stringBuffer.append(TEXT_581);
2093
    stringBuffer.append(genClass.getQualifiedClassName());
2105
    stringBuffer.append(genClass.getQualifiedClassName());
2094
    } else {
2106
    } else {
2095
    stringBuffer.append(TEXT_578);
2107
    stringBuffer.append(TEXT_582);
2096
    stringBuffer.append(genClass.getQualifiedInterfaceName());
2108
    stringBuffer.append(genClass.getQualifiedInterfaceName());
2097
    stringBuffer.append(TEXT_579);
2109
    stringBuffer.append(TEXT_583);
2098
    stringBuffer.append(genClass.getFormattedName());
2110
    stringBuffer.append(genClass.getFormattedName());
2099
    stringBuffer.append(TEXT_580);
2111
    stringBuffer.append(TEXT_584);
2100
    stringBuffer.append(genClass.getQualifiedInterfaceName());
2112
    stringBuffer.append(genClass.getQualifiedInterfaceName());
2101
    }
2113
    }
2102
    } else if (genClassifier instanceof GenEnum) { GenEnum genEnum = (GenEnum)genClassifier;
2114
    } else if (genClassifier instanceof GenEnum) { GenEnum genEnum = (GenEnum)genClassifier;
2103
    stringBuffer.append(TEXT_581);
2115
    stringBuffer.append(TEXT_585);
2104
    stringBuffer.append(genEnum.getQualifiedName());
2116
    stringBuffer.append(genEnum.getQualifiedName());
2105
    stringBuffer.append(TEXT_582);
2117
    stringBuffer.append(TEXT_586);
2106
    stringBuffer.append(genEnum.getFormattedName());
2118
    stringBuffer.append(genEnum.getFormattedName());
2107
    stringBuffer.append(TEXT_583);
2119
    stringBuffer.append(TEXT_587);
2108
    stringBuffer.append(genEnum.getQualifiedName());
2120
    stringBuffer.append(genEnum.getQualifiedName());
2109
    } else if (genClassifier instanceof GenDataType) { GenDataType genDataType = (GenDataType)genClassifier;
2121
    } else if (genClassifier instanceof GenDataType) { GenDataType genDataType = (GenDataType)genClassifier;
2110
    stringBuffer.append(TEXT_584);
2122
    stringBuffer.append(TEXT_588);
2111
    stringBuffer.append(genDataType.getFormattedName());
2123
    stringBuffer.append(genDataType.getFormattedName());
2112
    stringBuffer.append(TEXT_585);
2124
    stringBuffer.append(TEXT_589);
2113
    if (!genDataType.isPrimitiveType() && !genDataType.isArrayType()) {
2125
    if (!genDataType.isPrimitiveType() && !genDataType.isArrayType()) {
2114
    stringBuffer.append(TEXT_586);
2126
    stringBuffer.append(TEXT_590);
2115
    stringBuffer.append(genDataType.getRawInstanceClassName());
2127
    stringBuffer.append(genDataType.getRawInstanceClassName());
2116
    }
2128
    }
2117
    }
2129
    }
2118
    stringBuffer.append(TEXT_587);
2130
    stringBuffer.append(TEXT_591);
2119
    stringBuffer.append(genPackage.getQualifiedPackageClassName());
2131
    stringBuffer.append(genPackage.getQualifiedPackageClassName());
2120
    stringBuffer.append(TEXT_588);
2132
    stringBuffer.append(TEXT_592);
2121
    stringBuffer.append(genClassifier.getClassifierAccessorName());
2133
    stringBuffer.append(genClassifier.getClassifierAccessorName());
2122
    stringBuffer.append(TEXT_589);
2134
    stringBuffer.append(TEXT_593);
2123
    stringBuffer.append(publicStaticFinalFlag);
2135
    stringBuffer.append(publicStaticFinalFlag);
2124
    stringBuffer.append(genClassifier.getImportedMetaType());
2136
    stringBuffer.append(genClassifier.getImportedMetaType());
2125
    stringBuffer.append(TEXT_590);
2137
    stringBuffer.append(TEXT_594);
2126
    stringBuffer.append(genPackage.getClassifierID(genClassifier));
2138
    stringBuffer.append(genPackage.getClassifierID(genClassifier));
2127
    stringBuffer.append(TEXT_591);
2139
    stringBuffer.append(TEXT_595);
2128
    stringBuffer.append(genClassifier.getClassifierAccessorName());
2140
    stringBuffer.append(genClassifier.getClassifierAccessorName());
2129
    stringBuffer.append(TEXT_592);
2141
    stringBuffer.append(TEXT_596);
2130
    if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
2142
    if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
2131
    for (GenFeature genFeature : genClass.getGenFeatures()) {
2143
    for (GenFeature genFeature : genClass.getGenFeatures()) {
2132
    stringBuffer.append(TEXT_593);
2144
    stringBuffer.append(TEXT_597);
2133
    stringBuffer.append(genFeature.getFormattedName());
2145
    stringBuffer.append(genFeature.getFormattedName());
2134
    stringBuffer.append(TEXT_594);
2146
    stringBuffer.append(TEXT_598);
2135
    stringBuffer.append(genFeature.getFeatureKind());
2147
    stringBuffer.append(genFeature.getFeatureKind());
2136
    stringBuffer.append(TEXT_595);
2148
    stringBuffer.append(TEXT_599);
2137
    stringBuffer.append(publicStaticFinalFlag);
2149
    stringBuffer.append(publicStaticFinalFlag);
2138
    stringBuffer.append(genFeature.getImportedMetaType());
2150
    stringBuffer.append(genFeature.getImportedMetaType());
2139
    stringBuffer.append(TEXT_596);
2151
    stringBuffer.append(TEXT_600);
2140
    stringBuffer.append(genClass.getFeatureID(genFeature));
2152
    stringBuffer.append(genClass.getFeatureID(genFeature));
2141
    stringBuffer.append(TEXT_597);
2153
    stringBuffer.append(TEXT_601);
2142
    stringBuffer.append(genFeature.getFeatureAccessorName());
2154
    stringBuffer.append(genFeature.getFeatureAccessorName());
2143
    stringBuffer.append(TEXT_598);
2155
    stringBuffer.append(TEXT_602);
2144
    }
2156
    }
2145
    }
2157
    }
2146
    }
2158
    }
2147
    stringBuffer.append(TEXT_599);
2159
    stringBuffer.append(TEXT_603);
2148
    }
2160
    }
2149
    stringBuffer.append(TEXT_600);
2161
    stringBuffer.append(TEXT_604);
2150
    stringBuffer.append(isInterface ? genPackage.getPackageInterfaceName() : genPackage.getPackageClassName());
2162
    stringBuffer.append(isInterface ? genPackage.getPackageInterfaceName() : genPackage.getPackageClassName());
2151
    genModel.emitSortedImports();
2163
    genModel.emitSortedImports();
2152
    stringBuffer.append(TEXT_601);
2164
    stringBuffer.append(TEXT_605);
2153
    return stringBuffer.toString();
2165
    return stringBuffer.toString();
2154
  }
2166
  }
2155
}
2167
}
(-)data/ant.expected/models/1.4_5.0/reload/library.xsds/src/org/examples/library/elements/impl/ElementsPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: ElementsPackageImpl.java,v 1.6 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.elements.impl;
6
package org.examples.library.elements.impl;
7
7
Lines 101-120 Link Here
101
  private static boolean isInited = false;
101
  private static boolean isInited = false;
102
102
103
  /**
103
  /**
104
   * Creates, registers, and initializes the <b>Package</b> for this
104
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
105
   * model, and for any others upon which it depends.  Simple
105
   * 
106
   * dependencies are satisfied by calling this method on all
106
   * <p>This method is used to initialize {@link ElementsPackage#eINSTANCE} when that field is accessed.
107
   * dependent packages before doing anything else.  This method drives
107
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
108
   * initialization for interdependent packages directly, in parallel
109
   * with this package, itself.
110
   * <p>Of this package and its interdependencies, all packages which
111
   * have not yet been registered by their URI values are first created
112
   * and registered.  The packages are then initialized in two steps:
113
   * meta-model objects for all of the packages are created before any
114
   * are initialized, since one package's meta-model objects may refer to
115
   * those of another.
116
   * <p>Invocation of this method will not affect any packages that have
117
   * already been initialized.
118
   * <!-- begin-user-doc -->
108
   * <!-- begin-user-doc -->
119
   * <!-- end-user-doc -->
109
   * <!-- end-user-doc -->
120
   * @see #eNS_URI
110
   * @see #eNS_URI
Lines 162-167 Link Here
162
    // Mark meta-data to indicate it can't be changed
152
    // Mark meta-data to indicate it can't be changed
163
    theElementsPackage.freeze();
153
    theElementsPackage.freeze();
164
154
155
  
156
    // Update the registry and return the package
157
    EPackage.Registry.INSTANCE.put(ElementsPackage.eNS_URI, theElementsPackage);
165
    return theElementsPackage;
158
    return theElementsPackage;
166
  }
159
  }
167
160
(-)data/ant.expected/models/1.4_5.0/creation/library.xsds/src/org/examples/library/elements/impl/ElementsPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: ElementsPackageImpl.java,v 1.6 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.elements.impl;
6
package org.examples.library.elements.impl;
7
7
Lines 90-109 Link Here
90
  private static boolean isInited = false;
90
  private static boolean isInited = false;
91
91
92
  /**
92
  /**
93
   * Creates, registers, and initializes the <b>Package</b> for this
93
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
94
   * model, and for any others upon which it depends.  Simple
94
   * 
95
   * dependencies are satisfied by calling this method on all
95
   * <p>This method is used to initialize {@link ElementsPackage#eINSTANCE} when that field is accessed.
96
   * dependent packages before doing anything else.  This method drives
96
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
97
   * initialization for interdependent packages directly, in parallel
98
   * with this package, itself.
99
   * <p>Of this package and its interdependencies, all packages which
100
   * have not yet been registered by their URI values are first created
101
   * and registered.  The packages are then initialized in two steps:
102
   * meta-model objects for all of the packages are created before any
103
   * are initialized, since one package's meta-model objects may refer to
104
   * those of another.
105
   * <p>Invocation of this method will not affect any packages that have
106
   * already been initialized.
107
   * <!-- begin-user-doc -->
97
   * <!-- begin-user-doc -->
108
   * <!-- end-user-doc -->
98
   * <!-- end-user-doc -->
109
   * @see #eNS_URI
99
   * @see #eNS_URI
Lines 137-142 Link Here
137
    // Mark meta-data to indicate it can't be changed
127
    // Mark meta-data to indicate it can't be changed
138
    theElementsPackage.freeze();
128
    theElementsPackage.freeze();
139
129
130
  
131
    // Update the registry and return the package
132
    EPackage.Registry.INSTANCE.put(ElementsPackage.eNS_URI, theElementsPackage);
140
    return theElementsPackage;
133
    return theElementsPackage;
141
  }
134
  }
142
135
(-)data/ant.expected/models/1.4/reload/library.xsd/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.5 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 94-113 Link Here
94
  private static boolean isInited = false;
94
  private static boolean isInited = false;
95
95
96
  /**
96
  /**
97
   * Creates, registers, and initializes the <b>Package</b> for this
97
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
98
   * model, and for any others upon which it depends.  Simple
98
   * 
99
   * dependencies are satisfied by calling this method on all
99
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
100
   * dependent packages before doing anything else.  This method drives
100
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
101
   * initialization for interdependent packages directly, in parallel
102
   * with this package, itself.
103
   * <p>Of this package and its interdependencies, all packages which
104
   * have not yet been registered by their URI values are first created
105
   * and registered.  The packages are then initialized in two steps:
106
   * meta-model objects for all of the packages are created before any
107
   * are initialized, since one package's meta-model objects may refer to
108
   * those of another.
109
   * <p>Invocation of this method will not affect any packages that have
110
   * already been initialized.
111
   * <!-- begin-user-doc -->
101
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
102
   * <!-- end-user-doc -->
113
   * @see #eNS_URI
103
   * @see #eNS_URI
Lines 136-141 Link Here
136
    // Mark meta-data to indicate it can't be changed
126
    // Mark meta-data to indicate it can't be changed
137
    theLibraryPackage.freeze();
127
    theLibraryPackage.freeze();
138
128
129
  
130
    // Update the registry and return the package
131
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
139
    return theLibraryPackage;
132
    return theLibraryPackage;
140
  }
133
  }
141
134
(-)data/ant.expected/models/1.4/reload/library.xsds/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.4 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 67-86 Link Here
67
  private static boolean isInited = false;
67
  private static boolean isInited = false;
68
68
69
  /**
69
  /**
70
   * Creates, registers, and initializes the <b>Package</b> for this
70
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
71
   * model, and for any others upon which it depends.  Simple
71
   * 
72
   * dependencies are satisfied by calling this method on all
72
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
73
   * dependent packages before doing anything else.  This method drives
73
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
74
   * initialization for interdependent packages directly, in parallel
75
   * with this package, itself.
76
   * <p>Of this package and its interdependencies, all packages which
77
   * have not yet been registered by their URI values are first created
78
   * and registered.  The packages are then initialized in two steps:
79
   * meta-model objects for all of the packages are created before any
80
   * are initialized, since one package's meta-model objects may refer to
81
   * those of another.
82
   * <p>Invocation of this method will not affect any packages that have
83
   * already been initialized.
84
   * <!-- begin-user-doc -->
74
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
75
   * <!-- end-user-doc -->
86
   * @see #eNS_URI
76
   * @see #eNS_URI
Lines 117-122 Link Here
117
    // Mark meta-data to indicate it can't be changed
107
    // Mark meta-data to indicate it can't be changed
118
    theLibraryPackage.freeze();
108
    theLibraryPackage.freeze();
119
109
110
  
111
    // Update the registry and return the package
112
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
120
    return theLibraryPackage;
113
    return theLibraryPackage;
121
  }
114
  }
122
115
(-)data/ant.expected/models/5.0/reload/library.xsd/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.5 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 94-113 Link Here
94
  private static boolean isInited = false;
94
  private static boolean isInited = false;
95
95
96
  /**
96
  /**
97
   * Creates, registers, and initializes the <b>Package</b> for this
97
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
98
   * model, and for any others upon which it depends.  Simple
98
   * 
99
   * dependencies are satisfied by calling this method on all
99
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
100
   * dependent packages before doing anything else.  This method drives
100
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
101
   * initialization for interdependent packages directly, in parallel
102
   * with this package, itself.
103
   * <p>Of this package and its interdependencies, all packages which
104
   * have not yet been registered by their URI values are first created
105
   * and registered.  The packages are then initialized in two steps:
106
   * meta-model objects for all of the packages are created before any
107
   * are initialized, since one package's meta-model objects may refer to
108
   * those of another.
109
   * <p>Invocation of this method will not affect any packages that have
110
   * already been initialized.
111
   * <!-- begin-user-doc -->
101
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
102
   * <!-- end-user-doc -->
113
   * @see #eNS_URI
103
   * @see #eNS_URI
Lines 136-141 Link Here
136
    // Mark meta-data to indicate it can't be changed
126
    // Mark meta-data to indicate it can't be changed
137
    theLibraryPackage.freeze();
127
    theLibraryPackage.freeze();
138
128
129
  
130
    // Update the registry and return the package
131
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
139
    return theLibraryPackage;
132
    return theLibraryPackage;
140
  }
133
  }
141
134
(-)data/ant.expected/models/1.4/creation/library.rose/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 84-103 Link Here
84
  private static boolean isInited = false;
84
  private static boolean isInited = false;
85
85
86
  /**
86
  /**
87
   * Creates, registers, and initializes the <b>Package</b> for this
87
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
88
   * model, and for any others upon which it depends.  Simple
88
   * 
89
   * dependencies are satisfied by calling this method on all
89
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
90
   * dependent packages before doing anything else.  This method drives
90
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
91
   * initialization for interdependent packages directly, in parallel
92
   * with this package, itself.
93
   * <p>Of this package and its interdependencies, all packages which
94
   * have not yet been registered by their URI values are first created
95
   * and registered.  The packages are then initialized in two steps:
96
   * meta-model objects for all of the packages are created before any
97
   * are initialized, since one package's meta-model objects may refer to
98
   * those of another.
99
   * <p>Invocation of this method will not affect any packages that have
100
   * already been initialized.
101
   * <!-- begin-user-doc -->
91
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
92
   * <!-- end-user-doc -->
103
   * @see #eNS_URI
93
   * @see #eNS_URI
Lines 123-128 Link Here
123
    // Mark meta-data to indicate it can't be changed
113
    // Mark meta-data to indicate it can't be changed
124
    theLibraryPackage.freeze();
114
    theLibraryPackage.freeze();
125
115
116
  
117
    // Update the registry and return the package
118
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
126
    return theLibraryPackage;
119
    return theLibraryPackage;
127
  }
120
  }
128
121
(-)data/ant.expected/models/1.4_5.0/reload/library.xsd/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.5 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 94-113 Link Here
94
  private static boolean isInited = false;
94
  private static boolean isInited = false;
95
95
96
  /**
96
  /**
97
   * Creates, registers, and initializes the <b>Package</b> for this
97
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
98
   * model, and for any others upon which it depends.  Simple
98
   * 
99
   * dependencies are satisfied by calling this method on all
99
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
100
   * dependent packages before doing anything else.  This method drives
100
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
101
   * initialization for interdependent packages directly, in parallel
102
   * with this package, itself.
103
   * <p>Of this package and its interdependencies, all packages which
104
   * have not yet been registered by their URI values are first created
105
   * and registered.  The packages are then initialized in two steps:
106
   * meta-model objects for all of the packages are created before any
107
   * are initialized, since one package's meta-model objects may refer to
108
   * those of another.
109
   * <p>Invocation of this method will not affect any packages that have
110
   * already been initialized.
111
   * <!-- begin-user-doc -->
101
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
102
   * <!-- end-user-doc -->
113
   * @see #eNS_URI
103
   * @see #eNS_URI
Lines 136-141 Link Here
136
    // Mark meta-data to indicate it can't be changed
126
    // Mark meta-data to indicate it can't be changed
137
    theLibraryPackage.freeze();
127
    theLibraryPackage.freeze();
138
128
129
  
130
    // Update the registry and return the package
131
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
139
    return theLibraryPackage;
132
    return theLibraryPackage;
140
  }
133
  }
141
134
(-)data/ant.expected/models/1.4_5.0/creation/library.xsd/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.5 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 94-113 Link Here
94
  private static boolean isInited = false;
94
  private static boolean isInited = false;
95
95
96
  /**
96
  /**
97
   * Creates, registers, and initializes the <b>Package</b> for this
97
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
98
   * model, and for any others upon which it depends.  Simple
98
   * 
99
   * dependencies are satisfied by calling this method on all
99
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
100
   * dependent packages before doing anything else.  This method drives
100
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
101
   * initialization for interdependent packages directly, in parallel
102
   * with this package, itself.
103
   * <p>Of this package and its interdependencies, all packages which
104
   * have not yet been registered by their URI values are first created
105
   * and registered.  The packages are then initialized in two steps:
106
   * meta-model objects for all of the packages are created before any
107
   * are initialized, since one package's meta-model objects may refer to
108
   * those of another.
109
   * <p>Invocation of this method will not affect any packages that have
110
   * already been initialized.
111
   * <!-- begin-user-doc -->
101
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
102
   * <!-- end-user-doc -->
113
   * @see #eNS_URI
103
   * @see #eNS_URI
Lines 136-141 Link Here
136
    // Mark meta-data to indicate it can't be changed
126
    // Mark meta-data to indicate it can't be changed
137
    theLibraryPackage.freeze();
127
    theLibraryPackage.freeze();
138
128
129
  
130
    // Update the registry and return the package
131
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
139
    return theLibraryPackage;
132
    return theLibraryPackage;
140
  }
133
  }
141
134
(-)data/ant.expected/models/1.4/creation/library.ecore/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 84-103 Link Here
84
  private static boolean isInited = false;
84
  private static boolean isInited = false;
85
85
86
  /**
86
  /**
87
   * Creates, registers, and initializes the <b>Package</b> for this
87
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
88
   * model, and for any others upon which it depends.  Simple
88
   * 
89
   * dependencies are satisfied by calling this method on all
89
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
90
   * dependent packages before doing anything else.  This method drives
90
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
91
   * initialization for interdependent packages directly, in parallel
92
   * with this package, itself.
93
   * <p>Of this package and its interdependencies, all packages which
94
   * have not yet been registered by their URI values are first created
95
   * and registered.  The packages are then initialized in two steps:
96
   * meta-model objects for all of the packages are created before any
97
   * are initialized, since one package's meta-model objects may refer to
98
   * those of another.
99
   * <p>Invocation of this method will not affect any packages that have
100
   * already been initialized.
101
   * <!-- begin-user-doc -->
91
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
92
   * <!-- end-user-doc -->
103
   * @see #eNS_URI
93
   * @see #eNS_URI
Lines 123-128 Link Here
123
    // Mark meta-data to indicate it can't be changed
113
    // Mark meta-data to indicate it can't be changed
124
    theLibraryPackage.freeze();
114
    theLibraryPackage.freeze();
125
115
116
  
117
    // Update the registry and return the package
118
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
126
    return theLibraryPackage;
119
    return theLibraryPackage;
127
  }
120
  }
128
121
(-)data/ant.expected/models/1.4_5.0/reload/library.rose/src/org/examples/hr/impl/HRPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HRPackageImpl.java,v 1.3 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.hr.impl;
6
package org.examples.hr.impl;
7
7
Lines 63-82 Link Here
63
  private static boolean isInited = false;
63
  private static boolean isInited = false;
64
64
65
  /**
65
  /**
66
   * Creates, registers, and initializes the <b>Package</b> for this
66
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
67
   * model, and for any others upon which it depends.  Simple
67
   * 
68
   * dependencies are satisfied by calling this method on all
68
   * <p>This method is used to initialize {@link HRPackage#eINSTANCE} when that field is accessed.
69
   * dependent packages before doing anything else.  This method drives
69
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
70
   * initialization for interdependent packages directly, in parallel
71
   * with this package, itself.
72
   * <p>Of this package and its interdependencies, all packages which
73
   * have not yet been registered by their URI values are first created
74
   * and registered.  The packages are then initialized in two steps:
75
   * meta-model objects for all of the packages are created before any
76
   * are initialized, since one package's meta-model objects may refer to
77
   * those of another.
78
   * <p>Invocation of this method will not affect any packages that have
79
   * already been initialized.
80
   * <!-- begin-user-doc -->
70
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
71
   * <!-- end-user-doc -->
82
   * @see #eNS_URI
72
   * @see #eNS_URI
Lines 107-112 Link Here
107
    // Mark meta-data to indicate it can't be changed
97
    // Mark meta-data to indicate it can't be changed
108
    theHRPackage.freeze();
98
    theHRPackage.freeze();
109
99
100
  
101
    // Update the registry and return the package
102
    EPackage.Registry.INSTANCE.put(HRPackage.eNS_URI, theHRPackage);
110
    return theHRPackage;
103
    return theHRPackage;
111
  }
104
  }
112
105
(-)data/ant.expected/models/1.4/creation/library.xsds/src/org/examples/library/elements/impl/ElementsPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: ElementsPackageImpl.java,v 1.6 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.elements.impl;
6
package org.examples.library.elements.impl;
7
7
Lines 90-109 Link Here
90
  private static boolean isInited = false;
90
  private static boolean isInited = false;
91
91
92
  /**
92
  /**
93
   * Creates, registers, and initializes the <b>Package</b> for this
93
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
94
   * model, and for any others upon which it depends.  Simple
94
   * 
95
   * dependencies are satisfied by calling this method on all
95
   * <p>This method is used to initialize {@link ElementsPackage#eINSTANCE} when that field is accessed.
96
   * dependent packages before doing anything else.  This method drives
96
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
97
   * initialization for interdependent packages directly, in parallel
98
   * with this package, itself.
99
   * <p>Of this package and its interdependencies, all packages which
100
   * have not yet been registered by their URI values are first created
101
   * and registered.  The packages are then initialized in two steps:
102
   * meta-model objects for all of the packages are created before any
103
   * are initialized, since one package's meta-model objects may refer to
104
   * those of another.
105
   * <p>Invocation of this method will not affect any packages that have
106
   * already been initialized.
107
   * <!-- begin-user-doc -->
97
   * <!-- begin-user-doc -->
108
   * <!-- end-user-doc -->
98
   * <!-- end-user-doc -->
109
   * @see #eNS_URI
99
   * @see #eNS_URI
Lines 137-142 Link Here
137
    // Mark meta-data to indicate it can't be changed
127
    // Mark meta-data to indicate it can't be changed
138
    theElementsPackage.freeze();
128
    theElementsPackage.freeze();
139
129
130
  
131
    // Update the registry and return the package
132
    EPackage.Registry.INSTANCE.put(ElementsPackage.eNS_URI, theElementsPackage);
140
    return theElementsPackage;
133
    return theElementsPackage;
141
  }
134
  }
142
135
(-)data/ant.expected/models/1.4_5.0/reload/library.xsds/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.4 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 67-86 Link Here
67
  private static boolean isInited = false;
67
  private static boolean isInited = false;
68
68
69
  /**
69
  /**
70
   * Creates, registers, and initializes the <b>Package</b> for this
70
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
71
   * model, and for any others upon which it depends.  Simple
71
   * 
72
   * dependencies are satisfied by calling this method on all
72
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
73
   * dependent packages before doing anything else.  This method drives
73
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
74
   * initialization for interdependent packages directly, in parallel
75
   * with this package, itself.
76
   * <p>Of this package and its interdependencies, all packages which
77
   * have not yet been registered by their URI values are first created
78
   * and registered.  The packages are then initialized in two steps:
79
   * meta-model objects for all of the packages are created before any
80
   * are initialized, since one package's meta-model objects may refer to
81
   * those of another.
82
   * <p>Invocation of this method will not affect any packages that have
83
   * already been initialized.
84
   * <!-- begin-user-doc -->
74
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
75
   * <!-- end-user-doc -->
86
   * @see #eNS_URI
76
   * @see #eNS_URI
Lines 117-122 Link Here
117
    // Mark meta-data to indicate it can't be changed
107
    // Mark meta-data to indicate it can't be changed
118
    theLibraryPackage.freeze();
108
    theLibraryPackage.freeze();
119
109
110
  
111
    // Update the registry and return the package
112
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
120
    return theLibraryPackage;
113
    return theLibraryPackage;
121
  }
114
  }
122
115
(-)data/ant.expected/models/1.4_5.0/creation/library.rose/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 84-103 Link Here
84
  private static boolean isInited = false;
84
  private static boolean isInited = false;
85
85
86
  /**
86
  /**
87
   * Creates, registers, and initializes the <b>Package</b> for this
87
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
88
   * model, and for any others upon which it depends.  Simple
88
   * 
89
   * dependencies are satisfied by calling this method on all
89
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
90
   * dependent packages before doing anything else.  This method drives
90
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
91
   * initialization for interdependent packages directly, in parallel
92
   * with this package, itself.
93
   * <p>Of this package and its interdependencies, all packages which
94
   * have not yet been registered by their URI values are first created
95
   * and registered.  The packages are then initialized in two steps:
96
   * meta-model objects for all of the packages are created before any
97
   * are initialized, since one package's meta-model objects may refer to
98
   * those of another.
99
   * <p>Invocation of this method will not affect any packages that have
100
   * already been initialized.
101
   * <!-- begin-user-doc -->
91
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
92
   * <!-- end-user-doc -->
103
   * @see #eNS_URI
93
   * @see #eNS_URI
Lines 123-128 Link Here
123
    // Mark meta-data to indicate it can't be changed
113
    // Mark meta-data to indicate it can't be changed
124
    theLibraryPackage.freeze();
114
    theLibraryPackage.freeze();
125
115
116
  
117
    // Update the registry and return the package
118
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
126
    return theLibraryPackage;
119
    return theLibraryPackage;
127
  }
120
  }
128
121
(-)data/ant.expected/models/5.0/creation/library.xsd/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.5 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 94-113 Link Here
94
  private static boolean isInited = false;
94
  private static boolean isInited = false;
95
95
96
  /**
96
  /**
97
   * Creates, registers, and initializes the <b>Package</b> for this
97
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
98
   * model, and for any others upon which it depends.  Simple
98
   * 
99
   * dependencies are satisfied by calling this method on all
99
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
100
   * dependent packages before doing anything else.  This method drives
100
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
101
   * initialization for interdependent packages directly, in parallel
102
   * with this package, itself.
103
   * <p>Of this package and its interdependencies, all packages which
104
   * have not yet been registered by their URI values are first created
105
   * and registered.  The packages are then initialized in two steps:
106
   * meta-model objects for all of the packages are created before any
107
   * are initialized, since one package's meta-model objects may refer to
108
   * those of another.
109
   * <p>Invocation of this method will not affect any packages that have
110
   * already been initialized.
111
   * <!-- begin-user-doc -->
101
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
102
   * <!-- end-user-doc -->
113
   * @see #eNS_URI
103
   * @see #eNS_URI
Lines 136-141 Link Here
136
    // Mark meta-data to indicate it can't be changed
126
    // Mark meta-data to indicate it can't be changed
137
    theLibraryPackage.freeze();
127
    theLibraryPackage.freeze();
138
128
129
  
130
    // Update the registry and return the package
131
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
139
    return theLibraryPackage;
132
    return theLibraryPackage;
140
  }
133
  }
141
134
(-)data/ant.expected/models/1.4_5.0/creation/library.ecore/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 84-103 Link Here
84
  private static boolean isInited = false;
84
  private static boolean isInited = false;
85
85
86
  /**
86
  /**
87
   * Creates, registers, and initializes the <b>Package</b> for this
87
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
88
   * model, and for any others upon which it depends.  Simple
88
   * 
89
   * dependencies are satisfied by calling this method on all
89
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
90
   * dependent packages before doing anything else.  This method drives
90
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
91
   * initialization for interdependent packages directly, in parallel
92
   * with this package, itself.
93
   * <p>Of this package and its interdependencies, all packages which
94
   * have not yet been registered by their URI values are first created
95
   * and registered.  The packages are then initialized in two steps:
96
   * meta-model objects for all of the packages are created before any
97
   * are initialized, since one package's meta-model objects may refer to
98
   * those of another.
99
   * <p>Invocation of this method will not affect any packages that have
100
   * already been initialized.
101
   * <!-- begin-user-doc -->
91
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
92
   * <!-- end-user-doc -->
103
   * @see #eNS_URI
93
   * @see #eNS_URI
Lines 123-128 Link Here
123
    // Mark meta-data to indicate it can't be changed
113
    // Mark meta-data to indicate it can't be changed
124
    theLibraryPackage.freeze();
114
    theLibraryPackage.freeze();
125
115
116
  
117
    // Update the registry and return the package
118
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
126
    return theLibraryPackage;
119
    return theLibraryPackage;
127
  }
120
  }
128
121
(-)data/ant.expected/models/5.0/creation/library.xsds/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.4 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 65-84 Link Here
65
  private static boolean isInited = false;
65
  private static boolean isInited = false;
66
66
67
  /**
67
  /**
68
   * Creates, registers, and initializes the <b>Package</b> for this
68
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
69
   * model, and for any others upon which it depends.  Simple
69
   * 
70
   * dependencies are satisfied by calling this method on all
70
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
71
   * dependent packages before doing anything else.  This method drives
71
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
72
   * initialization for interdependent packages directly, in parallel
73
   * with this package, itself.
74
   * <p>Of this package and its interdependencies, all packages which
75
   * have not yet been registered by their URI values are first created
76
   * and registered.  The packages are then initialized in two steps:
77
   * meta-model objects for all of the packages are created before any
78
   * are initialized, since one package's meta-model objects may refer to
79
   * those of another.
80
   * <p>Invocation of this method will not affect any packages that have
81
   * already been initialized.
82
   * <!-- begin-user-doc -->
72
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
73
   * <!-- end-user-doc -->
84
   * @see #eNS_URI
74
   * @see #eNS_URI
Lines 112-117 Link Here
112
    // Mark meta-data to indicate it can't be changed
102
    // Mark meta-data to indicate it can't be changed
113
    theLibraryPackage.freeze();
103
    theLibraryPackage.freeze();
114
104
105
  
106
    // Update the registry and return the package
107
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
115
    return theLibraryPackage;
108
    return theLibraryPackage;
116
  }
109
  }
117
110
(-)data/ant.expected/models/1.4/reload/library.ecore/src/org/examples/hr/impl/HRPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HRPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.hr.impl;
6
package org.examples.hr.impl;
7
7
Lines 63-82 Link Here
63
  private static boolean isInited = false;
63
  private static boolean isInited = false;
64
64
65
  /**
65
  /**
66
   * Creates, registers, and initializes the <b>Package</b> for this
66
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
67
   * model, and for any others upon which it depends.  Simple
67
   * 
68
   * dependencies are satisfied by calling this method on all
68
   * <p>This method is used to initialize {@link HRPackage#eINSTANCE} when that field is accessed.
69
   * dependent packages before doing anything else.  This method drives
69
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
70
   * initialization for interdependent packages directly, in parallel
71
   * with this package, itself.
72
   * <p>Of this package and its interdependencies, all packages which
73
   * have not yet been registered by their URI values are first created
74
   * and registered.  The packages are then initialized in two steps:
75
   * meta-model objects for all of the packages are created before any
76
   * are initialized, since one package's meta-model objects may refer to
77
   * those of another.
78
   * <p>Invocation of this method will not affect any packages that have
79
   * already been initialized.
80
   * <!-- begin-user-doc -->
70
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
71
   * <!-- end-user-doc -->
82
   * @see #eNS_URI
72
   * @see #eNS_URI
Lines 107-112 Link Here
107
    // Mark meta-data to indicate it can't be changed
97
    // Mark meta-data to indicate it can't be changed
108
    theHRPackage.freeze();
98
    theHRPackage.freeze();
109
99
100
  
101
    // Update the registry and return the package
102
    EPackage.Registry.INSTANCE.put(HRPackage.eNS_URI, theHRPackage);
110
    return theHRPackage;
103
    return theHRPackage;
111
  }
104
  }
112
105
(-)data/ant.expected/models/1.4_5.0/reload/library.ecore/src/org/examples/hr/impl/HRPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HRPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.hr.impl;
6
package org.examples.hr.impl;
7
7
Lines 63-82 Link Here
63
  private static boolean isInited = false;
63
  private static boolean isInited = false;
64
64
65
  /**
65
  /**
66
   * Creates, registers, and initializes the <b>Package</b> for this
66
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
67
   * model, and for any others upon which it depends.  Simple
67
   * 
68
   * dependencies are satisfied by calling this method on all
68
   * <p>This method is used to initialize {@link HRPackage#eINSTANCE} when that field is accessed.
69
   * dependent packages before doing anything else.  This method drives
69
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
70
   * initialization for interdependent packages directly, in parallel
71
   * with this package, itself.
72
   * <p>Of this package and its interdependencies, all packages which
73
   * have not yet been registered by their URI values are first created
74
   * and registered.  The packages are then initialized in two steps:
75
   * meta-model objects for all of the packages are created before any
76
   * are initialized, since one package's meta-model objects may refer to
77
   * those of another.
78
   * <p>Invocation of this method will not affect any packages that have
79
   * already been initialized.
80
   * <!-- begin-user-doc -->
70
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
71
   * <!-- end-user-doc -->
82
   * @see #eNS_URI
72
   * @see #eNS_URI
Lines 107-112 Link Here
107
    // Mark meta-data to indicate it can't be changed
97
    // Mark meta-data to indicate it can't be changed
108
    theHRPackage.freeze();
98
    theHRPackage.freeze();
109
99
100
  
101
    // Update the registry and return the package
102
    EPackage.Registry.INSTANCE.put(HRPackage.eNS_URI, theHRPackage);
110
    return theHRPackage;
103
    return theHRPackage;
111
  }
104
  }
112
105
(-)data/ant.expected/models/1.4/creation/library.xsd/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.5 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 94-113 Link Here
94
  private static boolean isInited = false;
94
  private static boolean isInited = false;
95
95
96
  /**
96
  /**
97
   * Creates, registers, and initializes the <b>Package</b> for this
97
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
98
   * model, and for any others upon which it depends.  Simple
98
   * 
99
   * dependencies are satisfied by calling this method on all
99
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
100
   * dependent packages before doing anything else.  This method drives
100
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
101
   * initialization for interdependent packages directly, in parallel
102
   * with this package, itself.
103
   * <p>Of this package and its interdependencies, all packages which
104
   * have not yet been registered by their URI values are first created
105
   * and registered.  The packages are then initialized in two steps:
106
   * meta-model objects for all of the packages are created before any
107
   * are initialized, since one package's meta-model objects may refer to
108
   * those of another.
109
   * <p>Invocation of this method will not affect any packages that have
110
   * already been initialized.
111
   * <!-- begin-user-doc -->
101
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
102
   * <!-- end-user-doc -->
113
   * @see #eNS_URI
103
   * @see #eNS_URI
Lines 136-141 Link Here
136
    // Mark meta-data to indicate it can't be changed
126
    // Mark meta-data to indicate it can't be changed
137
    theLibraryPackage.freeze();
127
    theLibraryPackage.freeze();
138
128
129
  
130
    // Update the registry and return the package
131
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
139
    return theLibraryPackage;
132
    return theLibraryPackage;
140
  }
133
  }
141
134
(-)data/ant.expected/models/5.0/creation/library.rose/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 84-103 Link Here
84
  private static boolean isInited = false;
84
  private static boolean isInited = false;
85
85
86
  /**
86
  /**
87
   * Creates, registers, and initializes the <b>Package</b> for this
87
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
88
   * model, and for any others upon which it depends.  Simple
88
   * 
89
   * dependencies are satisfied by calling this method on all
89
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
90
   * dependent packages before doing anything else.  This method drives
90
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
91
   * initialization for interdependent packages directly, in parallel
92
   * with this package, itself.
93
   * <p>Of this package and its interdependencies, all packages which
94
   * have not yet been registered by their URI values are first created
95
   * and registered.  The packages are then initialized in two steps:
96
   * meta-model objects for all of the packages are created before any
97
   * are initialized, since one package's meta-model objects may refer to
98
   * those of another.
99
   * <p>Invocation of this method will not affect any packages that have
100
   * already been initialized.
101
   * <!-- begin-user-doc -->
91
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
92
   * <!-- end-user-doc -->
103
   * @see #eNS_URI
93
   * @see #eNS_URI
Lines 123-128 Link Here
123
    // Mark meta-data to indicate it can't be changed
113
    // Mark meta-data to indicate it can't be changed
124
    theLibraryPackage.freeze();
114
    theLibraryPackage.freeze();
125
115
116
  
117
    // Update the registry and return the package
118
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
126
    return theLibraryPackage;
119
    return theLibraryPackage;
127
  }
120
  }
128
121
(-)data/ant.expected/models/5.0/creation/library.xsds/src/org/examples/library/elements/impl/ElementsPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: ElementsPackageImpl.java,v 1.6 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.elements.impl;
6
package org.examples.library.elements.impl;
7
7
Lines 90-109 Link Here
90
  private static boolean isInited = false;
90
  private static boolean isInited = false;
91
91
92
  /**
92
  /**
93
   * Creates, registers, and initializes the <b>Package</b> for this
93
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
94
   * model, and for any others upon which it depends.  Simple
94
   * 
95
   * dependencies are satisfied by calling this method on all
95
   * <p>This method is used to initialize {@link ElementsPackage#eINSTANCE} when that field is accessed.
96
   * dependent packages before doing anything else.  This method drives
96
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
97
   * initialization for interdependent packages directly, in parallel
98
   * with this package, itself.
99
   * <p>Of this package and its interdependencies, all packages which
100
   * have not yet been registered by their URI values are first created
101
   * and registered.  The packages are then initialized in two steps:
102
   * meta-model objects for all of the packages are created before any
103
   * are initialized, since one package's meta-model objects may refer to
104
   * those of another.
105
   * <p>Invocation of this method will not affect any packages that have
106
   * already been initialized.
107
   * <!-- begin-user-doc -->
97
   * <!-- begin-user-doc -->
108
   * <!-- end-user-doc -->
98
   * <!-- end-user-doc -->
109
   * @see #eNS_URI
99
   * @see #eNS_URI
Lines 137-142 Link Here
137
    // Mark meta-data to indicate it can't be changed
127
    // Mark meta-data to indicate it can't be changed
138
    theElementsPackage.freeze();
128
    theElementsPackage.freeze();
139
129
130
  
131
    // Update the registry and return the package
132
    EPackage.Registry.INSTANCE.put(ElementsPackage.eNS_URI, theElementsPackage);
140
    return theElementsPackage;
133
    return theElementsPackage;
141
  }
134
  }
142
135
(-)data/ant.expected/models/5.0/reload/library.ecore/src/org/examples/hr/impl/HRPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HRPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.hr.impl;
6
package org.examples.hr.impl;
7
7
Lines 63-82 Link Here
63
  private static boolean isInited = false;
63
  private static boolean isInited = false;
64
64
65
  /**
65
  /**
66
   * Creates, registers, and initializes the <b>Package</b> for this
66
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
67
   * model, and for any others upon which it depends.  Simple
67
   * 
68
   * dependencies are satisfied by calling this method on all
68
   * <p>This method is used to initialize {@link HRPackage#eINSTANCE} when that field is accessed.
69
   * dependent packages before doing anything else.  This method drives
69
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
70
   * initialization for interdependent packages directly, in parallel
71
   * with this package, itself.
72
   * <p>Of this package and its interdependencies, all packages which
73
   * have not yet been registered by their URI values are first created
74
   * and registered.  The packages are then initialized in two steps:
75
   * meta-model objects for all of the packages are created before any
76
   * are initialized, since one package's meta-model objects may refer to
77
   * those of another.
78
   * <p>Invocation of this method will not affect any packages that have
79
   * already been initialized.
80
   * <!-- begin-user-doc -->
70
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
71
   * <!-- end-user-doc -->
82
   * @see #eNS_URI
72
   * @see #eNS_URI
Lines 107-112 Link Here
107
    // Mark meta-data to indicate it can't be changed
97
    // Mark meta-data to indicate it can't be changed
108
    theHRPackage.freeze();
98
    theHRPackage.freeze();
109
99
100
  
101
    // Update the registry and return the package
102
    EPackage.Registry.INSTANCE.put(HRPackage.eNS_URI, theHRPackage);
110
    return theHRPackage;
103
    return theHRPackage;
111
  }
104
  }
112
105
(-)data/ant.expected/models/5.0/creation/library.java/src/org/eclipse/example/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.7 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.eclipse.example.library.impl;
6
package org.eclipse.example.library.impl;
7
7
Lines 145-164 Link Here
145
  private static boolean isInited = false;
145
  private static boolean isInited = false;
146
146
147
  /**
147
  /**
148
   * Creates, registers, and initializes the <b>Package</b> for this
148
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
149
   * model, and for any others upon which it depends.  Simple
149
   * 
150
   * dependencies are satisfied by calling this method on all
150
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
151
   * dependent packages before doing anything else.  This method drives
151
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
152
   * initialization for interdependent packages directly, in parallel
153
   * with this package, itself.
154
   * <p>Of this package and its interdependencies, all packages which
155
   * have not yet been registered by their URI values are first created
156
   * and registered.  The packages are then initialized in two steps:
157
   * meta-model objects for all of the packages are created before any
158
   * are initialized, since one package's meta-model objects may refer to
159
   * those of another.
160
   * <p>Invocation of this method will not affect any packages that have
161
   * already been initialized.
162
   * <!-- begin-user-doc -->
152
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
153
   * <!-- end-user-doc -->
164
   * @see #eNS_URI
154
   * @see #eNS_URI
Lines 184-189 Link Here
184
    // Mark meta-data to indicate it can't be changed
174
    // Mark meta-data to indicate it can't be changed
185
    theLibraryPackage.freeze();
175
    theLibraryPackage.freeze();
186
176
177
  
178
    // Update the registry and return the package
179
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
187
    return theLibraryPackage;
180
    return theLibraryPackage;
188
  }
181
  }
189
182
(-)data/ant.expected/models/5.0/reload/library.xsds/src/org/examples/library/elements/impl/ElementsPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: ElementsPackageImpl.java,v 1.6 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.elements.impl;
6
package org.examples.library.elements.impl;
7
7
Lines 101-120 Link Here
101
  private static boolean isInited = false;
101
  private static boolean isInited = false;
102
102
103
  /**
103
  /**
104
   * Creates, registers, and initializes the <b>Package</b> for this
104
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
105
   * model, and for any others upon which it depends.  Simple
105
   * 
106
   * dependencies are satisfied by calling this method on all
106
   * <p>This method is used to initialize {@link ElementsPackage#eINSTANCE} when that field is accessed.
107
   * dependent packages before doing anything else.  This method drives
107
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
108
   * initialization for interdependent packages directly, in parallel
109
   * with this package, itself.
110
   * <p>Of this package and its interdependencies, all packages which
111
   * have not yet been registered by their URI values are first created
112
   * and registered.  The packages are then initialized in two steps:
113
   * meta-model objects for all of the packages are created before any
114
   * are initialized, since one package's meta-model objects may refer to
115
   * those of another.
116
   * <p>Invocation of this method will not affect any packages that have
117
   * already been initialized.
118
   * <!-- begin-user-doc -->
108
   * <!-- begin-user-doc -->
119
   * <!-- end-user-doc -->
109
   * <!-- end-user-doc -->
120
   * @see #eNS_URI
110
   * @see #eNS_URI
Lines 162-167 Link Here
162
    // Mark meta-data to indicate it can't be changed
152
    // Mark meta-data to indicate it can't be changed
163
    theElementsPackage.freeze();
153
    theElementsPackage.freeze();
164
154
155
  
156
    // Update the registry and return the package
157
    EPackage.Registry.INSTANCE.put(ElementsPackage.eNS_URI, theElementsPackage);
165
    return theElementsPackage;
158
    return theElementsPackage;
166
  }
159
  }
167
160
(-)data/ant.expected/models/1.4/creation/library.java/src/org/eclipse/example/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.6 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.eclipse.example.library.impl;
6
package org.eclipse.example.library.impl;
7
7
Lines 115-134 Link Here
115
  private static boolean isInited = false;
115
  private static boolean isInited = false;
116
116
117
  /**
117
  /**
118
   * Creates, registers, and initializes the <b>Package</b> for this
118
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
119
   * model, and for any others upon which it depends.  Simple
119
   * 
120
   * dependencies are satisfied by calling this method on all
120
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
121
   * dependent packages before doing anything else.  This method drives
121
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
122
   * initialization for interdependent packages directly, in parallel
123
   * with this package, itself.
124
   * <p>Of this package and its interdependencies, all packages which
125
   * have not yet been registered by their URI values are first created
126
   * and registered.  The packages are then initialized in two steps:
127
   * meta-model objects for all of the packages are created before any
128
   * are initialized, since one package's meta-model objects may refer to
129
   * those of another.
130
   * <p>Invocation of this method will not affect any packages that have
131
   * already been initialized.
132
   * <!-- begin-user-doc -->
122
   * <!-- begin-user-doc -->
133
   * <!-- end-user-doc -->
123
   * <!-- end-user-doc -->
134
   * @see #eNS_URI
124
   * @see #eNS_URI
Lines 154-159 Link Here
154
    // Mark meta-data to indicate it can't be changed
144
    // Mark meta-data to indicate it can't be changed
155
    theLibraryPackage.freeze();
145
    theLibraryPackage.freeze();
156
146
147
  
148
    // Update the registry and return the package
149
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
157
    return theLibraryPackage;
150
    return theLibraryPackage;
158
  }
151
  }
159
152
(-)data/ant.expected/models/1.4/reload/library.xsds/src/org/examples/library/hr/impl/HrPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HrPackageImpl.java,v 1.4 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.hr.impl;
6
package org.examples.library.hr.impl;
7
7
Lines 69-88 Link Here
69
  private static boolean isInited = false;
69
  private static boolean isInited = false;
70
70
71
  /**
71
  /**
72
   * Creates, registers, and initializes the <b>Package</b> for this
72
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
73
   * model, and for any others upon which it depends.  Simple
73
   * 
74
   * dependencies are satisfied by calling this method on all
74
   * <p>This method is used to initialize {@link HrPackage#eINSTANCE} when that field is accessed.
75
   * dependent packages before doing anything else.  This method drives
75
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
76
   * initialization for interdependent packages directly, in parallel
77
   * with this package, itself.
78
   * <p>Of this package and its interdependencies, all packages which
79
   * have not yet been registered by their URI values are first created
80
   * and registered.  The packages are then initialized in two steps:
81
   * meta-model objects for all of the packages are created before any
82
   * are initialized, since one package's meta-model objects may refer to
83
   * those of another.
84
   * <p>Invocation of this method will not affect any packages that have
85
   * already been initialized.
86
   * <!-- begin-user-doc -->
76
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
77
   * <!-- end-user-doc -->
88
   * @see #eNS_URI
78
   * @see #eNS_URI
Lines 119-124 Link Here
119
    // Mark meta-data to indicate it can't be changed
109
    // Mark meta-data to indicate it can't be changed
120
    theHrPackage.freeze();
110
    theHrPackage.freeze();
121
111
112
  
113
    // Update the registry and return the package
114
    EPackage.Registry.INSTANCE.put(HrPackage.eNS_URI, theHrPackage);
122
    return theHrPackage;
115
    return theHrPackage;
123
  }
116
  }
124
117
(-)data/ant.expected/models/1.4_5.0/reload/library.rose/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 86-105 Link Here
86
  private static boolean isInited = false;
86
  private static boolean isInited = false;
87
87
88
  /**
88
  /**
89
   * Creates, registers, and initializes the <b>Package</b> for this
89
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
90
   * model, and for any others upon which it depends.  Simple
90
   * 
91
   * dependencies are satisfied by calling this method on all
91
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
92
   * dependent packages before doing anything else.  This method drives
92
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
93
   * initialization for interdependent packages directly, in parallel
94
   * with this package, itself.
95
   * <p>Of this package and its interdependencies, all packages which
96
   * have not yet been registered by their URI values are first created
97
   * and registered.  The packages are then initialized in two steps:
98
   * meta-model objects for all of the packages are created before any
99
   * are initialized, since one package's meta-model objects may refer to
100
   * those of another.
101
   * <p>Invocation of this method will not affect any packages that have
102
   * already been initialized.
103
   * <!-- begin-user-doc -->
93
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
94
   * <!-- end-user-doc -->
105
   * @see #eNS_URI
95
   * @see #eNS_URI
Lines 130-135 Link Here
130
    // Mark meta-data to indicate it can't be changed
120
    // Mark meta-data to indicate it can't be changed
131
    theLibraryPackage.freeze();
121
    theLibraryPackage.freeze();
132
122
123
  
124
    // Update the registry and return the package
125
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
133
    return theLibraryPackage;
126
    return theLibraryPackage;
134
  }
127
  }
135
128
(-)data/ant.expected/models/5.0/reload/library.rose/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 86-105 Link Here
86
  private static boolean isInited = false;
86
  private static boolean isInited = false;
87
87
88
  /**
88
  /**
89
   * Creates, registers, and initializes the <b>Package</b> for this
89
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
90
   * model, and for any others upon which it depends.  Simple
90
   * 
91
   * dependencies are satisfied by calling this method on all
91
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
92
   * dependent packages before doing anything else.  This method drives
92
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
93
   * initialization for interdependent packages directly, in parallel
94
   * with this package, itself.
95
   * <p>Of this package and its interdependencies, all packages which
96
   * have not yet been registered by their URI values are first created
97
   * and registered.  The packages are then initialized in two steps:
98
   * meta-model objects for all of the packages are created before any
99
   * are initialized, since one package's meta-model objects may refer to
100
   * those of another.
101
   * <p>Invocation of this method will not affect any packages that have
102
   * already been initialized.
103
   * <!-- begin-user-doc -->
93
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
94
   * <!-- end-user-doc -->
105
   * @see #eNS_URI
95
   * @see #eNS_URI
Lines 130-135 Link Here
130
    // Mark meta-data to indicate it can't be changed
120
    // Mark meta-data to indicate it can't be changed
131
    theLibraryPackage.freeze();
121
    theLibraryPackage.freeze();
132
122
123
  
124
    // Update the registry and return the package
125
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
133
    return theLibraryPackage;
126
    return theLibraryPackage;
134
  }
127
  }
135
128
(-)data/ant.expected/models/1.4/creation/library.xsds/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.4 2009/04/18 11:49:56 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 65-84 Link Here
65
  private static boolean isInited = false;
65
  private static boolean isInited = false;
66
66
67
  /**
67
  /**
68
   * Creates, registers, and initializes the <b>Package</b> for this
68
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
69
   * model, and for any others upon which it depends.  Simple
69
   * 
70
   * dependencies are satisfied by calling this method on all
70
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
71
   * dependent packages before doing anything else.  This method drives
71
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
72
   * initialization for interdependent packages directly, in parallel
73
   * with this package, itself.
74
   * <p>Of this package and its interdependencies, all packages which
75
   * have not yet been registered by their URI values are first created
76
   * and registered.  The packages are then initialized in two steps:
77
   * meta-model objects for all of the packages are created before any
78
   * are initialized, since one package's meta-model objects may refer to
79
   * those of another.
80
   * <p>Invocation of this method will not affect any packages that have
81
   * already been initialized.
82
   * <!-- begin-user-doc -->
72
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
73
   * <!-- end-user-doc -->
84
   * @see #eNS_URI
74
   * @see #eNS_URI
Lines 112-117 Link Here
112
    // Mark meta-data to indicate it can't be changed
102
    // Mark meta-data to indicate it can't be changed
113
    theLibraryPackage.freeze();
103
    theLibraryPackage.freeze();
114
104
105
  
106
    // Update the registry and return the package
107
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
115
    return theLibraryPackage;
108
    return theLibraryPackage;
116
  }
109
  }
117
110
(-)data/ant.expected/models/5.0/reload/library.xsds/src/org/examples/library/hr/impl/HrPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HrPackageImpl.java,v 1.4 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.hr.impl;
6
package org.examples.library.hr.impl;
7
7
Lines 69-88 Link Here
69
  private static boolean isInited = false;
69
  private static boolean isInited = false;
70
70
71
  /**
71
  /**
72
   * Creates, registers, and initializes the <b>Package</b> for this
72
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
73
   * model, and for any others upon which it depends.  Simple
73
   * 
74
   * dependencies are satisfied by calling this method on all
74
   * <p>This method is used to initialize {@link HrPackage#eINSTANCE} when that field is accessed.
75
   * dependent packages before doing anything else.  This method drives
75
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
76
   * initialization for interdependent packages directly, in parallel
77
   * with this package, itself.
78
   * <p>Of this package and its interdependencies, all packages which
79
   * have not yet been registered by their URI values are first created
80
   * and registered.  The packages are then initialized in two steps:
81
   * meta-model objects for all of the packages are created before any
82
   * are initialized, since one package's meta-model objects may refer to
83
   * those of another.
84
   * <p>Invocation of this method will not affect any packages that have
85
   * already been initialized.
86
   * <!-- begin-user-doc -->
76
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
77
   * <!-- end-user-doc -->
88
   * @see #eNS_URI
78
   * @see #eNS_URI
Lines 119-124 Link Here
119
    // Mark meta-data to indicate it can't be changed
109
    // Mark meta-data to indicate it can't be changed
120
    theHrPackage.freeze();
110
    theHrPackage.freeze();
121
111
112
  
113
    // Update the registry and return the package
114
    EPackage.Registry.INSTANCE.put(HrPackage.eNS_URI, theHrPackage);
122
    return theHrPackage;
115
    return theHrPackage;
123
  }
116
  }
124
117
(-)data/ant.expected/models/5.0/reload/library.xsds/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.4 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 67-86 Link Here
67
  private static boolean isInited = false;
67
  private static boolean isInited = false;
68
68
69
  /**
69
  /**
70
   * Creates, registers, and initializes the <b>Package</b> for this
70
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
71
   * model, and for any others upon which it depends.  Simple
71
   * 
72
   * dependencies are satisfied by calling this method on all
72
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
73
   * dependent packages before doing anything else.  This method drives
73
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
74
   * initialization for interdependent packages directly, in parallel
75
   * with this package, itself.
76
   * <p>Of this package and its interdependencies, all packages which
77
   * have not yet been registered by their URI values are first created
78
   * and registered.  The packages are then initialized in two steps:
79
   * meta-model objects for all of the packages are created before any
80
   * are initialized, since one package's meta-model objects may refer to
81
   * those of another.
82
   * <p>Invocation of this method will not affect any packages that have
83
   * already been initialized.
84
   * <!-- begin-user-doc -->
74
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
75
   * <!-- end-user-doc -->
86
   * @see #eNS_URI
76
   * @see #eNS_URI
Lines 117-122 Link Here
117
    // Mark meta-data to indicate it can't be changed
107
    // Mark meta-data to indicate it can't be changed
118
    theLibraryPackage.freeze();
108
    theLibraryPackage.freeze();
119
109
110
  
111
    // Update the registry and return the package
112
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
120
    return theLibraryPackage;
113
    return theLibraryPackage;
121
  }
114
  }
122
115
(-)data/ant.expected/models/1.4/reload/library.rose/src/org/examples/hr/impl/HRPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HRPackageImpl.java,v 1.3 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.hr.impl;
6
package org.examples.hr.impl;
7
7
Lines 63-82 Link Here
63
  private static boolean isInited = false;
63
  private static boolean isInited = false;
64
64
65
  /**
65
  /**
66
   * Creates, registers, and initializes the <b>Package</b> for this
66
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
67
   * model, and for any others upon which it depends.  Simple
67
   * 
68
   * dependencies are satisfied by calling this method on all
68
   * <p>This method is used to initialize {@link HRPackage#eINSTANCE} when that field is accessed.
69
   * dependent packages before doing anything else.  This method drives
69
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
70
   * initialization for interdependent packages directly, in parallel
71
   * with this package, itself.
72
   * <p>Of this package and its interdependencies, all packages which
73
   * have not yet been registered by their URI values are first created
74
   * and registered.  The packages are then initialized in two steps:
75
   * meta-model objects for all of the packages are created before any
76
   * are initialized, since one package's meta-model objects may refer to
77
   * those of another.
78
   * <p>Invocation of this method will not affect any packages that have
79
   * already been initialized.
80
   * <!-- begin-user-doc -->
70
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
71
   * <!-- end-user-doc -->
82
   * @see #eNS_URI
72
   * @see #eNS_URI
Lines 107-112 Link Here
107
    // Mark meta-data to indicate it can't be changed
97
    // Mark meta-data to indicate it can't be changed
108
    theHRPackage.freeze();
98
    theHRPackage.freeze();
109
99
100
  
101
    // Update the registry and return the package
102
    EPackage.Registry.INSTANCE.put(HRPackage.eNS_URI, theHRPackage);
110
    return theHRPackage;
103
    return theHRPackage;
111
  }
104
  }
112
105
(-)data/ant.expected/models/1.4_5.0/creation/library.xsds/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.4 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 65-84 Link Here
65
  private static boolean isInited = false;
65
  private static boolean isInited = false;
66
66
67
  /**
67
  /**
68
   * Creates, registers, and initializes the <b>Package</b> for this
68
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
69
   * model, and for any others upon which it depends.  Simple
69
   * 
70
   * dependencies are satisfied by calling this method on all
70
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
71
   * dependent packages before doing anything else.  This method drives
71
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
72
   * initialization for interdependent packages directly, in parallel
73
   * with this package, itself.
74
   * <p>Of this package and its interdependencies, all packages which
75
   * have not yet been registered by their URI values are first created
76
   * and registered.  The packages are then initialized in two steps:
77
   * meta-model objects for all of the packages are created before any
78
   * are initialized, since one package's meta-model objects may refer to
79
   * those of another.
80
   * <p>Invocation of this method will not affect any packages that have
81
   * already been initialized.
82
   * <!-- begin-user-doc -->
72
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
73
   * <!-- end-user-doc -->
84
   * @see #eNS_URI
74
   * @see #eNS_URI
Lines 112-117 Link Here
112
    // Mark meta-data to indicate it can't be changed
102
    // Mark meta-data to indicate it can't be changed
113
    theLibraryPackage.freeze();
103
    theLibraryPackage.freeze();
114
104
105
  
106
    // Update the registry and return the package
107
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
115
    return theLibraryPackage;
108
    return theLibraryPackage;
116
  }
109
  }
117
110
(-)data/ant.expected/models/1.4/reload/library.rose/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 86-105 Link Here
86
  private static boolean isInited = false;
86
  private static boolean isInited = false;
87
87
88
  /**
88
  /**
89
   * Creates, registers, and initializes the <b>Package</b> for this
89
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
90
   * model, and for any others upon which it depends.  Simple
90
   * 
91
   * dependencies are satisfied by calling this method on all
91
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
92
   * dependent packages before doing anything else.  This method drives
92
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
93
   * initialization for interdependent packages directly, in parallel
94
   * with this package, itself.
95
   * <p>Of this package and its interdependencies, all packages which
96
   * have not yet been registered by their URI values are first created
97
   * and registered.  The packages are then initialized in two steps:
98
   * meta-model objects for all of the packages are created before any
99
   * are initialized, since one package's meta-model objects may refer to
100
   * those of another.
101
   * <p>Invocation of this method will not affect any packages that have
102
   * already been initialized.
103
   * <!-- begin-user-doc -->
93
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
94
   * <!-- end-user-doc -->
105
   * @see #eNS_URI
95
   * @see #eNS_URI
Lines 130-135 Link Here
130
    // Mark meta-data to indicate it can't be changed
120
    // Mark meta-data to indicate it can't be changed
131
    theLibraryPackage.freeze();
121
    theLibraryPackage.freeze();
132
122
123
  
124
    // Update the registry and return the package
125
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
133
    return theLibraryPackage;
126
    return theLibraryPackage;
134
  }
127
  }
135
128
(-)data/ant.expected/models/5.0/creation/library.ecore/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 84-103 Link Here
84
  private static boolean isInited = false;
84
  private static boolean isInited = false;
85
85
86
  /**
86
  /**
87
   * Creates, registers, and initializes the <b>Package</b> for this
87
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
88
   * model, and for any others upon which it depends.  Simple
88
   * 
89
   * dependencies are satisfied by calling this method on all
89
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
90
   * dependent packages before doing anything else.  This method drives
90
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
91
   * initialization for interdependent packages directly, in parallel
92
   * with this package, itself.
93
   * <p>Of this package and its interdependencies, all packages which
94
   * have not yet been registered by their URI values are first created
95
   * and registered.  The packages are then initialized in two steps:
96
   * meta-model objects for all of the packages are created before any
97
   * are initialized, since one package's meta-model objects may refer to
98
   * those of another.
99
   * <p>Invocation of this method will not affect any packages that have
100
   * already been initialized.
101
   * <!-- begin-user-doc -->
91
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
92
   * <!-- end-user-doc -->
103
   * @see #eNS_URI
93
   * @see #eNS_URI
Lines 123-128 Link Here
123
    // Mark meta-data to indicate it can't be changed
113
    // Mark meta-data to indicate it can't be changed
124
    theLibraryPackage.freeze();
114
    theLibraryPackage.freeze();
125
115
116
  
117
    // Update the registry and return the package
118
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
126
    return theLibraryPackage;
119
    return theLibraryPackage;
127
  }
120
  }
128
121
(-)data/ant.expected/models/1.4/reload/library.xsds/src/org/examples/library/elements/impl/ElementsPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: ElementsPackageImpl.java,v 1.6 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.elements.impl;
6
package org.examples.library.elements.impl;
7
7
Lines 101-120 Link Here
101
  private static boolean isInited = false;
101
  private static boolean isInited = false;
102
102
103
  /**
103
  /**
104
   * Creates, registers, and initializes the <b>Package</b> for this
104
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
105
   * model, and for any others upon which it depends.  Simple
105
   * 
106
   * dependencies are satisfied by calling this method on all
106
   * <p>This method is used to initialize {@link ElementsPackage#eINSTANCE} when that field is accessed.
107
   * dependent packages before doing anything else.  This method drives
107
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
108
   * initialization for interdependent packages directly, in parallel
109
   * with this package, itself.
110
   * <p>Of this package and its interdependencies, all packages which
111
   * have not yet been registered by their URI values are first created
112
   * and registered.  The packages are then initialized in two steps:
113
   * meta-model objects for all of the packages are created before any
114
   * are initialized, since one package's meta-model objects may refer to
115
   * those of another.
116
   * <p>Invocation of this method will not affect any packages that have
117
   * already been initialized.
118
   * <!-- begin-user-doc -->
108
   * <!-- begin-user-doc -->
119
   * <!-- end-user-doc -->
109
   * <!-- end-user-doc -->
120
   * @see #eNS_URI
110
   * @see #eNS_URI
Lines 162-167 Link Here
162
    // Mark meta-data to indicate it can't be changed
152
    // Mark meta-data to indicate it can't be changed
163
    theElementsPackage.freeze();
153
    theElementsPackage.freeze();
164
154
155
  
156
    // Update the registry and return the package
157
    EPackage.Registry.INSTANCE.put(ElementsPackage.eNS_URI, theElementsPackage);
165
    return theElementsPackage;
158
    return theElementsPackage;
166
  }
159
  }
167
160
(-)data/ant.expected/models/1.4_5.0/reload/library.ecore/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 86-105 Link Here
86
  private static boolean isInited = false;
86
  private static boolean isInited = false;
87
87
88
  /**
88
  /**
89
   * Creates, registers, and initializes the <b>Package</b> for this
89
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
90
   * model, and for any others upon which it depends.  Simple
90
   * 
91
   * dependencies are satisfied by calling this method on all
91
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
92
   * dependent packages before doing anything else.  This method drives
92
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
93
   * initialization for interdependent packages directly, in parallel
94
   * with this package, itself.
95
   * <p>Of this package and its interdependencies, all packages which
96
   * have not yet been registered by their URI values are first created
97
   * and registered.  The packages are then initialized in two steps:
98
   * meta-model objects for all of the packages are created before any
99
   * are initialized, since one package's meta-model objects may refer to
100
   * those of another.
101
   * <p>Invocation of this method will not affect any packages that have
102
   * already been initialized.
103
   * <!-- begin-user-doc -->
93
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
94
   * <!-- end-user-doc -->
105
   * @see #eNS_URI
95
   * @see #eNS_URI
Lines 130-135 Link Here
130
    // Mark meta-data to indicate it can't be changed
120
    // Mark meta-data to indicate it can't be changed
131
    theLibraryPackage.freeze();
121
    theLibraryPackage.freeze();
132
122
123
  
124
    // Update the registry and return the package
125
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
133
    return theLibraryPackage;
126
    return theLibraryPackage;
134
  }
127
  }
135
128
(-)data/ant.expected/models/1.4/reload/library.ecore/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 86-105 Link Here
86
  private static boolean isInited = false;
86
  private static boolean isInited = false;
87
87
88
  /**
88
  /**
89
   * Creates, registers, and initializes the <b>Package</b> for this
89
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
90
   * model, and for any others upon which it depends.  Simple
90
   * 
91
   * dependencies are satisfied by calling this method on all
91
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
92
   * dependent packages before doing anything else.  This method drives
92
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
93
   * initialization for interdependent packages directly, in parallel
94
   * with this package, itself.
95
   * <p>Of this package and its interdependencies, all packages which
96
   * have not yet been registered by their URI values are first created
97
   * and registered.  The packages are then initialized in two steps:
98
   * meta-model objects for all of the packages are created before any
99
   * are initialized, since one package's meta-model objects may refer to
100
   * those of another.
101
   * <p>Invocation of this method will not affect any packages that have
102
   * already been initialized.
103
   * <!-- begin-user-doc -->
93
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
94
   * <!-- end-user-doc -->
105
   * @see #eNS_URI
95
   * @see #eNS_URI
Lines 130-135 Link Here
130
    // Mark meta-data to indicate it can't be changed
120
    // Mark meta-data to indicate it can't be changed
131
    theLibraryPackage.freeze();
121
    theLibraryPackage.freeze();
132
122
123
  
124
    // Update the registry and return the package
125
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
133
    return theLibraryPackage;
126
    return theLibraryPackage;
134
  }
127
  }
135
128
(-)data/ant.expected/models/5.0/reload/library.ecore/src/org/examples/library/impl/LibraryPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: LibraryPackageImpl.java,v 1.3 2009/04/21 10:58:09 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.impl;
6
package org.examples.library.impl;
7
7
Lines 86-105 Link Here
86
  private static boolean isInited = false;
86
  private static boolean isInited = false;
87
87
88
  /**
88
  /**
89
   * Creates, registers, and initializes the <b>Package</b> for this
89
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
90
   * model, and for any others upon which it depends.  Simple
90
   * 
91
   * dependencies are satisfied by calling this method on all
91
   * <p>This method is used to initialize {@link LibraryPackage#eINSTANCE} when that field is accessed.
92
   * dependent packages before doing anything else.  This method drives
92
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
93
   * initialization for interdependent packages directly, in parallel
94
   * with this package, itself.
95
   * <p>Of this package and its interdependencies, all packages which
96
   * have not yet been registered by their URI values are first created
97
   * and registered.  The packages are then initialized in two steps:
98
   * meta-model objects for all of the packages are created before any
99
   * are initialized, since one package's meta-model objects may refer to
100
   * those of another.
101
   * <p>Invocation of this method will not affect any packages that have
102
   * already been initialized.
103
   * <!-- begin-user-doc -->
93
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
94
   * <!-- end-user-doc -->
105
   * @see #eNS_URI
95
   * @see #eNS_URI
Lines 130-135 Link Here
130
    // Mark meta-data to indicate it can't be changed
120
    // Mark meta-data to indicate it can't be changed
131
    theLibraryPackage.freeze();
121
    theLibraryPackage.freeze();
132
122
123
  
124
    // Update the registry and return the package
125
    EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage);
133
    return theLibraryPackage;
126
    return theLibraryPackage;
134
  }
127
  }
135
128
(-)data/ant.expected/models/1.4_5.0/reload/library.xsds/src/org/examples/library/hr/impl/HrPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HrPackageImpl.java,v 1.4 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.library.hr.impl;
6
package org.examples.library.hr.impl;
7
7
Lines 69-88 Link Here
69
  private static boolean isInited = false;
69
  private static boolean isInited = false;
70
70
71
  /**
71
  /**
72
   * Creates, registers, and initializes the <b>Package</b> for this
72
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
73
   * model, and for any others upon which it depends.  Simple
73
   * 
74
   * dependencies are satisfied by calling this method on all
74
   * <p>This method is used to initialize {@link HrPackage#eINSTANCE} when that field is accessed.
75
   * dependent packages before doing anything else.  This method drives
75
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
76
   * initialization for interdependent packages directly, in parallel
77
   * with this package, itself.
78
   * <p>Of this package and its interdependencies, all packages which
79
   * have not yet been registered by their URI values are first created
80
   * and registered.  The packages are then initialized in two steps:
81
   * meta-model objects for all of the packages are created before any
82
   * are initialized, since one package's meta-model objects may refer to
83
   * those of another.
84
   * <p>Invocation of this method will not affect any packages that have
85
   * already been initialized.
86
   * <!-- begin-user-doc -->
76
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
77
   * <!-- end-user-doc -->
88
   * @see #eNS_URI
78
   * @see #eNS_URI
Lines 119-124 Link Here
119
    // Mark meta-data to indicate it can't be changed
109
    // Mark meta-data to indicate it can't be changed
120
    theHrPackage.freeze();
110
    theHrPackage.freeze();
121
111
112
  
113
    // Update the registry and return the package
114
    EPackage.Registry.INSTANCE.put(HrPackage.eNS_URI, theHrPackage);
122
    return theHrPackage;
115
    return theHrPackage;
123
  }
116
  }
124
117
(-)data/ant.expected/models/5.0/reload/library.rose/src/org/examples/hr/impl/HRPackageImpl.java (-15 / +8 lines)
Lines 1-7 Link Here
1
/**
1
/**
2
 * This is my code.
2
 * This is my code.
3
 *
3
 *
4
 * $Id: HRPackageImpl.java,v 1.3 2009/04/18 11:49:55 emerks Exp $
4
 * $Id$
5
 */
5
 */
6
package org.examples.hr.impl;
6
package org.examples.hr.impl;
7
7
Lines 63-82 Link Here
63
  private static boolean isInited = false;
63
  private static boolean isInited = false;
64
64
65
  /**
65
  /**
66
   * Creates, registers, and initializes the <b>Package</b> for this
66
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
67
   * model, and for any others upon which it depends.  Simple
67
   * 
68
   * dependencies are satisfied by calling this method on all
68
   * <p>This method is used to initialize {@link HRPackage#eINSTANCE} when that field is accessed.
69
   * dependent packages before doing anything else.  This method drives
69
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
70
   * initialization for interdependent packages directly, in parallel
71
   * with this package, itself.
72
   * <p>Of this package and its interdependencies, all packages which
73
   * have not yet been registered by their URI values are first created
74
   * and registered.  The packages are then initialized in two steps:
75
   * meta-model objects for all of the packages are created before any
76
   * are initialized, since one package's meta-model objects may refer to
77
   * those of another.
78
   * <p>Invocation of this method will not affect any packages that have
79
   * already been initialized.
80
   * <!-- begin-user-doc -->
70
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
71
   * <!-- end-user-doc -->
82
   * @see #eNS_URI
72
   * @see #eNS_URI
Lines 107-112 Link Here
107
    // Mark meta-data to indicate it can't be changed
97
    // Mark meta-data to indicate it can't be changed
108
    theHRPackage.freeze();
98
    theHRPackage.freeze();
109
99
100
  
101
    // Update the registry and return the package
102
    EPackage.Registry.INSTANCE.put(HRPackage.eNS_URI, theHRPackage);
110
    return theHRPackage;
103
    return theHRPackage;
111
  }
104
  }
112
105
(-)src/org/eclipse/emf/mapping/ecore2xml/impl/Ecore2XMLPackageImpl.java (-14 / +7 lines)
Lines 88-107 Link Here
88
  private static boolean isInited = false;
88
  private static boolean isInited = false;
89
  
89
  
90
  /**
90
  /**
91
   * Creates, registers, and initializes the <b>Package</b> for this
91
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
92
   * model, and for any others upon which it depends.  Simple
92
   * 
93
   * dependencies are satisfied by calling this method on all
93
   * <p>This method is used to initialize {@link Ecore2XMLPackage#eINSTANCE} when that field is accessed.
94
   * dependent packages before doing anything else.  This method drives
94
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
95
   * initialization for interdependent packages directly, in parallel
96
   * with this package, itself.
97
   * <p>Of this package and its interdependencies, all packages which
98
   * have not yet been registered by their URI values are first created
99
   * and registered.  The packages are then initialized in two steps:
100
   * meta-model objects for all of the packages are created before any
101
   * are initialized, since one package's meta-model objects may refer to
102
   * those of another.
103
   * <p>Invocation of this method will not affect any packages that have
104
   * already been initialized.
105
   * <!-- begin-user-doc -->
95
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
96
   * <!-- end-user-doc -->
107
   * @see #eNS_URI
97
   * @see #eNS_URI
Lines 130-135 Link Here
130
    // Mark meta-data to indicate it can't be changed
120
    // Mark meta-data to indicate it can't be changed
131
    theEcore2XMLPackage.freeze();
121
    theEcore2XMLPackage.freeze();
132
122
123
  
124
    // Update the registry and return the package
125
    EPackage.Registry.INSTANCE.put(Ecore2XMLPackage.eNS_URI, theEcore2XMLPackage);
133
    return theEcore2XMLPackage;
126
    return theEcore2XMLPackage;
134
  }
127
  }
135
128
(-)src/org/eclipse/emf/edit/tree/impl/TreePackageImpl.java (-14 / +7 lines)
Lines 70-89 Link Here
70
  private static boolean isInited = false;
70
  private static boolean isInited = false;
71
71
72
  /**
72
  /**
73
   * Creates, registers, and initializes the <b>Package</b> for this
73
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
74
   * model, and for any others upon which it depends.  Simple
74
   * 
75
   * dependencies are satisfied by calling this method on all
75
   * <p>This method is used to initialize {@link TreePackage#eINSTANCE} when that field is accessed.
76
   * dependent packages before doing anything else.  This method drives
76
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
77
   * initialization for interdependent packages directly, in parallel
78
   * with this package, itself.
79
   * <p>Of this package and its interdependencies, all packages which
80
   * have not yet been registered by their URI values are first created
81
   * and registered.  The packages are then initialized in two steps:
82
   * meta-model objects for all of the packages are created before any
83
   * are initialized, since one package's meta-model objects may refer to
84
   * those of another.
85
   * <p>Invocation of this method will not affect any packages that have
86
   * already been initialized.
87
   * <!-- begin-user-doc -->
77
   * <!-- begin-user-doc -->
88
   * <!-- end-user-doc -->
78
   * <!-- end-user-doc -->
89
   * @see #eNS_URI
79
   * @see #eNS_URI
Lines 112-117 Link Here
112
    // Mark meta-data to indicate it can't be changed
102
    // Mark meta-data to indicate it can't be changed
113
    theTreePackage.freeze();
103
    theTreePackage.freeze();
114
104
105
  
106
    // Update the registry and return the package
107
    EPackage.Registry.INSTANCE.put(TreePackage.eNS_URI, theTreePackage);
115
    return theTreePackage;
108
    return theTreePackage;
116
  }
109
  }
117
110
(-)src/org/eclipse/emf/examples/extlibrary/impl/EXTLibraryPackageImpl.java (-14 / +7 lines)
Lines 185-204 Link Here
185
  private static boolean isInited = false;
185
  private static boolean isInited = false;
186
186
187
  /**
187
  /**
188
   * Creates, registers, and initializes the <b>Package</b> for this
188
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
189
   * model, and for any others upon which it depends.  Simple
189
   * 
190
   * dependencies are satisfied by calling this method on all
190
   * <p>This method is used to initialize {@link EXTLibraryPackage#eINSTANCE} when that field is accessed.
191
   * dependent packages before doing anything else.  This method drives
191
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
192
   * initialization for interdependent packages directly, in parallel
193
   * with this package, itself.
194
   * <p>Of this package and its interdependencies, all packages which
195
   * have not yet been registered by their URI values are first created
196
   * and registered.  The packages are then initialized in two steps:
197
   * meta-model objects for all of the packages are created before any
198
   * are initialized, since one package's meta-model objects may refer to
199
   * those of another.
200
   * <p>Invocation of this method will not affect any packages that have
201
   * already been initialized.
202
   * <!-- begin-user-doc -->
192
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
193
   * <!-- end-user-doc -->
204
   * @see #eNS_URI
194
   * @see #eNS_URI
Lines 224-229 Link Here
224
    // Mark meta-data to indicate it can't be changed
214
    // Mark meta-data to indicate it can't be changed
225
    theEXTLibraryPackage.freeze();
215
    theEXTLibraryPackage.freeze();
226
216
217
  
218
    // Update the registry and return the package
219
    EPackage.Registry.INSTANCE.put(EXTLibraryPackage.eNS_URI, theEXTLibraryPackage);
227
    return theEXTLibraryPackage;
220
    return theEXTLibraryPackage;
228
  }
221
  }
229
222
(-)src/org/eclipse/emf/ecore/change/impl/ChangePackageImpl.java (-14 / +7 lines)
Lines 128-147 Link Here
128
  private static boolean isInited = false;
128
  private static boolean isInited = false;
129
129
130
  /**
130
  /**
131
   * Creates, registers, and initializes the <b>Package</b> for this
131
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
132
   * model, and for any others upon which it depends.  Simple
132
   * 
133
   * dependencies are satisfied by calling this method on all
133
   * <p>This method is used to initialize {@link ChangePackage#eINSTANCE} when that field is accessed.
134
   * dependent packages before doing anything else.  This method drives
134
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
135
   * initialization for interdependent packages directly, in parallel
136
   * with this package, itself.
137
   * <p>Of this package and its interdependencies, all packages which
138
   * have not yet been registered by their URI values are first created
139
   * and registered.  The packages are then initialized in two steps:
140
   * meta-model objects for all of the packages are created before any
141
   * are initialized, since one package's meta-model objects may refer to
142
   * those of another.
143
   * <p>Invocation of this method will not affect any packages that have
144
   * already been initialized.
145
   * <!-- begin-user-doc -->
135
   * <!-- begin-user-doc -->
146
   * <!-- end-user-doc -->
136
   * <!-- end-user-doc -->
147
   * @see #eNS_URI
137
   * @see #eNS_URI
Lines 170-175 Link Here
170
    // Mark meta-data to indicate it can't be changed
160
    // Mark meta-data to indicate it can't be changed
171
    theChangePackage.freeze();
161
    theChangePackage.freeze();
172
162
163
  
164
    // Update the registry and return the package
165
    EPackage.Registry.INSTANCE.put(ChangePackage.eNS_URI, theChangePackage);
173
    return theChangePackage;
166
    return theChangePackage;
174
  }
167
  }
175
168
(-)src/org/eclipse/emf/test/core/featuremap/supplier/impl/SupplierPackageImpl.java (-14 / +7 lines)
Lines 70-89 Link Here
70
  private static boolean isInited = false;
70
  private static boolean isInited = false;
71
71
72
  /**
72
  /**
73
   * Creates, registers, and initializes the <b>Package</b> for this
73
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
74
   * model, and for any others upon which it depends.  Simple
74
   * 
75
   * dependencies are satisfied by calling this method on all
75
   * <p>This method is used to initialize {@link SupplierPackage#eINSTANCE} when that field is accessed.
76
   * dependent packages before doing anything else.  This method drives
76
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
77
   * initialization for interdependent packages directly, in parallel
78
   * with this package, itself.
79
   * <p>Of this package and its interdependencies, all packages which
80
   * have not yet been registered by their URI values are first created
81
   * and registered.  The packages are then initialized in two steps:
82
   * meta-model objects for all of the packages are created before any
83
   * are initialized, since one package's meta-model objects may refer to
84
   * those of another.
85
   * <p>Invocation of this method will not affect any packages that have
86
   * already been initialized.
87
   * <!-- begin-user-doc -->
77
   * <!-- begin-user-doc -->
88
   * <!-- end-user-doc -->
78
   * <!-- end-user-doc -->
89
   * @see #eNS_URI
79
   * @see #eNS_URI
Lines 112-117 Link Here
112
    // Mark meta-data to indicate it can't be changed
102
    // Mark meta-data to indicate it can't be changed
113
    theSupplierPackage.freeze();
103
    theSupplierPackage.freeze();
114
104
105
  
106
    // Update the registry and return the package
107
    EPackage.Registry.INSTANCE.put(SupplierPackage.eNS_URI, theSupplierPackage);
115
    return theSupplierPackage;
108
    return theSupplierPackage;
116
  }
109
  }
117
110
(-)src/org/eclipse/emf/java/impl/JavaPackageImpl.java (-14 / +7 lines)
Lines 191-210 Link Here
191
  private static boolean isInited = false;
191
  private static boolean isInited = false;
192
192
193
  /**
193
  /**
194
   * Creates, registers, and initializes the <b>Package</b> for this
194
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
195
   * model, and for any others upon which it depends.  Simple
195
   * 
196
   * dependencies are satisfied by calling this method on all
196
   * <p>This method is used to initialize {@link JavaPackage#eINSTANCE} when that field is accessed.
197
   * dependent packages before doing anything else.  This method drives
197
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
198
   * initialization for interdependent packages directly, in parallel
199
   * with this package, itself.
200
   * <p>Of this package and its interdependencies, all packages which
201
   * have not yet been registered by their URI values are first created
202
   * and registered.  The packages are then initialized in two steps:
203
   * meta-model objects for all of the packages are created before any
204
   * are initialized, since one package's meta-model objects may refer to
205
   * those of another.
206
   * <p>Invocation of this method will not affect any packages that have
207
   * already been initialized.
208
   * <!-- begin-user-doc -->
198
   * <!-- begin-user-doc -->
209
   * <!-- end-user-doc -->
199
   * <!-- end-user-doc -->
210
   * @see #eNS_URI
200
   * @see #eNS_URI
Lines 230-235 Link Here
230
    // Mark meta-data to indicate it can't be changed
220
    // Mark meta-data to indicate it can't be changed
231
    theJavaPackage.freeze();
221
    theJavaPackage.freeze();
232
222
223
  
224
    // Update the registry and return the package
225
    EPackage.Registry.INSTANCE.put(JavaPackage.eNS_URI, theJavaPackage);
233
    return theJavaPackage;
226
    return theJavaPackage;
234
  }
227
  }
235
228
(-)src/org/eclipse/emf/test/models/qname/impl/QNamePackageImpl.java (-14 / +7 lines)
Lines 114-133 Link Here
114
  private static boolean isInited = false;
114
  private static boolean isInited = false;
115
115
116
  /**
116
  /**
117
   * Creates, registers, and initializes the <b>Package</b> for this
117
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
118
   * model, and for any others upon which it depends.  Simple
118
   * 
119
   * dependencies are satisfied by calling this method on all
119
   * <p>This method is used to initialize {@link QNamePackage#eINSTANCE} when that field is accessed.
120
   * dependent packages before doing anything else.  This method drives
120
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
121
   * initialization for interdependent packages directly, in parallel
122
   * with this package, itself.
123
   * <p>Of this package and its interdependencies, all packages which
124
   * have not yet been registered by their URI values are first created
125
   * and registered.  The packages are then initialized in two steps:
126
   * meta-model objects for all of the packages are created before any
127
   * are initialized, since one package's meta-model objects may refer to
128
   * those of another.
129
   * <p>Invocation of this method will not affect any packages that have
130
   * already been initialized.
131
   * <!-- begin-user-doc -->
121
   * <!-- begin-user-doc -->
132
   * <!-- end-user-doc -->
122
   * <!-- end-user-doc -->
133
   * @see #eNS_URI
123
   * @see #eNS_URI
Lines 167-172 Link Here
167
    // Mark meta-data to indicate it can't be changed
157
    // Mark meta-data to indicate it can't be changed
168
    theQNamePackage.freeze();
158
    theQNamePackage.freeze();
169
159
160
  
161
    // Update the registry and return the package
162
    EPackage.Registry.INSTANCE.put(QNamePackage.eNS_URI, theQNamePackage);
170
    return theQNamePackage;
163
    return theQNamePackage;
171
  }
164
  }
172
165
(-)src/org/eclipse/emf/test/models/order/impl/OrderPackageImpl.java (-14 / +7 lines)
Lines 96-115 Link Here
96
  private static boolean isInited = false;
96
  private static boolean isInited = false;
97
97
98
  /**
98
  /**
99
   * Creates, registers, and initializes the <b>Package</b> for this
99
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
100
   * model, and for any others upon which it depends.  Simple
100
   * 
101
   * dependencies are satisfied by calling this method on all
101
   * <p>This method is used to initialize {@link OrderPackage#eINSTANCE} when that field is accessed.
102
   * dependent packages before doing anything else.  This method drives
102
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
103
   * initialization for interdependent packages directly, in parallel
104
   * with this package, itself.
105
   * <p>Of this package and its interdependencies, all packages which
106
   * have not yet been registered by their URI values are first created
107
   * and registered.  The packages are then initialized in two steps:
108
   * meta-model objects for all of the packages are created before any
109
   * are initialized, since one package's meta-model objects may refer to
110
   * those of another.
111
   * <p>Invocation of this method will not affect any packages that have
112
   * already been initialized.
113
   * <!-- begin-user-doc -->
103
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
104
   * <!-- end-user-doc -->
115
   * @see #eNS_URI
105
   * @see #eNS_URI
Lines 146-151 Link Here
146
    // Mark meta-data to indicate it can't be changed
136
    // Mark meta-data to indicate it can't be changed
147
    theOrderPackage.freeze();
137
    theOrderPackage.freeze();
148
138
139
  
140
    // Update the registry and return the package
141
    EPackage.Registry.INSTANCE.put(OrderPackage.eNS_URI, theOrderPackage);
149
    return theOrderPackage;
142
    return theOrderPackage;
150
  }
143
  }
151
144
(-)src/org/eclipse/emf/test/models/dbitem/impl/DBItemPackageImpl.java (-14 / +7 lines)
Lines 82-101 Link Here
82
  private static boolean isInited = false;
82
  private static boolean isInited = false;
83
83
84
  /**
84
  /**
85
   * Creates, registers, and initializes the <b>Package</b> for this
85
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
86
   * model, and for any others upon which it depends.  Simple
86
   * 
87
   * dependencies are satisfied by calling this method on all
87
   * <p>This method is used to initialize {@link DBItemPackage#eINSTANCE} when that field is accessed.
88
   * dependent packages before doing anything else.  This method drives
88
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
89
   * initialization for interdependent packages directly, in parallel
90
   * with this package, itself.
91
   * <p>Of this package and its interdependencies, all packages which
92
   * have not yet been registered by their URI values are first created
93
   * and registered.  The packages are then initialized in two steps:
94
   * meta-model objects for all of the packages are created before any
95
   * are initialized, since one package's meta-model objects may refer to
96
   * those of another.
97
   * <p>Invocation of this method will not affect any packages that have
98
   * already been initialized.
99
   * <!-- begin-user-doc -->
89
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
90
   * <!-- end-user-doc -->
101
   * @see #eNS_URI
91
   * @see #eNS_URI
Lines 126-131 Link Here
126
    // Mark meta-data to indicate it can't be changed
116
    // Mark meta-data to indicate it can't be changed
127
    theDBItemPackage.freeze();
117
    theDBItemPackage.freeze();
128
118
119
  
120
    // Update the registry and return the package
121
    EPackage.Registry.INSTANCE.put(DBItemPackage.eNS_URI, theDBItemPackage);
129
    return theDBItemPackage;
122
    return theDBItemPackage;
130
  }
123
  }
131
124
(-)src/org/eclipse/emf/test/models/customer/impl/CustomerPackageImpl.java (-14 / +7 lines)
Lines 164-183 Link Here
164
  private static boolean isInited = false;
164
  private static boolean isInited = false;
165
165
166
  /**
166
  /**
167
   * Creates, registers, and initializes the <b>Package</b> for this
167
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
168
   * model, and for any others upon which it depends.  Simple
168
   * 
169
   * dependencies are satisfied by calling this method on all
169
   * <p>This method is used to initialize {@link CustomerPackage#eINSTANCE} when that field is accessed.
170
   * dependent packages before doing anything else.  This method drives
170
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
171
   * initialization for interdependent packages directly, in parallel
172
   * with this package, itself.
173
   * <p>Of this package and its interdependencies, all packages which
174
   * have not yet been registered by their URI values are first created
175
   * and registered.  The packages are then initialized in two steps:
176
   * meta-model objects for all of the packages are created before any
177
   * are initialized, since one package's meta-model objects may refer to
178
   * those of another.
179
   * <p>Invocation of this method will not affect any packages that have
180
   * already been initialized.
181
   * <!-- begin-user-doc -->
171
   * <!-- begin-user-doc -->
182
   * <!-- end-user-doc -->
172
   * <!-- end-user-doc -->
183
   * @see #eNS_URI
173
   * @see #eNS_URI
Lines 225-230 Link Here
225
    // Mark meta-data to indicate it can't be changed
215
    // Mark meta-data to indicate it can't be changed
226
    theCustomerPackage.freeze();
216
    theCustomerPackage.freeze();
227
217
218
  
219
    // Update the registry and return the package
220
    EPackage.Registry.INSTANCE.put(CustomerPackage.eNS_URI, theCustomerPackage);
228
    return theCustomerPackage;
221
    return theCustomerPackage;
229
  }
222
  }
230
223
(-)src/org/eclipse/emf/test/models/ref/impl/RefPackageImpl.java (-14 / +7 lines)
Lines 133-152 Link Here
133
  private static boolean isInited = false;
133
  private static boolean isInited = false;
134
134
135
  /**
135
  /**
136
   * Creates, registers, and initializes the <b>Package</b> for this
136
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
137
   * model, and for any others upon which it depends.  Simple
137
   * 
138
   * dependencies are satisfied by calling this method on all
138
   * <p>This method is used to initialize {@link RefPackage#eINSTANCE} when that field is accessed.
139
   * dependent packages before doing anything else.  This method drives
139
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
140
   * initialization for interdependent packages directly, in parallel
141
   * with this package, itself.
142
   * <p>Of this package and its interdependencies, all packages which
143
   * have not yet been registered by their URI values are first created
144
   * and registered.  The packages are then initialized in two steps:
145
   * meta-model objects for all of the packages are created before any
146
   * are initialized, since one package's meta-model objects may refer to
147
   * those of another.
148
   * <p>Invocation of this method will not affect any packages that have
149
   * already been initialized.
150
   * <!-- begin-user-doc -->
140
   * <!-- begin-user-doc -->
151
   * <!-- end-user-doc -->
141
   * <!-- end-user-doc -->
152
   * @see #eNS_URI
142
   * @see #eNS_URI
Lines 180-185 Link Here
180
    // Mark meta-data to indicate it can't be changed
170
    // Mark meta-data to indicate it can't be changed
181
    theRefPackage.freeze();
171
    theRefPackage.freeze();
182
172
173
  
174
    // Update the registry and return the package
175
    EPackage.Registry.INSTANCE.put(RefPackage.eNS_URI, theRefPackage);
183
    return theRefPackage;
176
    return theRefPackage;
184
  }
177
  }
185
178
(-)src/org/eclipse/emf/test/models/tree/impl/TreePackageImpl.java (-14 / +7 lines)
Lines 78-97 Link Here
78
  private static boolean isInited = false;
78
  private static boolean isInited = false;
79
79
80
  /**
80
  /**
81
   * Creates, registers, and initializes the <b>Package</b> for this
81
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
82
   * model, and for any others upon which it depends.  Simple
82
   * 
83
   * dependencies are satisfied by calling this method on all
83
   * <p>This method is used to initialize {@link TreePackage#eINSTANCE} when that field is accessed.
84
   * dependent packages before doing anything else.  This method drives
84
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
85
   * initialization for interdependent packages directly, in parallel
86
   * with this package, itself.
87
   * <p>Of this package and its interdependencies, all packages which
88
   * have not yet been registered by their URI values are first created
89
   * and registered.  The packages are then initialized in two steps:
90
   * meta-model objects for all of the packages are created before any
91
   * are initialized, since one package's meta-model objects may refer to
92
   * those of another.
93
   * <p>Invocation of this method will not affect any packages that have
94
   * already been initialized.
95
   * <!-- begin-user-doc -->
85
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
86
   * <!-- end-user-doc -->
97
   * @see #eNS_URI
87
   * @see #eNS_URI
Lines 117-122 Link Here
117
    // Mark meta-data to indicate it can't be changed
107
    // Mark meta-data to indicate it can't be changed
118
    theTreePackage.freeze();
108
    theTreePackage.freeze();
119
109
110
  
111
    // Update the registry and return the package
112
    EPackage.Registry.INSTANCE.put(TreePackage.eNS_URI, theTreePackage);
120
    return theTreePackage;
113
    return theTreePackage;
121
  }
114
  }
122
115
(-)src/org/eclipse/emf/test/models/ppo/impl/PPOPackageImpl.java (-14 / +7 lines)
Lines 108-127 Link Here
108
  private static boolean isInited = false;
108
  private static boolean isInited = false;
109
109
110
  /**
110
  /**
111
   * Creates, registers, and initializes the <b>Package</b> for this
111
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
112
   * model, and for any others upon which it depends.  Simple
112
   * 
113
   * dependencies are satisfied by calling this method on all
113
   * <p>This method is used to initialize {@link PPOPackage#eINSTANCE} when that field is accessed.
114
   * dependent packages before doing anything else.  This method drives
114
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
115
   * initialization for interdependent packages directly, in parallel
116
   * with this package, itself.
117
   * <p>Of this package and its interdependencies, all packages which
118
   * have not yet been registered by their URI values are first created
119
   * and registered.  The packages are then initialized in two steps:
120
   * meta-model objects for all of the packages are created before any
121
   * are initialized, since one package's meta-model objects may refer to
122
   * those of another.
123
   * <p>Invocation of this method will not affect any packages that have
124
   * already been initialized.
125
   * <!-- begin-user-doc -->
115
   * <!-- begin-user-doc -->
126
   * <!-- end-user-doc -->
116
   * <!-- end-user-doc -->
127
   * @see #eNS_URI
117
   * @see #eNS_URI
Lines 158-163 Link Here
158
    // Mark meta-data to indicate it can't be changed
148
    // Mark meta-data to indicate it can't be changed
159
    thePPOPackage.freeze();
149
    thePPOPackage.freeze();
160
150
151
  
152
    // Update the registry and return the package
153
    EPackage.Registry.INSTANCE.put(PPOPackage.eNS_URI, thePPOPackage);
161
    return thePPOPackage;
154
    return thePPOPackage;
162
  }
155
  }
163
156
(-)src/org/eclipse/emf/test/models/lib/impl/LibPackageImpl.java (-14 / +7 lines)
Lines 102-121 Link Here
102
  private static boolean isInited = false;
102
  private static boolean isInited = false;
103
103
104
  /**
104
  /**
105
   * Creates, registers, and initializes the <b>Package</b> for this
105
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
106
   * model, and for any others upon which it depends.  Simple
106
   * 
107
   * dependencies are satisfied by calling this method on all
107
   * <p>This method is used to initialize {@link LibPackage#eINSTANCE} when that field is accessed.
108
   * dependent packages before doing anything else.  This method drives
108
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
109
   * initialization for interdependent packages directly, in parallel
110
   * with this package, itself.
111
   * <p>Of this package and its interdependencies, all packages which
112
   * have not yet been registered by their URI values are first created
113
   * and registered.  The packages are then initialized in two steps:
114
   * meta-model objects for all of the packages are created before any
115
   * are initialized, since one package's meta-model objects may refer to
116
   * those of another.
117
   * <p>Invocation of this method will not affect any packages that have
118
   * already been initialized.
119
   * <!-- begin-user-doc -->
109
   * <!-- begin-user-doc -->
120
   * <!-- end-user-doc -->
110
   * <!-- end-user-doc -->
121
   * @see #eNS_URI
111
   * @see #eNS_URI
Lines 141-146 Link Here
141
    // Mark meta-data to indicate it can't be changed
131
    // Mark meta-data to indicate it can't be changed
142
    theLibPackage.freeze();
132
    theLibPackage.freeze();
143
133
134
  
135
    // Update the registry and return the package
136
    EPackage.Registry.INSTANCE.put(LibPackage.eNS_URI, theLibPackage);
144
    return theLibPackage;
137
    return theLibPackage;
145
  }
138
  }
146
139
(-)src/org/eclipse/emf/test/models/ref/unsettable/impl/URefPackageImpl.java (-14 / +7 lines)
Lines 133-152 Link Here
133
  private static boolean isInited = false;
133
  private static boolean isInited = false;
134
134
135
  /**
135
  /**
136
   * Creates, registers, and initializes the <b>Package</b> for this
136
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
137
   * model, and for any others upon which it depends.  Simple
137
   * 
138
   * dependencies are satisfied by calling this method on all
138
   * <p>This method is used to initialize {@link URefPackage#eINSTANCE} when that field is accessed.
139
   * dependent packages before doing anything else.  This method drives
139
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
140
   * initialization for interdependent packages directly, in parallel
141
   * with this package, itself.
142
   * <p>Of this package and its interdependencies, all packages which
143
   * have not yet been registered by their URI values are first created
144
   * and registered.  The packages are then initialized in two steps:
145
   * meta-model objects for all of the packages are created before any
146
   * are initialized, since one package's meta-model objects may refer to
147
   * those of another.
148
   * <p>Invocation of this method will not affect any packages that have
149
   * already been initialized.
150
   * <!-- begin-user-doc -->
140
   * <!-- begin-user-doc -->
151
   * <!-- end-user-doc -->
141
   * <!-- end-user-doc -->
152
   * @see #eNS_URI
142
   * @see #eNS_URI
Lines 180-185 Link Here
180
    // Mark meta-data to indicate it can't be changed
170
    // Mark meta-data to indicate it can't be changed
181
    theURefPackage.freeze();
171
    theURefPackage.freeze();
182
172
173
  
174
    // Update the registry and return the package
175
    EPackage.Registry.INSTANCE.put(URefPackage.eNS_URI, theURefPackage);
183
    return theURefPackage;
176
    return theURefPackage;
184
  }
177
  }
185
178
(-)src/org/eclipse/emf/test/models/key/impl/KeyPackageImpl.java (-14 / +7 lines)
Lines 78-97 Link Here
78
  private static boolean isInited = false;
78
  private static boolean isInited = false;
79
79
80
  /**
80
  /**
81
   * Creates, registers, and initializes the <b>Package</b> for this
81
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
82
   * model, and for any others upon which it depends.  Simple
82
   * 
83
   * dependencies are satisfied by calling this method on all
83
   * <p>This method is used to initialize {@link KeyPackage#eINSTANCE} when that field is accessed.
84
   * dependent packages before doing anything else.  This method drives
84
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
85
   * initialization for interdependent packages directly, in parallel
86
   * with this package, itself.
87
   * <p>Of this package and its interdependencies, all packages which
88
   * have not yet been registered by their URI values are first created
89
   * and registered.  The packages are then initialized in two steps:
90
   * meta-model objects for all of the packages are created before any
91
   * are initialized, since one package's meta-model objects may refer to
92
   * those of another.
93
   * <p>Invocation of this method will not affect any packages that have
94
   * already been initialized.
95
   * <!-- begin-user-doc -->
85
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
86
   * <!-- end-user-doc -->
97
   * @see #eNS_URI
87
   * @see #eNS_URI
Lines 117-122 Link Here
117
    // Mark meta-data to indicate it can't be changed
107
    // Mark meta-data to indicate it can't be changed
118
    theKeyPackage.freeze();
108
    theKeyPackage.freeze();
119
109
110
  
111
    // Update the registry and return the package
112
    EPackage.Registry.INSTANCE.put(KeyPackage.eNS_URI, theKeyPackage);
120
    return theKeyPackage;
113
    return theKeyPackage;
121
  }
114
  }
122
115
(-)src/org/eclipse/emf/test/models/movie/db/impl/DBPackageImpl.java (-14 / +7 lines)
Lines 169-188 Link Here
169
  private static boolean isInited = false;
169
  private static boolean isInited = false;
170
170
171
  /**
171
  /**
172
   * Creates, registers, and initializes the <b>Package</b> for this
172
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
173
   * model, and for any others upon which it depends.  Simple
173
   * 
174
   * dependencies are satisfied by calling this method on all
174
   * <p>This method is used to initialize {@link DBPackage#eINSTANCE} when that field is accessed.
175
   * dependent packages before doing anything else.  This method drives
175
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
176
   * initialization for interdependent packages directly, in parallel
177
   * with this package, itself.
178
   * <p>Of this package and its interdependencies, all packages which
179
   * have not yet been registered by their URI values are first created
180
   * and registered.  The packages are then initialized in two steps:
181
   * meta-model objects for all of the packages are created before any
182
   * are initialized, since one package's meta-model objects may refer to
183
   * those of another.
184
   * <p>Invocation of this method will not affect any packages that have
185
   * already been initialized.
186
   * <!-- begin-user-doc -->
176
   * <!-- begin-user-doc -->
187
   * <!-- end-user-doc -->
177
   * <!-- end-user-doc -->
188
   * @see #eNS_URI
178
   * @see #eNS_URI
Lines 230-235 Link Here
230
    // Mark meta-data to indicate it can't be changed
220
    // Mark meta-data to indicate it can't be changed
231
    theDBPackage.freeze();
221
    theDBPackage.freeze();
232
222
223
  
224
    // Update the registry and return the package
225
    EPackage.Registry.INSTANCE.put(DBPackage.eNS_URI, theDBPackage);
233
    return theDBPackage;
226
    return theDBPackage;
234
  }
227
  }
235
228
(-)src/org/eclipse/emf/test/models/dbprice/impl/DBPricePackageImpl.java (-14 / +7 lines)
Lines 83-102 Link Here
83
  private static boolean isInited = false;
83
  private static boolean isInited = false;
84
84
85
  /**
85
  /**
86
   * Creates, registers, and initializes the <b>Package</b> for this
86
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
87
   * model, and for any others upon which it depends.  Simple
87
   * 
88
   * dependencies are satisfied by calling this method on all
88
   * <p>This method is used to initialize {@link DBPricePackage#eINSTANCE} when that field is accessed.
89
   * dependent packages before doing anything else.  This method drives
89
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
90
   * initialization for interdependent packages directly, in parallel
91
   * with this package, itself.
92
   * <p>Of this package and its interdependencies, all packages which
93
   * have not yet been registered by their URI values are first created
94
   * and registered.  The packages are then initialized in two steps:
95
   * meta-model objects for all of the packages are created before any
96
   * are initialized, since one package's meta-model objects may refer to
97
   * those of another.
98
   * <p>Invocation of this method will not affect any packages that have
99
   * already been initialized.
100
   * <!-- begin-user-doc -->
90
   * <!-- begin-user-doc -->
101
   * <!-- end-user-doc -->
91
   * <!-- end-user-doc -->
102
   * @see #eNS_URI
92
   * @see #eNS_URI
Lines 130-135 Link Here
130
    // Mark meta-data to indicate it can't be changed
120
    // Mark meta-data to indicate it can't be changed
131
    theDBPricePackage.freeze();
121
    theDBPricePackage.freeze();
132
122
123
  
124
    // Update the registry and return the package
125
    EPackage.Registry.INSTANCE.put(DBPricePackage.eNS_URI, theDBPricePackage);
133
    return theDBPricePackage;
126
    return theDBPricePackage;
134
  }
127
  }
135
128
(-)src/org/eclipse/emf/test/models/ext/impl/ExtPackageImpl.java (-14 / +7 lines)
Lines 85-104 Link Here
85
  private static boolean isInited = false;
85
  private static boolean isInited = false;
86
86
87
  /**
87
  /**
88
   * Creates, registers, and initializes the <b>Package</b> for this
88
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
89
   * model, and for any others upon which it depends.  Simple
89
   * 
90
   * dependencies are satisfied by calling this method on all
90
   * <p>This method is used to initialize {@link ExtPackage#eINSTANCE} when that field is accessed.
91
   * dependent packages before doing anything else.  This method drives
91
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
92
   * initialization for interdependent packages directly, in parallel
93
   * with this package, itself.
94
   * <p>Of this package and its interdependencies, all packages which
95
   * have not yet been registered by their URI values are first created
96
   * and registered.  The packages are then initialized in two steps:
97
   * meta-model objects for all of the packages are created before any
98
   * are initialized, since one package's meta-model objects may refer to
99
   * those of another.
100
   * <p>Invocation of this method will not affect any packages that have
101
   * already been initialized.
102
   * <!-- begin-user-doc -->
92
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
93
   * <!-- end-user-doc -->
104
   * @see #eNS_URI
94
   * @see #eNS_URI
Lines 132-137 Link Here
132
    // Mark meta-data to indicate it can't be changed
122
    // Mark meta-data to indicate it can't be changed
133
    theExtPackage.freeze();
123
    theExtPackage.freeze();
134
124
125
  
126
    // Update the registry and return the package
127
    EPackage.Registry.INSTANCE.put(ExtPackage.eNS_URI, theExtPackage);
135
    return theExtPackage;
128
    return theExtPackage;
136
  }
129
  }
137
130
(-)src/org/eclipse/emf/ecore/xml/namespace/impl/XMLNamespacePackageImpl.java (-14 / +7 lines)
Lines 104-123 Link Here
104
  private static boolean isInited = false;
104
  private static boolean isInited = false;
105
105
106
  /**
106
  /**
107
   * Creates, registers, and initializes the <b>Package</b> for this
107
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
108
   * model, and for any others upon which it depends.  Simple
108
   * 
109
   * dependencies are satisfied by calling this method on all
109
   * <p>This method is used to initialize {@link XMLNamespacePackage#eINSTANCE} when that field is accessed.
110
   * dependent packages before doing anything else.  This method drives
110
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
111
   * initialization for interdependent packages directly, in parallel
112
   * with this package, itself.
113
   * <p>Of this package and its interdependencies, all packages which
114
   * have not yet been registered by their URI values are first created
115
   * and registered.  The packages are then initialized in two steps:
116
   * meta-model objects for all of the packages are created before any
117
   * are initialized, since one package's meta-model objects may refer to
118
   * those of another.
119
   * <p>Invocation of this method will not affect any packages that have
120
   * already been initialized.
121
   * <!-- begin-user-doc -->
111
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
112
   * <!-- end-user-doc -->
123
   * @see #eNS_URI
113
   * @see #eNS_URI
Lines 157-162 Link Here
157
    // Mark meta-data to indicate it can't be changed
147
    // Mark meta-data to indicate it can't be changed
158
    theXMLNamespacePackage.freeze();
148
    theXMLNamespacePackage.freeze();
159
149
150
  
151
    // Update the registry and return the package
152
    EPackage.Registry.INSTANCE.put(XMLNamespacePackage.eNS_URI, theXMLNamespacePackage);
160
    return theXMLNamespacePackage;
153
    return theXMLNamespacePackage;
161
  }
154
  }
162
155
(-)src/org/eclipse/emf/ecore/impl/EcorePackageImpl.java (-14 / +7 lines)
Lines 455-474 Link Here
455
  private EDataType eResourceSetEDataType = null;
455
  private EDataType eResourceSetEDataType = null;
456
456
457
  /**
457
  /**
458
   * Creates, registers, and initializes the <b>Package</b> for this
458
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
459
   * model, and for any others upon which it depends.  Simple
459
   * 
460
   * dependencies are satisfied by calling this method on all
460
   * <p>This method is used to initialize {@link EcorePackage#eINSTANCE} when that field is accessed.
461
   * dependent packages before doing anything else.  This method drives
461
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
462
   * initialization for interdependent packages directly, in parallel
463
   * with this package, itself.
464
   * <p>Of this package and its interdependencies, all packages which
465
   * have not yet been registered by their URI values are first created
466
   * and registered.  The packages are then initialized in two steps:
467
   * meta-model objects for all of the packages are created before any
468
   * are initialized, since one package's meta-model objects may refer to
469
   * those of another.
470
   * <p>Invocation of this method will not affect any packages that have
471
   * already been initialized.
472
   * <!-- begin-user-doc -->
462
   * <!-- begin-user-doc -->
473
   * <!-- end-user-doc -->
463
   * <!-- end-user-doc -->
474
   * @see #eNS_URI
464
   * @see #eNS_URI
Lines 502-507 Link Here
502
         }
492
         }
503
       });
493
       });
504
494
495
  
496
    // Update the registry and return the package
497
    EPackage.Registry.INSTANCE.put(EcorePackage.eNS_URI, theEcorePackage);
505
    return theEcorePackage;
498
    return theEcorePackage;
506
  }
499
  }
507
  
500
  
(-)src/org/eclipse/emf/ecore/xml/type/impl/XMLTypePackageImpl.java (-14 / +7 lines)
Lines 512-531 Link Here
512
  private static boolean isInited = false;
512
  private static boolean isInited = false;
513
513
514
  /**
514
  /**
515
   * Creates, registers, and initializes the <b>Package</b> for this
515
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
516
   * model, and for any others upon which it depends.  Simple
516
   * 
517
   * dependencies are satisfied by calling this method on all
517
   * <p>This method is used to initialize {@link XMLTypePackage#eINSTANCE} when that field is accessed.
518
   * dependent packages before doing anything else.  This method drives
518
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
519
   * initialization for interdependent packages directly, in parallel
520
   * with this package, itself.
521
   * <p>Of this package and its interdependencies, all packages which
522
   * have not yet been registered by their URI values are first created
523
   * and registered.  The packages are then initialized in two steps:
524
   * meta-model objects for all of the packages are created before any
525
   * are initialized, since one package's meta-model objects may refer to
526
   * those of another.
527
   * <p>Invocation of this method will not affect any packages that have
528
   * already been initialized.
529
   * <!-- begin-user-doc -->
519
   * <!-- begin-user-doc -->
530
   * <!-- end-user-doc -->
520
   * <!-- end-user-doc -->
531
   * @see #eNS_URI
521
   * @see #eNS_URI
Lines 562-567 Link Here
562
    // Mark meta-data to indicate it can't be changed
552
    // Mark meta-data to indicate it can't be changed
563
    theXMLTypePackage.freeze();
553
    theXMLTypePackage.freeze();
564
554
555
  
556
    // Update the registry and return the package
557
    EPackage.Registry.INSTANCE.put(XMLTypePackage.eNS_URI, theXMLTypePackage);
565
    return theXMLTypePackage;
558
    return theXMLTypePackage;
566
  }
559
  }
567
560
(-)src/org/eclipse/emf/mapping/xsd2ecore/impl/XSD2EcorePackageImpl.java (-14 / +7 lines)
Lines 70-89 Link Here
70
  private static boolean isInited = false;
70
  private static boolean isInited = false;
71
71
72
  /**
72
  /**
73
   * Creates, registers, and initializes the <b>Package</b> for this
73
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
74
   * model, and for any others upon which it depends.  Simple
74
   * 
75
   * dependencies are satisfied by calling this method on all
75
   * <p>This method is used to initialize {@link XSD2EcorePackage#eINSTANCE} when that field is accessed.
76
   * dependent packages before doing anything else.  This method drives
76
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
77
   * initialization for interdependent packages directly, in parallel
78
   * with this package, itself.
79
   * <p>Of this package and its interdependencies, all packages which
80
   * have not yet been registered by their URI values are first created
81
   * and registered.  The packages are then initialized in two steps:
82
   * meta-model objects for all of the packages are created before any
83
   * are initialized, since one package's meta-model objects may refer to
84
   * those of another.
85
   * <p>Invocation of this method will not affect any packages that have
86
   * already been initialized.
87
   * <!-- begin-user-doc -->
77
   * <!-- begin-user-doc -->
88
   * <!-- end-user-doc -->
78
   * <!-- end-user-doc -->
89
   * @see #eNS_URI
79
   * @see #eNS_URI
Lines 112-117 Link Here
112
    // Mark meta-data to indicate it can't be changed
102
    // Mark meta-data to indicate it can't be changed
113
    theXSD2EcorePackage.freeze();
103
    theXSD2EcorePackage.freeze();
114
104
105
  
106
    // Update the registry and return the package
107
    EPackage.Registry.INSTANCE.put(XSD2EcorePackage.eNS_URI, theXSD2EcorePackage);
115
    return theXSD2EcorePackage;
108
    return theXSD2EcorePackage;
116
  }
109
  }
117
110
(-)src/org/eclipse/emf/mapping/impl/MappingPackageImpl.java (-14 / +7 lines)
Lines 127-146 Link Here
127
  private static boolean isInited = false;
127
  private static boolean isInited = false;
128
128
129
  /**
129
  /**
130
   * Creates, registers, and initializes the <b>Package</b> for this
130
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
131
   * model, and for any others upon which it depends.  Simple
131
   * 
132
   * dependencies are satisfied by calling this method on all
132
   * <p>This method is used to initialize {@link MappingPackage#eINSTANCE} when that field is accessed.
133
   * dependent packages before doing anything else.  This method drives
133
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
134
   * initialization for interdependent packages directly, in parallel
135
   * with this package, itself.
136
   * <p>Of this package and its interdependencies, all packages which
137
   * have not yet been registered by their URI values are first created
138
   * and registered.  The packages are then initialized in two steps:
139
   * meta-model objects for all of the packages are created before any
140
   * are initialized, since one package's meta-model objects may refer to
141
   * those of another.
142
   * <p>Invocation of this method will not affect any packages that have
143
   * already been initialized.
144
   * <!-- begin-user-doc -->
134
   * <!-- begin-user-doc -->
145
   * <!-- end-user-doc -->
135
   * <!-- end-user-doc -->
146
   * @see #eNS_URI
136
   * @see #eNS_URI
Lines 169-174 Link Here
169
    // Mark meta-data to indicate it can't be changed
159
    // Mark meta-data to indicate it can't be changed
170
    theMappingPackage.freeze();
160
    theMappingPackage.freeze();
171
161
162
  
163
    // Update the registry and return the package
164
    EPackage.Registry.INSTANCE.put(MappingPackage.eNS_URI, theMappingPackage);
172
    return theMappingPackage;
165
    return theMappingPackage;
173
  }
166
  }
174
167
(-)src/org/eclipse/emf/mapping/ecore2ecore/impl/Ecore2EcorePackageImpl.java (-14 / +7 lines)
Lines 72-91 Link Here
72
  private static boolean isInited = false;
72
  private static boolean isInited = false;
73
73
74
  /**
74
  /**
75
   * Creates, registers, and initializes the <b>Package</b> for this
75
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
76
   * model, and for any others upon which it depends.  Simple
76
   * 
77
   * dependencies are satisfied by calling this method on all
77
   * <p>This method is used to initialize {@link Ecore2EcorePackage#eINSTANCE} when that field is accessed.
78
   * dependent packages before doing anything else.  This method drives
78
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
79
   * initialization for interdependent packages directly, in parallel
80
   * with this package, itself.
81
   * <p>Of this package and its interdependencies, all packages which
82
   * have not yet been registered by their URI values are first created
83
   * and registered.  The packages are then initialized in two steps:
84
   * meta-model objects for all of the packages are created before any
85
   * are initialized, since one package's meta-model objects may refer to
86
   * those of another.
87
   * <p>Invocation of this method will not affect any packages that have
88
   * already been initialized.
89
   * <!-- begin-user-doc -->
79
   * <!-- begin-user-doc -->
90
   * <!-- end-user-doc -->
80
   * <!-- end-user-doc -->
91
   * @see #eNS_URI
81
   * @see #eNS_URI
Lines 114-119 Link Here
114
    // Mark meta-data to indicate it can't be changed
104
    // Mark meta-data to indicate it can't be changed
115
    theEcore2EcorePackage.freeze();
105
    theEcore2EcorePackage.freeze();
116
106
107
  
108
    // Update the registry and return the package
109
    EPackage.Registry.INSTANCE.put(Ecore2EcorePackage.eNS_URI, theEcore2EcorePackage);
117
    return theEcore2EcorePackage;
110
    return theEcore2EcorePackage;
118
  }
111
  }
119
112
(-)src/org/eclipse/xsd/impl/XSDPackageImpl.java (-14 / +7 lines)
Lines 4719-4738 Link Here
4719
  }
4719
  }
4720
4720
4721
  /**
4721
  /**
4722
   * Creates, registers, and initializes the <b>Package</b> for this
4722
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
4723
   * model, and for any others upon which it depends.  Simple
4723
   * 
4724
   * dependencies are satisfied by calling this method on all
4724
   * <p>This method is used to initialize {@link XSDPackage#eINSTANCE} when that field is accessed.
4725
   * dependent packages before doing anything else.  This method drives
4725
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
4726
   * initialization for interdependent packages directly, in parallel
4727
   * with this package, itself.
4728
   * <p>Of this package and its interdependencies, all packages which
4729
   * have not yet been registered by their URI values are first created
4730
   * and registered.  The packages are then initialized in two steps:
4731
   * meta-model objects for all of the packages are created before any
4732
   * are initialized, since one package's meta-model objects may refer to
4733
   * those of another.
4734
   * <p>Invocation of this method will not affect any packages that have
4735
   * already been initialized.
4736
   * <!-- begin-user-doc -->
4726
   * <!-- begin-user-doc -->
4737
   * <!-- end-user-doc -->
4727
   * <!-- end-user-doc -->
4738
   * @see #eNS_URI
4728
   * @see #eNS_URI
Lines 4758-4763 Link Here
4758
    // Mark meta-data to indicate it can't be changed
4748
    // Mark meta-data to indicate it can't be changed
4759
    theXSDPackage.freeze();
4749
    theXSDPackage.freeze();
4760
4750
4751
  
4752
    // Update the registry and return the package
4753
    EPackage.Registry.INSTANCE.put(XSDPackage.eNS_URI, theXSDPackage);
4761
    return theXSDPackage;
4754
    return theXSDPackage;
4762
  }
4755
  }
4763
4756

Return to bug 275476