Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#128 Allow im/exporter to im/export multiple graphs

closed
None
2
2012-12-10
2012-04-20
Harry
No

The current importer only allows one graph to be imported per file. It would be convenient if the importer would allow (one of) the extensions to generate one or more graphs (or other resources) on its own, instead of the exporter itself probing for the various graph types and picking one.
Likewise, the exporter only allows the current graph to be exported, but does not have access to other graphs/the rest of the grammar. This would help for example when exporting a host graph and reading the type graphs for some of the structure.

Some use cases:
Import Ecore model: requires generation of type and rule graphs
Import Ecore instance model: requires generation of (single) host graph
Import GXL instance model: requires generation of type, rule and host graphs (everything is possibly in one file)
Export instance graph to ecore instance model: requires exporting host graph for objects and reading type graph+rule graphs for model information.

Discussion

  • Arend Rensink
    Arend Rensink
    2012-05-16

    • assigned_to: nobody --> zambon
     
  • Harry
    Harry
    2012-06-06

    As an addendum: Specifying multiple files would be nice too. Specifying a directory for import or export may be the easiest solution. A bonus feature would be that mass conversion is possible.

     
  • Arend Rensink
    Arend Rensink
    2012-07-18

    • priority: 5 --> 6
     
  • Harry
    Harry
    2012-07-23

    After some discussion, the following alternative was proposed:
    Give both the selected graph and the grammar model as parameters. The grammar model can be used to find any other resources required for export. I don't know if this applies for the import as well (can the grammar model handle the insertion of multiple resources?)

     
  • Harry
    Harry
    2012-10-24

    I've been working on this and reworked the import/export system to support the grammar parameter along with a few other changes/fixes (such as importing multiple resources at the same time).

     
  • Harry
    Harry
    2012-10-24

    • priority: 6 --> 2
     
  • Harry
    Harry
    2012-12-10

    • status: open --> closed
     
  • Harry
    Harry
    2012-12-10

    This has been integrated