Bug 181759 - New ATL launch configuration
Summary: New ATL launch configuration
Status: CLOSED FIXED
Alias: None
Product: MMT.ATL
Classification: Modeling
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Mikaël Barbero CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on: 188162
Blocks:
  Show dependency tree
 
Reported: 2007-04-10 09:32 EDT by Mikaël Barbero CLA
Modified: 2017-06-05 09:30 EDT (History)
1 user (show)

See Also:


Attachments
The patch (to apply on org.eclipse.m2m.atl.adt.debug plugin) (48.75 KB, patch)
2007-04-10 09:34 EDT, Mikaël Barbero CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikaël Barbero CLA 2007-04-10 09:32:35 EDT
Hi all,    

Here is a new version of the ATL launch configuration UI. It is fully backward compatible with the old one (i.e. you do not have to rewrite your launch configs).    

The big enhancement is that this version is able to read names of the models from your ATL files. No more painful "add model" for you !!    

I'm waiting for your comments!
Comment 1 Mikaël Barbero CLA 2007-04-10 09:34:38 EDT
Created attachment 63359 [details]
The patch (to apply on org.eclipse.m2m.atl.adt.debug plugin)
Comment 2 Freddy Allilaire CLA 2007-04-10 10:53:00 EDT
I integrated your contribution in CVS.

Thanks for this helpful contribution,
Freddy.
Comment 3 Dennis Wagelaar CLA 2007-05-03 11:35:24 EDT
The new launch config dialog does not allow libraries to be defined for ATL queries. Also, when defining libraries in a launch config, it is possible to select .atl as well as .asm files. If you run a launch config with .atl files as libraries, Eclipse crashes(!).

Fixed in MainAtlTab.java v.1.3
Comment 4 Dennis Wagelaar CLA 2007-05-03 14:33:43 EDT
Any extra models used in superimposed transformation modules are not yet supported.
Comment 5 Dennis Wagelaar CLA 2007-06-05 04:59:30 EDT
Is it possible to have some extra buttons to manually add more models, Mikaël? That would cover the more exotic cases:
- arbitrary number of anonymous input models
- superimposed transformation modules add more input/output models
- ...
Comment 6 Cedric Vidal CLA 2007-06-09 06:42:51 EDT
(In reply to comment #5)
> - arbitrary number of anonymous input models

Are you refering to models referenced by input models ?

To be more precise, in a response you made on the ATL mailing list, you mentionned that:
> When loading a meta-model, ATL traverses all meta-classes to 
> find external references, traverses those external references to find 
> more external references, etc. The result is the transitive closure of 
> referenced meta-classes from the main meta-model. The meta-models 
> containing those meta-classes are accessible from ATL.
Are those external references considered as anonymous input models ?

If not, it would be usefull also that the new ATL launch configuration allows referenced models to be defined. The launch configuration could load the input models and look for external references. If they cannot be found, then ask the user to define where they are.

This would be usefull when using meta models which cross reference other meta models. Most of the time, referenced models are defined using the platform:/resource/myproject/model/mymm.ecore

Regards.
Comment 7 Cedric Vidal CLA 2007-06-09 09:20:11 EDT
(In reply to comment #6)
> (In reply to comment #5)
> > - arbitrary number of anonymous input models
> 
> Are you refering to models referenced by input models ?
> 
> To be more precise, in a response you made on the ATL mailing list, you
> mentionned that:
> > When loading a meta-model, ATL traverses all meta-classes to 
> > find external references, traverses those external references to find 
> > more external references, etc. The result is the transitive closure of 
> > referenced meta-classes from the main meta-model. The meta-models 
> > containing those meta-classes are accessible from ATL.
> Are those external references considered as anonymous input models ?
> 
> If not, it would be usefull also that the new ATL launch configuration allows
> referenced models to be defined. The launch configuration could load the input
> models and look for external references. If they cannot be found, then ask the
> user to define where they are.
> 
> This would be usefull when using meta models which cross reference other meta
> models. Most of the time, referenced models are defined using the
> platform:/resource/myproject/model/mymm.ecore
> 
> Regards.
> 

OK, actually, I made a mistake. This problem was not related to the launch configuration, it actually does support this.
Comment 8 Dennis Wagelaar CLA 2007-06-10 14:26:58 EDT
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> OK, actually, I made a mistake. This problem was not related to the launch
> configuration, it actually does support this.
> 

Ok ;-). This comment is just to let you all know that I'm working on the launch dialog code right now. Better not do double work.
Comment 9 Dennis Wagelaar CLA 2007-06-11 07:36:56 EDT
Updated ATL launch dialog has been committed to CVS today. MainAtlTab as well as AdvancedTab are affected, since adding/removing superimposed modules can change the necessary models/libraries.

The new interface should be able to detect all necessary models and libraries and supports adding extra models/libraries. Any extra models/libraries can also be removed again.

More testing required.
Comment 10 Dennis Wagelaar CLA 2007-08-01 05:44:07 EDT
The new launch dialog does not say which is the metamodel for a given model;
you have to look into the transformation file.
Comment 11 Dennis Wagelaar CLA 2007-09-27 08:19:36 EDT
(In reply to comment #10)
> The new launch dialog does not say which is the metamodel for a given model;
> you have to look into the transformation file.
> 

This issue is fixed in CVS:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org.eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.adt.debug/src/org/eclipse/m2m/atl/adt/launching/MainAtlTab.java?root=Modeling_Project&r1=1.8&r2=1.9
Comment 12 Dennis Wagelaar CLA 2017-06-05 09:30:18 EDT
Bug inactive - closing.