From: Eran I. <era...@gm...> - 2009-04-21 07:19:39
|
Sorry I did a little mess with the emails :D Anyways, you are more than welcome to send a patch for adding the missing functionality. Remember that whenever the interface between the plugins and the application is modified (changing content of event is an example of API changes), you need to increase the API version which is located at plugin_version.h header file, this makes sure that codelite and the plugins shares the same API and void crashes. Eran On Mon, Apr 20, 2009 at 6:14 PM, Mattia Barbon <ma...@de...> wrote: > 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 > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Codelite-developers mailing list > Cod...@li... > https://lists.sourceforge.net/lists/listinfo/codelite-developers > -- Eran Ifrah Cross platform, open source C++ IDE: http://www.codelite.org |