thank you for helping yourself so well, c'est cool.
It is not good style to have side effects on the parameters of an
initialize: method, but we could add a call to metaRepository
complete in the importMSE: method.
Please go ahead, fix it and publish the entire Meta as 0.240 version.
Do not worry about your dependencies, anyway, you should always
depend on the latest version.
On 31 May 2007, at 13:06 , bouazzpi(a)ensieta.fr wrote:
I found the solution this morning : during the setUp of the tests, the
method repository>>complete is called by the method
System>>reinitializeTestSystem and add the path for Enumeration and
EnumerationLiteral in the pathMap of the metaRepository.
I fixed my problem by adding metaRepository complete in the initialize
method of my importer,
but I think it could be better to add it in the Meta-ImportExport
Importer>>initialize: aRepository method. But this will make my
depends of the version of the Meta-ImportExport bundle :(
what do you think is the best solution ?
> I'm facing a very strange problem with my Ecore importer :
> I implement the EMOF.Enumeration and EMOF.EnumerationLiteral this
> and use them in my importer.
> I wrote some tests and all of them run perfectly.
> But when I try to replay my test scenario in a workspace :
> |importer repository|
> importer := EcoreMetaModelImporter withActiveMetaMetamodel.
> importer importEcoreMMFile:
> 'F:\Cours\EclipseWorkbench\essaiEditor2\test.ecore' .
> repository := importer asRepository.
> self halt.
> I encounter an error :
> "Import error: unknwon EMOF class EMOF.EnumerationLiteral "
> however, when I inspect my importer's metaRepository,
> EMOF.Enumeration and
> EMOF.EnumerationLiteral appear in the metaRepository elements, but
> not in
> its pathMap.
> I don't understand why during the test EMOF.Enumeration and
> EMOF.EnumerationLiteral are added to the pathMap of the
> and not during a execution in the workspace.
> I 've tried to understand when the pathMap is initialized, but did
> find anything that helps me.
> Any idea of what can happen ?
> PS : I have published my bundles : Meta-Ecore-Importer 0.1bouazza and
> Meta-EMOF-Model 0.239e.2bouazza this afternoon.
> Moose-dev mailing list
Moose-dev mailing list