|
Hi
>We then also need a Template section in the FDT Preferences where you can easily add Class/Interface templates. >templates / superclass binding Really great The super-class idea comes from using frameworks specifically.
Every single time I create an Event that extends flash.events.Event, the first thing I do is remove the default bubbles and cancelable parameters in both the constructor and the super statement. It is actually quicker for me not to specify that it extends flash.events.Event, and I end up selecting-all, deleting and using a code-template that has the desired class-template already there. Great suggestion Romain, I think that this would give FDT a lot of added-value. This would be an awesome addition!!
I was configuring several template XML files the other day and felt handicapped once I went to create a New AS Class and couldn't select a template on the dialog, lol. Definitely will appreciate the day this feature is added Excellent idea Romain... SourceMate v2 has a good implementation of this. You can specify a template to be a file template, and then when using Quick Fix or via the New file mention, you can choose New ActionScript file from Template or New MXML file from Template.
http://www.elementriver.com/sourcemate/features/new-file-template-wizards Great ideas guys, thanks a lot.
I've begun to consolidate similar ideas together into one ticket. Otherwise great ideas such as this get lost. I'm going to close this and link to another ticket so this wont get lost: http://bugs.powerflasher.com/jira/browse/FDT-1921 If you have any more ideas or comments please post them there. Going to close this we can consolidate ideas like this so they aren't lost.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
We get that feature request quite a log, you nailed the place where to insert the template selection!
We then also need a Template section in the FDT Preferences where you can easily add Class/Interface templates.
Another idea from Alec McEachran was to bind templates to a specific Superclass.
In the template editor you could bind the template to a specific superclass type. If you then create a new class and select a superclass, FDT could automatically select the template.
What do you think?