Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created May 11, 2010 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonm23/398031 to your computer and use it in GitHub Desktop.
Save jasonm23/398031 to your computer and use it in GitHub Desktop.
#Eclipse Monkey, #FlexBuilder: Find @todos and @fixmes in *.as, *.mxml & *.css, then add/update tasks
/*
* Menu: Flex > Tasks
* Kudos: Jason Milkins
* License: EPL 1.0
* DOM: http://download.eclipse.org/technology/dash/update/org.eclipse.eclipsemonkey.lang.javascript
* Eclipse Monkey script for FlexBuilder.
* Find @TODOs and @FIXMEs in *.as, *.mxml & *.css, then add/update tasks
*/
function main() {
var files = resources.filesMatching(".*(\\.as|\\.mxml|\\.css)");
var match;
for each( file in files ) {
file.removeMyTasks();
for each( line in file.lines ) {
if (match = line.string.match(/(@TODO|@FIXME).*/)) {
line.addMyTask( match[0] );
}
}
}
window.getActivePage().showView("org.eclipse.ui.views.TaskList");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment