Issue Details (XML | Word | Printable)

Key: FDT-768
Type: Featurerequest Featurerequest
Status: Confirmed Confirmed
Priority: Major Major
Assignee: FDT Team
Reporter: Romain Ecarnot
Votes: 14
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
FDT

New class or interface auto template

Created: 23/Dec/09 09:04 AM   Updated: 25/Jul/12 03:41 PM
Component/s: Code Templates, Project Template, UI
Affects Version/s: FDT 4.5.3
Fix Version/s: FDT
Security Level: public

Time Tracking:
Not Specified

Environment: all platforms
Issue Links:
Duplicate
 

Review Type: Review by Product Owner


 Description  « Hide
Hi FDT Team and hi all :wink:

Using FDT for many years nwo, a new feature I found "very useful" is not implemented yet.
The possibility of a template to create classes or interfaces.

Here is a screen showing the possible addition:

The purpose...in parallell with existing templates ,once we are in the code, is to pre format and apply the selected template to the created class (or interface).
A significant time saving for template lovers.

What do you tking about that ? possible ? useless ?
Just an idea to go faster and faster in Actionscript developement... 8)

Cheers,
Romain.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Michael Plank added a comment - 10/Jun/10 10:06 AM
Very nice idea Romain.
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?


Romain Ecarnot added a comment - 10/Jun/10 10:19 AM
Hi

>We then also need a Template section in the FDT Preferences where you can easily add Class/Interface templates.
Indeed

>templates / superclass binding
Excellent idea to go even faster !
By default, when the superclass is defined, the binded template is automatically selected (if exists).
But we must always keep the possibility to choose another model if needed

Really great


Alec McEachran added a comment - 10/Jun/10 04:42 PM
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.


Hasan Otuome added a comment - 13/Jun/10 07:19 AM
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...


John Olson added a comment - 19/Nov/10 08:04 PM
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

Alan K (Deprecated) added a comment - 25/Mar/11 08:23 PM
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.


Alan K (Deprecated) added a comment - 25/Mar/11 08:25 PM
Going to close this we can consolidate ideas like this so they aren't lost.