View unanswered posts | View active topics



Reply to topic  [ 5 posts ] 
code generator templates 
Author Message
Member

Joined: Fri Jul 13, 2007 8:33 am
Posts: 69
Location: Southampton
Reply with quote
Hi,
I would like to have ability to modify the behaviour of the code generated by CTRL+SHIFT+1, namely I would like to modify the getter/setter generator. The reason is that it is a nice utility but with AS2 development I need to have getProperty setProperty methods created instead of get property, set property (in that way I can put them in interface). I hope you can understand what I need.

best regards

_________________
http://greladesign.com/blog
--------------------------------------
-MORS TUA VITA MEA-


Fri Oct 29, 2010 11:38 am
Profile WWW
Member

Joined: Thu Mar 29, 2007 9:32 am
Posts: 244
Reply with quote
this is possible via Generator.txt file, but I am developing a templates language so you could customize your templates as much as possible viewtopic.php?f=5&t=7483


Fri Oct 29, 2010 12:02 pm
Profile
Member

Joined: Fri Jul 13, 2007 8:33 am
Posts: 69
Location: Southampton
Reply with quote
thanks! but how does it work, I freely add new entry?

[Edit] adding did nothing so I have modified existing getter/setter entries, the only thing what is lcacking is to ability to manipulate the strings i.e.


Getter {0} function get{ToWordCase({1})}():{2} {{ $(EntryPoint)return {3}; }}

_________________
http://greladesign.com/blog
--------------------------------------
-MORS TUA VITA MEA-


Fri Oct 29, 2010 12:24 pm
Profile WWW
Member

Joined: Thu May 14, 2015 6:02 pm
Posts: 45
Reply with quote
I don't see a Generator.txt file anywhere, but I did manage to edit the FDS files in the Snippets>as3>generators folder. I just deleted the blank line at the start of the EventHandler file. And then I went into the program settings and set "blank lines before functions" to 0. And I'm still getting a blank line every time I use the generator to make an event handler! How do I fix this?


Thu May 14, 2015 9:01 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
viewtopic.php?p=53593#p53593


Sun May 17, 2015 10:34 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.