From: Marcelo V. <mar...@po...> - 2003-03-25 01:14:30
|
Amedeo Farello wrote: > for a ProjectViewer based plugin that I'm developing, I need to know when a file > is added to or removed from a project. Is there a way to do this? Currently not, since no events are being fired after I got no feedback (and I currently don't need them in PV). Is there any way to accomplish what you want other than a file added/removed event? The biggest problem I see is how to "subscribe" to the event dispatching; it would be cumbersome to register the listener in each project; using the EditBus is one idea, but it could really cause a lot of messages when doing an import; and then, there are the current listeners for the ProjectViewer, which could be extended to add file add/remove events. Also, would you need directory added/removed? (Those are a little more complicated to generate...) -- Marcelo Vanzin mar...@po... "Life is too short to drink cheap beer" |