From: Mattia B. <ma...@de...> - 2009-04-20 15:41:56
|
Hi everybody! I am writing a custom CodeLite plugin to integrate BeRTOS (http://bertos.org/) makefiles in CodeLite (it's nothing complicated: it only needs to intercept file add/delete/rename and update a file list in a Makefile). I had no problem intercepting file additions. For deletions, it seems there is no way to determine the project the file has been removed from, since when the notification is sent the file has already been removed from the project. At the moment I am iterating over all projects and guessing the right one from project path. Is there a better way to do it? I found no way to intercept file renames: for each rename I get a file remove event, but the file path passed to the event handler only contains the file name, not the full path like in file add/delete. I get no add event. If the intended effect is to send a delete(old file name) + add(new file name) event, I can prepare a patch to that effect. Best regards, Mattia P.S.: please CC me on replies, I am not subscribed |