X

Geertjan's Blog

  • October 28, 2011

Sticky Note / TODO Integration

Geertjan Wielenga
Product Manager

Took the idea from Allan Lykke Christensen in the comments to my blog entry yesterday and here's the result, integration of TODOs with Sticky Notes, where the note now shows the line where the related TODO is found, together with the possibility of jumping from the note to the line, as well as a refresh action on the sidebar (available when you right-click in the sidebar) allowing the whole sidebar to be refreshed (e.g., when new TODOs have been created or existing ones have been changed).

Click to enlarge the screenshot below:

I'm using a new version of Gerrit Grunwald's Sticky Note component, which includes a pin and the possibility to change the background color, among other new features.

Join the discussion

Comments ( 7 )
  • Andrzej Olszak Friday, October 28, 2011

    You could easily get rid of making the user to refresh manually by adding a simple document listener: http://bit.ly/v2Xxwz


  • Geertjan Friday, October 28, 2011

    Yes, I had it like that. But then every single change made in the document caused a refresh. That wasn't so cool for performance.


  • Martin Skurla Friday, October 28, 2011

    What about registering listener on currently selected FileObject representing Java source file?


  • Andrzej Olszak Friday, October 28, 2011

    I believe you could address this issue with RequestProcessor: http://bits.netbeans.org/dev/javadoc/org-openide-util/org/openide/util/RequestProcessor.html .

    An idea could be to use a 'sliding task'. Another one is to have a single instance of RequestProcessor with space for only 1 task - each time a keystroke is detected you could reschedule the refresh task with an initial delay of, say, 10 seconds. This way a you would get a refresh only when the user stops typing for a longer moment.


  • guest Friday, October 28, 2011

    where/when/how can I get it?


  • Javier Ortiz Friday, October 28, 2011

    This is worthy of a NetBeans plug-in. Please add it to your collection Geertjan!


  • Chuk Friday, October 28, 2011

    Can I have a peek at the source of this plugin?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.