textfile import in metaedit+ |
Post Reply |
Author | |
jpt
MetaCase Joined: 25.Mar.2008 Points: 239 |
Post Options
Thanks(0)
Posted: 13.Oct.2020 at 16:21 |
At https://metacase.com/mwb/xml_format.html#importingmodels six different ways to import existing data to MetaEdit+ is described.
The 'demo' repository includes an example of approach #1 that is applied also in the YouTube video mentioned ("Integrating and transforming models in MetaEdit+"). See 'UML' project and for 'Class Diagram [UML]' graph type there is a generator 'Reverse engineer Java' that reads Java classes and their attributes and creates Class diagrams. It reads all files found from the directory but with Ask command in MERL you could also import just one file (and then perhaps based on include/import etc. statements read other needed files too). In addition to the step of parsing the data from files, the second main step is translating it to target metamodel, like that of datatypes in the example you provided. |
|
edward22243
Major Contributor Joined: 19.Apr.2019 Points: 41 |
Post Options
Thanks(1)
|
Dear Juha-Pekka,
thanks for the reply. I looked at the example and a file is imported via MERL. What I saw in the video is that a menu pops up in which you can select a file. How can I get that to work in MetaEdit+ Edited by edward22243 - 13.Oct.2020 at 17:37 |
|
jpt
MetaCase Joined: 25.Mar.2008 Points: 239 |
Post Options
Thanks(1)
|
You may apply ask-command, e.g. as:
variable 'importedFile' write prompt 'Choose file' askFilename close and if $importedFile contains selection then continue. -- Juha-Pekka |
|
edward22243
Major Contributor Joined: 19.Apr.2019 Points: 41 |
Post Options
Thanks(0)
|
thank you
|
|
Post Reply | |
Tweet |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |