Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ehegyi on March 02, 2006, 05:23:58 am

Title: AS2 code generation
Post by: ehegyi on March 02, 2006, 05:23:58 am
Hi,

I'm generating AS2 code from EA and produces:

class Class Model.TestBeginProject.GameController
{
}//end GameController

with a ? in line 1

Is this a bug? "Class" should not be there. It stops reverse engineering or syncronisation until the class definition is corrected and the "?" is removed.

Any ideas

Thanks
Title: Re: AS2 code generation
Post by: ehegyi on March 02, 2006, 05:53:05 am
I found the first problem arfter looking at template generation, seems you need to rename "Class Model" without spaces.

Now what does the "?" mean, apart from the obvious and how do you remove it?
Title: Re: AS2 code generation
Post by: Eve on March 02, 2006, 03:07:14 pm
Hi,

The first problem can also be solved by setting Class Model as a namespace root.  (See http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1141339578)

I haven't been able to get the '?' at the start of the file through code engineering, but I have by using the internal editor in the following circumstances:

Tools | Options | Source Code Engineering | Code Page for source editing: Set to "20127 (US-ASCII)" (The default)
Open a UTF-8 file containing signature mark in internal editor.
Edit and save the file.
The signature is converted to a ? as part of saving to the specified code page.

If this isn't your situation, I'd like to know what your code page is set to.
Title: Re: AS2 code generation
Post by: ehegyi on March 02, 2006, 04:03:50 pm
You were right.

My ActionScript editor "Sepy" was saving code files as UTF-8. I changed the setting and no more question mark.

Thanks,

Evan