From: Baptiste L. <gai...@fr...> - 2003-04-23 08:09:29
|
----- Original Message ----- From: "Devrim Erdem" <de...@ma...> To: <and...@gm...>; <cpp...@li...> Sent: Saturday, April 12, 2003 4:35 PM Subject: Re: [Cpptool-develop] Status... > Andre Baresel wrote: > > > Devrim Erdem wrote: > > > >> I have been a member of the mailing list for some time now,but I > >> shall confess I haven't been reading all the mails posted. > >> > >> I use Jedit for C++ development on Linux. As far as I know cpptool > >> has a plugin for Eclipse. I am not well informed about how it can be > >> interfaced to other editor, e.g. jedit but I would like to hear and > >> learn about it. > >> > >> Jedit being a java based editor, it supports python for plugins. > >> Therefore it is possible to write a python script and run it in Jedit. > >> > >> I would be interested in learning how it can be possible to integrate > >> CppTool to Jedit via python interface. Or is there any other way of > >> doing it ? > >> > >>> > >>> I'm thinking of using python to implement the code analysis and > >>> refactoring layer of the code. This would hopefully help us going > >>> faster. What do you think ? > >>> > >> > >> I am not familiar with internals of CppTool but this kind of layer I > >> have for my own projects and they significantly speed up development. > >> > > Hello Devrim, > > > > I'm the author of the eclipse plugin. The way I've implemented this > > was very similar to the Visual-Studio-Plugin. I've written a native > > class which > > simply maps the access/modify routines of a text document of our > > CppTool into access/modify routines of the java-class responsible for > > the editor > > of eclipse. This was very simple since only very basic operations need > > to be written. > > - get selection text > > - set selection area > > - set selection text > > such things are very common for an editor. So if you find such an > > interface in phyton it would be possible to integrate. > > Sure there exists such functionality in Jedit's python interface. Does Jython support python extension (python module implemented in DLL) ? If it is the case, the we could move from using JNI for binding to using Boost.Python + Jython. What would be needed then is subclassing a TextDocument class exported to python. > > But i have a question. I understand that there are refactoring > operations which will need to modify several files at once. Are those > also supported already in CppTool and in your native class ? Modification are done using the TextDocument interface, which at the current you provide when asking for a refactoring (all works on the active document). Working on multiple files introduce other issues, such as: undo/redo: does the IDE support group command (all text modification made on multiple documents can be automatically undo) ? project interface: interfacing with the IDE to retreive the files that compose the project, and obtaining a TextDocument interface for those file. Baptiste. > > To check the other plugins look at > > EclipseDocumentHelper.cpp/h (this is the interface > > between CppTool and Eclipse-Editor) > > VCLinebasedTextDocument.cpp/h (this is the interface between > > CppTool and VisualStudio-Editor) > > > > nice to meet you, > > André Baresel > > > > The summer is starting in berlin, > > GREAT ! > > Also in Rosenheim, Bayern ! |