Refactoring deprecated AM3 branch to use ATL 3.0 API [message #570278] |
Thu, 27 August 2009 14:23 |
Juan Pedro Silva Messages: 258 Registered: July 2009 |
Senior Member |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everybody, I'm trying to rewrite some parts of AM3's deprecated
packages branch to use ATL 3.0.<br>
I have managed to modify most parts to use the new API, but I have
doubts on a particular piece of code.<br>
The code in hands is in class
org.eclipse.gmt.am3.tools.ant.ATLModelTransformationTask, and is this
one:<br>
<br>
<font face="Courier New, Courier, monospace"> ...<br>
if(vm == null)<br>
<font color="#ff0000">vm = AtlVM.ATLVM_REGULAR; </font>
<br>
...<br>
if (!debug.booleanValue())<br>
<font color="#ff0000">AtlVM.getVM(vm).launch(asmUrl, libs,
models, params, superimps, options);</font><br>
...<br>
</font><br>
I guess I can rewrite the first red line as<br>
<br>
<font face="Courier New, Courier, monospace"> vm =
ATLLaunchConstants.REGULAR_VM_NAME;<br>
<br>
</font>but I don't believe this is the correct way to go, I think I
should change the structure somehow.<br>
Can anyone give me a pointer on this?.<br>
Thanks,<br>
Juan Pedro<br>
</body>
</html>
|
|
|
Powered by
FUDForum. Page generated in 0.03382 seconds