[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.m2m] Re: [ATL] problem while saving output model
|
- From: urs zeidler <me@xxxxxxxxxxxxx>
- Date: Mon, 31 Aug 2009 18:50:39 +0200
- Newsgroups: eclipse.modeling.m2m
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.23 (X11/20090812)
Hello,
This code was made - a few month ago - to workaround a bug with ant
tasks / RegularVM wrapper. Anyway the current implementation is incorrect.
Could you please give more details about the code wich calls the extract
method ? It will help me to define the best fix.
Thanks in advance,
William
Sorry for the small delay,
It is called by the org.eclipse.m2m.atl.core.service.LauncherService in
public static Object launch(String mode, IProgressMonitor monitor, ILauncher launcher,
Map<String, String> inModels, Map<String, String> inoutModels, Map<String, String> outModels,
Map<String, String> paths, Map<String, Object> options, Map<String, InputStream> libraries,
InputStream... modules) throws ATLCoreException
.....
// OUTPUT MODELS EXTRACTION
for (Iterator<String> i = outModels.keySet().iterator(); i.hasNext();) {
String modelName = i.next();
extractor.extract(launcher.getModel(modelName), paths.get(modelName));
}
......
and the extractor is created by the CoreService.
defaultFactory = CoreService.createModelFactory(launcher.getDefaultModelFactoryName());
extractor = CoreService.getExtractor(defaultFactory.getDefaultExtractorName());
injector = CoreService.getInjector(defaultFactory.getDefaultInjectorName());
And this called by AtlLaunchConfigurationDelegate in
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch,
IProgressMonitor monitor) throws CoreException {
.....
} else {
LauncherService.launch(mode, monitor, launcher, sourceModels, Collections.EMPTY_MAP,
targetModels, modelPaths, options, libraries, modules);
}
.....
Which is Called by the org.eclipse.debug.internal.core.LaunchConfiguration
What makes my wonder is, even a "normal" transformation (with the ATL Launch cofiguration) won't work, and obviously can't work with the current
implementation of the ASMExtractor, so does no one uses transformation in workspace, as no one has encountered this before ?
I hope this will help.
greetings, urs.
at last the stacktrace just pasted :
Thread [Worker-0] (Suspended)
ASMExtractor.extract(IModel, String) line: 60
LauncherService.launch(String, IProgressMonitor, ILauncher, Map<String,String>, Map<String,String>, Map<String,String>, Map<String,String>,
Map<String,Object>, Map<String,InputStream>, InputStream...) line: 140
AtlLaunchConfigurationDelegate.launch(ILaunchConfiguration, String, ILaunch, IProgressMonitor) line: 222
LaunchConfiguration.launch(String, IProgressMonitor, boolean, boolean) line: 853
LaunchConfiguration.launch(String, IProgressMonitor, boolean) line: 703
DebugUIPlugin.buildAndLaunch(ILaunchConfiguration, String, IProgressMonitor) line: 866
DebugUIPlugin$8.run(IProgressMonitor) line: 1069
Worker.run() line: 55