[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.gmt] Re: [MOFScript] Problems with the input model.

I also have tried to change the metamodel path to 
C:\eclipse\plugins\org.sintef.mofscript.editor_1.1.7\repository\metamodels 
instead the default value, but when I do the change, the OK button is not 
enabled, so I can not change it.


"Toñi Reina Quintero" <reinaqu@xxxxxxxxx> escribió en el mensaje 
news:ec1vmj$j2k$1@xxxxxxxxxxxxxxxxxxxx
>
> "Gøran K. Olsen" <Goran.K.Olsen@xxxxxxxxx> escribió en el mensaje 
> news:ec198u$a11$1@xxxxxxxxxxxxxxxxxxxx
>>
>> Check the window-preferences-mofscript preferences: metamodel path, and 
>> make sure it is " 
>> C:\eclipse\plugins\org.sintef.mofscript.editor_1.1.7\repository\metamodels 
>> "
>>
>
> This is the value of the metamodel path:
> update@plugins/org.sintef.mofscript.editor_1.1.7/repository\metamodels
>
> I suppose that update@plugins is a kind of environment variable, so I 
> think its valued is OK, because it is the default value.
>
>> Do the metamodels appear in the code completion after typing "(in 
>> inputModel:" ?
>>
>
> No, they don't appear. But the strange thing is that the metamodels that 
> are included as example with MOF script don't appear, either.
>
>> If they do, you should be able to choose the one you want from the list 
>> that appears.
>> After saving the .m2t file, content assist should be available for your 
>> metamodel specific elements.
>>
>> If   (in inputModel:"http://MyMetamodel.ecore";) is copied from your code, 
>> you can try to add another / after http:// or just use the name of the 
>> model (in inputModel:"MyMetamodel")
>>
>>
>> /Gøran
>>
>> "Toñi Reina Quintero" <reinaqu@xxxxxxxxx> wrote in message 
>> news:ebvgke$9b6$1@xxxxxxxxxxxxxxxxxxxx
>>>I have just started to use MOFScript. I have written a metamodel (in 
>>>ecore), and I have copy the .ecore file into the directory 
>>>C:\eclipse\plugins\org.sintef.mofscript.editor_1.1.7\repository\metamodels, 
>>>that is, in the directory devoted to metamodels that is created when the 
>>>MOFScript plugin is installed.
>>>
>>> I'm writing a simple .m2t file just to pass through all the elements of 
>>> the model, and write a message.
>>>
>>> texttransformation GenerarXML (in inputModel:"http://MyMetamodel.ecore";) 
>>> {
>>>
>>>  }
>>>
>>> But the problem here is that MOFScript does not recognize my metamodel. 
>>> I have realized that there are two metamodels in the same directory. 
>>> These metamodels (JM.ecore and SM.ecore) are the ones distributed with 
>>> MOFScript. But they are not recognised by the code completion utility.
>>>
>>> Is there some configuration to do that I'm missing?
>>>
>>> Thanks,
>>>    Toñi Reina
>>>
>>>
>>>
>>
>>
>
>