uɐʎɹ ррoʇ uɐʎɹ bio photo

uɐʎɹ ррoʇ uɐʎɹ

Hello. Is is me you're looking for?
robotic life signs.
makes noise, hears sounds, intafon.
affe auf deux roues.

Email Twitter Github Github Gist Last.fm Soundcloud Flickr

If you use Eclipse with MTASC and ASDT for working on your actionscript 2.0 classes, one of the handy little features is the ability to create a new class using the ASDT actionscript class creator. However, as you’ve found out, it sticks in that standard little author tag at the top of your new class. Its not rocket science, but changing this is not completely obvious from the “expert user” style Eclipse interface (read: “not the most usable interface in the world”). In order to create your own standard header for new actionscript classes, you can do the following:

  • In Eclipse, choose File-Preferences
  • Next, in the prefs window, select ActionScript 2
  • Open the Editor sub menu, and choose Templates
  • The first template should be “class” – select it.
  • Click the edit button on the right.

You can now edit your header template for all new class files. I took out “${user}” first, because my user short name on my powerbook is not the author name I wanted to use in my project classes. The “Insert Variable” button is pretty handy as well, as it allows you to choose from a variety of things to add into the template, including the current date and time. This is also handy for adding in any sort of licensing information you might want to throw in there.

After editing, hit the “OK” button and then the “Apply” button in the prefs window, and you should be good to go.