X

Geertjan's Blog

  • October 29, 2011

Sources of the NetBeans Sticky Note TODO Integration

Geertjan Wielenga
Product Manager

Chuk-Munn Lee and others have asked for the sources of the Sticky Note TODO Integration, so here they are:

http://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.1/misc/StickyNoteSideBar

When you get hold of those sources, you'll have a project that looks like this:


Anyone is very welcome to add code to the sources. For example, Andrzej Olszak could add some listening code, via RequestProcessor, for automatically updating the notes whenever the user stops typing. I.e., I don't really know how to do that, would be great to have that contribution.

Others could add save functionality. I.e., whenever the document closes, all the notes could be saved via NbPreferences and then reloaded when the sidebar is recreated next time the document opens. By default. all the TODOs in the document are turned into notes, but maybe there are other notes the user has created, and these are the ones that should be stored and then reused when the sidebar is recreated.

And it would also be cool if the sidebar were to be pluggable. I.e., someone should be able to specify (as a user via some user interface and as a developer via some layer entry) additional items, i.e., in addition to TODO comments, to be added to the sidebar as notes.

I don't think this plugin is ready for general usage, so haven't put the NBM file in the Plugin Portal yet.

Be the first to comment

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