//richinternet.blog

Viewing By Entry / Main
Friday, July 21, 2006
TODO/FIXME extension for Flex Builder 2

I finally found some time to finish work on an extension plugin for Flex Builder 2 which adds TODO/FIXME Task support similar to Eclipse's Java Development Tool JDT. This is the nice thing about Flex Builder 2: it's based on Eclipse so you're able to contribute to the product by adding your own extensions.

Tasks

How it works: the plugin parses every MXML/AS file when opened and searches comments (both MXML and AS comments) for TODO and FIXME tokens (this search is case insensitive, so it also finds todo). The same action takes place after a file has been saved. If a token is found, a new Task gets generated with its message set to the comment and displayed in the Task View (To open Task View choose Window-->Other Views...-->Basic-->Tasks in Flex Builder 2 standalone and Window-->Show View-->Other-->Basic-->Tasks when running Flex Builder 2 as a plugin in Eclipse). Note: to really delete a Task you have to delete the comment - deleting a Task from the Task View does not kill the comment, so after you save the file the Task will reappear.

Installation: unzip the ZIP file and move the content of the plugins folder to the plugins folder of Flex Builder 2 / Eclipse. Then, close Flex Builder 2 / Eclipse and restart. The ZIP also contains a Test.mxml file which can be used to test the functionality.

Currently, the plugin only processes single-line comments but it ignores whitespaces between the start of a comment line and the TODO/FIXME token. I'm open for comments and enhancement requests, so please post them here.

Download Flex Builder 2 Task Plugin 1.0.0

Last but not least: Kudos to Stephen Milligan and Mike Morearty - they gave me some great hints on how to build this plugin. Thanks guys!

Dirk.

Comments

It doesn't work here. I: - closed Eclipse - dropped jar into plugins folder - rebooted Eclipse - opened the Task view - put a TODO in the file - saved the file - closed the file - reopened the file

...all to no avail. Any suggestions?


Nice work! I'm very visual, so I've been adding ridiculous amounts of #'s, &'s, %'s, and @'s in order to have visual cues of my todo stuff. Thanks!

For me, it successfully adds the indication mark, but it doesn't act as a go-to-line button.


James, what version are you using: Flex Builder standalone or the plugin version inside Eclipse?

I'm using the plugin version and clicking on a Task in the Task View jumps to the correct line here (if the file is already opened, if not the file gets opened but the line is not marked. I have to click on the Task again to jump to the marked line).

Dirk.


Dirk -

Excellent work, this is most useful and works great for me. Thanks!


After doing the -clean option you suggested, she now works. Thanks Dirk!


Great news Jesse! I just prepared for having all flexcoders members starting complaining that it does not work :)

Dirk.


Works well for me. I've been waiting for something like this to appear. Nice job!

I'd vote for multiline comments, as well as having it open the file AND bring you to the right line, if possible. Both would be nice additions.

Would also be nice to have a custom area in Preferences to set search terms (TODO, FIXME, etc) and what they correspond to, like the inherent Eclipse Java one.

Easy for me to say... it's magic to me you got THIS working so well.


I'm using standalone. Clicking the tasks does bring me to the line number; What I'm accustomed to is clicking the colored mark next to the scrollbar (blue in this case) and having the document jump to the line number. But, I can work with using the Task panel to jump to lines :)


@Todd: multiline comments is on my TODO list (pun intended), preferences will also be added later.

@James: that's strange. I just tried it with standalone on a different machine and clicking on the blue indicators on the right side (I guess you mean those?) does make the document jump to the right line.

Dirk.


Great job! Going to install it tomorrow! Now who is going to write the (painfully missing) Templates PlugIn?!


Dirk, you're right. I guess FB just needed a restart.

Again, this is really helpful. Thanks!


Thanks a lot. It works great. It's actually helpfull ! Steph


Hmmm... not working for me (on 2 different machines).

Machine 1) Eclipse / MyEclipse / FB2 Plugin Machine 2) Eclipse / FB2 Plugin

I've tried both MXML and AS comments, restarted my eclipse instances, and cleaned my projects to no avail...

Short of restarting my computer...?

Brendan


That's awesome. I came across this when looking for TODO/FIXME support with Eclipse/MTASC cause I still code a fair bit of AS2.0.

Oh well, mental notes it is.


It does not pick up the TODO in the comments below:

/** * Constructor * TODO asdf2 */ public function MyClass() { super(); }


Any chance we could see the code.

I have been really inteested in seeing how an extension gets built for Eclipse.

All the tutorials that I have found are over my head for the time I have.

This seems like something simple and we could learn a lot from.

If not, do you have any refs that could get some one that DOES know java up to speed to build an extension that interacts with Flex builder on a simple level like this one does?

Peace, Mike


Works! Nice job :)


Hi Drik

I just download and did the instructions you said in your post, but also, Works fine, the only problem is I use the Flex Builder 2 Stand Alone with CFEclipse installed, it just work only with .cfm files, but I tried a lot with Actionscript and MXML and doesn't work. Did everything, include the JesseXL after reading his comment.

Can you point me out on this?

I put the plugin in the plugin directory, just clean up the project then tried to add some //fixme: and //todo: in uppercase and really doesnt work.

mail me if you have some idea on what could be.

Regards.


awesome plug in! works beautifully


Just installed it into FB3 Moxie and it seems to be working - thanks!!


