I am using EA 9.1, on Windows 7.
I created a scripting group of type "Project Browser" and added a few scripts. Those scripts show up as selections for the Project Browser script context menus, and run fine.
I wanted to export those as a MDG Technology to make it easier to share with others on the team - it's easier to import just one file instead of having to create a correctly named and typed group, create empty scripts and then copy & paste each script etc.
So:
- I created a MDG Technology file using Tools -> Generate MDG Technology File...
- Clicked Next
- Selected "Create a new MTS file" and clicked Next
- Gave a good path and file name for the MTS file, clicked Next
- Entered the Script Group as the "Technology", selected a good path and file name for the XMI file, gave an ID, Version and Note, and clicked Next
- De-selected everything except "Scripts" and clicked Next
- Selected the scripts I wanted to include from my script group and clicked Next
- Clicked Finish
When I imported the MDG Technology I had just created (the XML), the scripting group was correctly created and named, and my scripts were all there. But, the group ended up with type "Normal" instead of "Project Browser", and thus my scripts were unavailable in the Project Browser. EA won't let me change the scripting group type for groups that were imported.
I have tried modifying the XML in both the XML and the MTS file so that the "type" attribute for each script element says "project browser" (also attempted with variations on capitalization, restarting EA between each attempt) instead of "normal". However, after reimporting (and importing into a fresh EA), the group still has type "normal" in EA and thus my scripts don't show up in the Project Browser.
Will modifying the "type" attribute help, and if so, what should I put in there to make the scripting group a Project Browser group?
Is this a bug in EA in that it doesn't get the correct group type right away? How may I get around it, if so?
Am I going about this wrongly? What is the recommended way to share a set of scripts, if not through a MDG Technology file, to avoid a bunch of copying and pasting? (The scripts are maintained separately in Subversion, as are the model packages .) How may I make EA export the scripting group as an MDG Technology file while keeping the group type intact upon import?
Any pointers and hints are appreciated.
Thanks,
Bjorn.