Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
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?
-
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.
-
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