As to Templates - does the Snippits feature of CFEclipse cover the same base for you ?


@Tom: not sure :) Could you please elaborate?


@Dirk: Install CFE, open the snippits panel. There are various special strings (like '$${a prompt}'} that you can put in it's templates to make them ask the user questions, for instance.


This is great plugin but unfortunatelly it stopped working in Flex Builder 3 Beta 2.


@Radek: thanks for the info, I'll investigate!


@Radek: I tested it with Flex Builder 3 Beta 2 running as a plugin in Eclipse 3.3 and it worked just fine. Try it again when starting Eclipse / FB with the -clean command line option and see if that helps.

Dirk.


Hey, nice work with this.

I've installed on Flex Builder 3 beta 2 and it seems to work fine (I can see blue marks on the right, and the icons on the left).

But should there be a Tasks panel I can open up somehow with a list of all items in it?

Cheers.


D'oh, I worked it out... Window-->Other Views...-->Basic-->Tasks


@Dirk: Yes - cleanup has helped. Sorry ;)


Hi,

I have a flex application, and I need to compile it to run with Flash Player 7.

Someone can tell me if it's possible to do, if it's possible, how can I do that.

Regards.


@Marcelo: Not withstanding being the wrong place to ask, no, Flex requires Player v9 now at 98%+ penetration.


Works a treat on FB 3.0 too. Been waiting for this for ages. Thanks!


A habit I've had for a long time is to use @TODO but this plugin doesn't pick those up, any chance you could ignore any characters before the TODO/FIXME?


A habit I've had for a long time is to use @TODO but this plugin doesn't pick those up, any chance you could ignore any characters before the TODO/FIXME?


First off, great plugin. I was lost till I found this making the move from JDT to FB.

My suggestion for an enhancement is to offer an optional tree structure in the Tasks view where Resources act as the root nodes. With a lot of items, it would be easier to manage if we could collapse/expand items by resource.


Hi there, great plugin. I wonder if I would be able to have a copy of the source for this plugin. I am developing a bug tracking and project management tool in Flex for my work and would like to use your plugin to talk to my database and update todo tasks.

Cheers Rob


Hi there, great plugin. I wonder if I would be able to have a copy of the source for this plugin. I am developing a bug tracking and project management tool in Flex for my work and would like to use your plugin to talk to my database and update todo tasks.

Cheers Rob


this is a very cool plugin ... I got no suggestions .. better keep it simple


Excellent plugin, thank you for this.


Works with Flex 3 Professional. The Tasks filter list added "Flex Builder 2 Task" to item types.

I does not appear to work with actionscript files. Can you add .as files to the item types?

Brad


Great extension, thanks! It works fine with Flex Builder 3.2.


Thanks, nice plugin!


Thanks! Been looking around for something like this for Flex Builder 3.


Also seems to work in Flash Builder 4 Beta.


Hi, Works great since 2 years with FB2 & 3, but I'd need sources to prevent some NullPointerException in some methods, Is that possible without decompiling the code ? with eclipse jar dependecies ? I got problems recompiling it with Eclipse 3.4 Thanks anyway, I love this plugin.


Hi, it doesn't seem to work anymore since I switched to Eclipse 3.5 and Flash Builder 4 beta. Is it Eclipse or FB4? Any chance of an update? I would find it hard to go on without your TODO plugin.


Hi Dirk,

Very useful gadget indeed! Good work!

I was wandering ... is there a way for me to add cusom tokens? JTD has such a facility and it's very useful for me.

Cheers,

Atanas.


Thanks a lot for this, I've been looking for some time now for this. It works a treat in Flex Builder 3.0.2 Standalone. Great


Just wanted to let people know this works with Flash Builder 4 Beta 2...

... but I had to issue the following command in Terminal on Mac OS X to get it up and running: "/Applications/Adobe Flash Builder Beta 2/FlashBuilder.app/Contents/MacOS/FlashBuilder" -clean

Hope that helps!


Thank you this plugin works in Flash Builder 4. I use stand alone FB4 (not like plugin for Eclipse)


Very nice. 1.0.0 works with the Eclipse plugin for Flash Builder 4 (production release). It appears that Adobe has declined to include the functionality natively (at least for the moment): https://bugs.adobe.com/jira/browse/FB-17231

Much appreciated.


Very nice ... just two things: - customizable tags (config file would be ok) - possible to save the "completed" selection? Thanks




Sun Mon Tue Wed Thu Fri Sat
   1234
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30   

About this blog
www.richinternet.de

AIR (9)
Apollo (3)
BlazeDS (8)
Breeze (1)
Central (5)
ColdFusion (54)
Flash (57)
Flash Media Server (6)
Flex (160)
Flex Trace Panel (6)
FXUG (3)
J2Flex (4)
MAX (31)
Mobile (1)
mxmlc (1)
Other topics (42)
Plugins (5)
Video (4)

Copy Fully Qualified Classname Plugin for Flash Builder 4 (CFQCN)

Recent Flex Technotes
Recent ColdFusion Technotes
Recent Flash Technotes

http://www.flexperten.de
http://www.flexforum.de
http://www.flex.org
http://www.bloginblack.de
http://www.cflex.net
flexcoders mailing-list
flexcoders archive
more links...

Aggregated by fullasagoog.com
Aggregated by MXNA

Short Mode | Full Mode

Herrlich & Ramuschkat