F.D.T. 3.0 + Code Templates
The folks over at F.D.T. were kind enough to bestow me with an enterprise license for the QueueLoader and SoundManager project. Many thanks to them! I had dabbled with the beta version, but haven’t had much of a chance to get back into the FDT world until recently. Now that I have been using it again, I remember how much I hate coding in the IDE. Here’s some info to get you up and running.
Installing or updating to the new version is a breeze. Whereas before you needed to link a special FDT modified code library, now it automatically links to the global SWC file.
When installing or upgrading to 3.0 you’ll need to do this: (I’m on a Mac so if you are on a PC, you’ll need to find instructions.)
- Right click on the eclipse application and select show package contents. Open Contents/Mac Resources/Eclipse.ini and change -Xms40m to -Xms256m and -Xmx256m to -Xmx512m
Code Templates: Code templates or code snippets are one of the many ways to work quickly within FDT. Go to preferences FDT>Editor>Templates and click New and you can set up a new code template. The template will let you insert java variables that will automatically be replaced with page elements. ${enclosing_type} will turn into the Class name. ${enclosing_method} will turn into the function name. Once you have the templates set up when you are coding in a class you press control and space and the template menu will come up. Start typing the code template name and hit enter and there is your code snippet with the variables replaced by it’s respective names. Here are some of my favorites you can paste into the template window:
Trace:
Public Method:
trace(“>> ${enclosing_type}.${methodName}() args: “+[]);
${cursor}
};
Browser Based Alert Debugging:
Go here for info on this one.
Monday, November 19th, 2007