@@ -48,7 +48,7 @@ namespace CodeGen.RepositoryAPI
4848
4949 public class Repository implements IDisposable
5050
51- public static RpsControl ,dcs
51+ public RpsControl ,dcs
5252
5353 private mStructures ,@RpsStructureCollection
5454 private mFiles ,@RpsFileCollection
@@ -217,7 +217,7 @@ namespace CodeGen.RepositoryAPI
217217 ;;; For example, a programmer might want to use an instance of a
218218 ;;; RpsStructure class without having to instantiate the Repository class.
219219 ;;; </summary>
220- public static method CheckIsOpen, void
220+ public method CheckIsOpen, void
221221 endparams
222222 proc
223223 if ((RpsControl.mchn_r)&&(%chopen(RpsControl.mchn_r))
@@ -291,7 +291,7 @@ namespace CodeGen.RepositoryAPI
291291 proc
292292 ;Load the structures collection the first time it is referenced
293293 if (mStructures==^null)
294- mStructures = new RpsStructureCollection(RpsLoadMode.Load)
294+ mStructures = new RpsStructureCollection(this, RpsLoadMode.Load)
295295 mreturn mStructures
296296 endmethod
297297 endproperty
@@ -305,7 +305,7 @@ namespace CodeGen.RepositoryAPI
305305 required in StructureName, String
306306 endparams
307307 proc
308- mreturn new RpsStructure(StructureName,mUseAlternateFieldNames)
308+ mreturn new RpsStructure(this, StructureName,mUseAlternateFieldNames)
309309 endmethod
310310
311311 ;;---------------------------------------------------------------------
@@ -319,7 +319,7 @@ namespace CodeGen.RepositoryAPI
319319 proc
320320 ;Load the files collection the first time it is referenced
321321 if (mFiles==^null)
322- mFiles = new RpsFileCollection(RpsLoadMode.Load,mUseAlternateFieldNames)
322+ mFiles = new RpsFileCollection(this, RpsLoadMode.Load,mUseAlternateFieldNames)
323323 mreturn mFiles
324324 endmethod
325325 endproperty
@@ -333,7 +333,7 @@ namespace CodeGen.RepositoryAPI
333333 required in FileName, String
334334 endparams
335335 proc
336- mreturn new RpsFile(FileName,mUseAlternateFieldNames)
336+ mreturn new RpsFile(this, FileName,mUseAlternateFieldNames)
337337 endmethod
338338
339339 ;;---------------------------------------------------------------------
@@ -347,7 +347,7 @@ namespace CodeGen.RepositoryAPI
347347 proc
348348 ;Load the templates collection the first time it is referenced
349349 if (mTemplates==^null)
350- mTemplates = new RpsTemplateCollection()
350+ mTemplates = new RpsTemplateCollection(this )
351351 mreturn mTemplates
352352 endmethod
353353 endproperty
@@ -361,7 +361,7 @@ namespace CodeGen.RepositoryAPI
361361 required in TemplateName, String
362362 endparams
363363 proc
364- mreturn new RpsTemplate(TemplateName)
364+ mreturn new RpsTemplate(this, TemplateName)
365365 endmethod
366366
367367 ;;---------------------------------------------------------------------
@@ -375,7 +375,7 @@ namespace CodeGen.RepositoryAPI
375375 proc
376376 ;Load the formats collection the first time it is referenced
377377 if (mFormats==^null)
378- mFormats = new RpsFormatCollection(RpsGlobalFormatType.Format)
378+ mFormats = new RpsFormatCollection(this, RpsGlobalFormatType.Format)
379379 mreturn mFormats
380380 endmethod
381381 endproperty
@@ -388,7 +388,7 @@ namespace CodeGen.RepositoryAPI
388388 proc
389389 ;Load the date formats collection the first time it is referenced
390390 if (mDateFormats==^null)
391- mDateFormats = new RpsFormatCollection(RpsGlobalFormatType.DateFormat)
391+ mDateFormats = new RpsFormatCollection(this, RpsGlobalFormatType.DateFormat)
392392 mreturn mDateFormats
393393 endmethod
394394 endproperty
@@ -401,7 +401,7 @@ namespace CodeGen.RepositoryAPI
401401 proc
402402 ;Load the time formats collection the first time it is referenced
403403 if (mTimeFormats==^null)
404- mTimeFormats = new RpsFormatCollection(RpsGlobalFormatType.TimeFormat)
404+ mTimeFormats = new RpsFormatCollection(this, RpsGlobalFormatType.TimeFormat)
405405 mreturn mTimeFormats
406406 endmethod
407407 endproperty
@@ -429,7 +429,7 @@ namespace CodeGen.RepositoryAPI
429429 proc
430430 ;Load the enumerations collection the first time it is referenced
431431 if (mEnumerations==^null)
432- mEnumerations = new RpsEnumCollection()
432+ mEnumerations = new RpsEnumCollection(this )
433433 mreturn mEnumerations
434434 endmethod
435435 endproperty
0 commit comments